I'm having trouble with moving my KVM virtual machines from one machine to another - I'm using Ubuntu 8.04 Server Edition.<br><br>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...<br>
<br>Trying to start the networking on the VM by using the command "sudo /etc/init.d/networking start" only produces the following error:<br><br><span style="font-family: courier new,monospace;"> * Configuring network interfaces...</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">eth0: ERROR while getting interface flags: No such device</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">SIOCSIFADDR: No such device</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">eth0: ERROR while getting interface flags: No such device</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">SIOCSIFNETMASK: No such device</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">SIOCSIFBRDADDR: No such device</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">eth0: ERROR while getting interface flags: No such device</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">eth0: ERROR while getting interface flags: No such device</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Failed to bring up eth0.</span><br>
<br><br>I've setup a network bridge on my server with the following code in /etc/network/interfaces<br><br><span style="font-family: courier new,monospace;"># The loopback network interface</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">auto lo</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">iface lo inet loopback</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">auto eth0</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">iface eth0 inet manual</span><br style="font-family: courier new,monospace;">
<br><span style="font-family: courier new,monospace;"># The primary network interface</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">auto br0</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">iface br0 inet static</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        address <a href="http://192.168.1.10">192.168.1.10</a></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        netmask <a href="http://255.255.255.0">255.255.255.0</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        network <a href="http://192.168.1.0">192.168.1.0</a></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        broadcast <a href="http://192.168.1.255">192.168.1.255</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        gateway <a href="http://192.168.1.1">192.168.1.1</a></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        bridge_ports eth0</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        bridge_fd 9</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        bridge_hello 2</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        bridge_maxage 12</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        bridge_stp off</span><br><br><br clear="all">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:<br>
<br><span style="font-family: courier new,monospace;">sudo virt-install -n test -r 256 -f test.img -s 10 -c ubuntu-8.10-server-i386.iso --accelerate --vnc --noautoconsole</span><br><br>-- <br>_________________________________<br>
<br>Joshua S. Martin<br><br>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.<br>