[SOLVED] Changing the NIC for a guest dynamically on Cent OS 6.0
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Changing the NIC for a guest dynamically on Cent OS 6.0
Hi,
On Cent OS 6.0 I have 2 NIC's, eth0 and eth1. I have defined a bridge br0 for eth0 and br1 for eth1.
When defining new guests, I will be able to use either br0 or br1, regarding loadbalancing and security.
I have tried to simulate that eth0 breaks down. Pulling the cable out. Now the guests on br0 of course can't be accessed. The guests on br1 still works :-)
How do I change a NIC for an existing guest from br0 to br1 ?
I have tried using Virtual Machine Manager to add new NIC card, even using same MAC address af the old NIC or changing ifcfg-eth0 on the guest to new MAC addr, but this doesn't work. There no network working. Something more must be done ?
if both NICs are on the same network, you should bond them together, and use a single bridge. You could use brctl to attach NICs to bridges, but this is not an automated or in any way a correct solution.
Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 5c:f3:fc:5b:02:08
Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 5c:f3:fc:5b:02:0a
dmesg say in the end:
kvm: 16154: cpu7 unhandled wrmsr: 0x198 data 0
kvm: 16154: cpu8 unhandled wrmsr: 0x198 data 0
kvm: 16154: cpu9 unhandled wrmsr: 0x198 data 0
kvm: 16154: cpu0 unimplemented perfctr wrmsr: 0xc1 data 0x0
kvm: 16154: cpu0 unimplemented perfctr wrmsr: 0x186 data 0x130079
kvm: 16154: cpu0 unimplemented perfctr wrmsr: 0xc1 data 0xffe18e99
kvm: 16154: cpu0 unimplemented perfctr wrmsr: 0x186 data 0x530079
kvm: 16154: cpu1 unimplemented perfctr wrmsr: 0xc1 data 0x0
kvm: 16154: cpu1 unimplemented perfctr wrmsr: 0x186 data 0x130079
kvm: 16154: cpu1 unimplemented perfctr wrmsr: 0xc1 data 0xffe18e99
kvm: 16154: cpu1 unimplemented perfctr wrmsr: 0x186 data 0x530079
kvm: 16154: cpu2 unimplemented perfctr wrmsr: 0xc1 data 0x0
kvm: 16154: cpu2 unimplemented perfctr wrmsr: 0x186 data 0x130079
bond0: received packet with own address as source address
bond0: received packet with own address as source address
bond0: received packet with own address as source address
bond0: received packet with own address as source address
bond0: received packet with own address as source address
bond0: received packet with own address as source address
bond0: received packet with own address as source address
bond0: received packet with own address as source address
bond0: received packet with own address as source address
Is it "normal" with theese messages ? Also from kvm ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.