KVM Guest: Network dies not work
compdoc
compdoc at hotrodpc.com
Thu Oct 16 15:26:09 UTC 2014
> Thanks for any help
>robert
I'm back now, and can help a little more. I always use two or more network
cards on VM servers, so I don't currently have an example of a bridge using
one nic.
Im doing this from memory, so this might need some tweaks, and if so,
hopefully someone else can help:
On the host:
----------------
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet static
address 176.9.142.21
netmask 255.255.255.0
gateway 176.9.142.1
dns-nameservers 8.8.8.8 8.8.4.4
bridge_ports eth0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
The 'br0' can be bridge0, or bridge1 - whatever you like. Also, the
dns-nameservers can be whatever you need. The IP address set here is what
the host will use.
In the guest:
----------------
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 176.9.142.129
netmask 255.255.255.0
gateway 176.9.142.1
dns-nameservers 213.133.98.98 213.133.99.99
Note the changes to the IP address and gateway address. I'm assuming
176.9.142.129 is not in use on your network. I'm also assuming the gateway
address is correct. I would really recommend the guests use DHCP instead, if
the router or some server on your network can provide it.
There might be other problems in the setup of your virtual machine, but see
how far you get with this...
More information about the ubuntu-users
mailing list