Networking Problem with KVM Virtual Machine Migration

Joshua Martin josmar52789 at endeavorcorp.com
Wed Dec 3 06:26:40 UTC 2008


I'm having trouble with moving my KVM virtual machines from one machine to
another - I'm using Ubuntu 8.04 Server Edition.

When I copy my virtual machine over to the new server, it won't connect to
the network for some reason. If I create a new virtual machine on the same
server, it will properly utilize the network. I should mention that all of
my VM's are Ubuntu 8.04 and 8.10...

Trying to start the networking on the VM by using the command "sudo
/etc/init.d/networking start" only produces the following error:

 * Configuring network interfaces...
eth0: ERROR while getting interface flags: No such device
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.


I've setup a network bridge on my server with the following code in
/etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

# The primary network interface
auto br0
iface br0 inet static
        address 192.168.1.10
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        bridge_ports eth0
        bridge_fd 9
        bridge_hello 2
        bridge_maxage 12
        bridge_stp off


I create each of my virtual machines with the following command - the hard
drive image is simply the one I copied over from the old server, when I'm
prompted by the already booting CD image, I simply restart and I've got my
migrated virtual machine:

sudo virt-install -n test -r 256 -f test.img -s 10 -c
ubuntu-8.10-server-i386.iso --accelerate --vnc --noautoconsole

-- 
_________________________________

Joshua S. Martin

CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s),
contains information that may be confidential, protected by the attorney
client or other legal privileges, and or proprietary non public information.
If you are not an intended recipient of this message or an authorized
assistant to an intended recipient, please notify the sender by replying to
this message and then delete it from your system. Use, dissemination,
distribution, or reproduction of this message and or any of its attachments
(if any) by unintended recipients is not authorized and may be unlawful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20081203/045cab05/attachment.html>


More information about the ubuntu-users mailing list