Difference between revisions of "Kvm change guest vlan"
From Asenjo
(Created page with "To change the vlan interface on kvm vm without a reboot you need to use virsh. Here an example with a Windows guest vm: * 1st remove nic: <code><pre> virsh # detach-interface...") |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | |||
+ | [[Category:KVM]] | ||
+ | |||
To change the vlan interface on kvm vm without a reboot you need to use virsh. Here an example with a Windows guest vm: | To change the vlan interface on kvm vm without a reboot you need to use virsh. Here an example with a Windows guest vm: | ||
* 1st remove nic: | * 1st remove nic: | ||
− | + | <pre> | |
virsh # detach-interface win2k8 --type bridge | virsh # detach-interface win2k8 --type bridge | ||
Interface detached successfully | Interface detached successfully | ||
− | </pre | + | </pre> |
* then add nic with eventually the same mac address: | * then add nic with eventually the same mac address: | ||
− | + | <pre> | |
virsh # attach-interface win2k8 --type bridge --source br_v10 --mac 52:54:00:73:00:6e | virsh # attach-interface win2k8 --type bridge --source br_v10 --mac 52:54:00:73:00:6e | ||
Interface attached successfully | Interface attached successfully | ||
− | </pre | + | </pre> |
Latest revision as of 22:15, 28 August 2015
To change the vlan interface on kvm vm without a reboot you need to use virsh. Here an example with a Windows guest vm:
- 1st remove nic:
virsh # detach-interface win2k8 --type bridge Interface detached successfully
- then add nic with eventually the same mac address:
virsh # attach-interface win2k8 --type bridge --source br_v10 --mac 52:54:00:73:00:6e Interface attached successfully