Nuld
November 10th, 2007, 07:46 AM
I followed the section "Virtual NICs on VDE, VDE Tap'd to Host, Tap NATed to Outside" in the Ubuntu KVM networking documentation (https://help.ubuntu.com/community/KVM#head-db5235851cc1b9c712f99a074f02c91e8590c880-2) to enable my KVM guests to communicate with each other. Unfortunately, KVM assigns each virtual machine the same MAC address, which results in all guests getting the same IP address from the DHCP. Assigning static IP addresses doesn't help either in this case.
First I tried to assign each guest a different MAC address with the KVM option -net nic,macaddr=... This causes the network interface in the guest to be disabled and trying to enable it with ifup eth0 results in the following output:
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up eth0.
Then I tried to specify the MAC address using the tool macchanger in the guest system. This seems to work at the first glance, the interface comes back up with the new MAC address. But it doesn't get an IP address from the DHCP and when I specify a static IP address neither the host nor other guests can ping the guest system.
Any suggestions how I can get this to work? I simply want the guests and the host to be able to communicate with each other.
Thanks!
First I tried to assign each guest a different MAC address with the KVM option -net nic,macaddr=... This causes the network interface in the guest to be disabled and trying to enable it with ifup eth0 results in the following output:
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up eth0.
Then I tried to specify the MAC address using the tool macchanger in the guest system. This seems to work at the first glance, the interface comes back up with the new MAC address. But it doesn't get an IP address from the DHCP and when I specify a static IP address neither the host nor other guests can ping the guest system.
Any suggestions how I can get this to work? I simply want the guests and the host to be able to communicate with each other.
Thanks!