Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have worked on my Ubuntu Server host for weeks now and I just can not manage to get the virtual machines into the network.... here's what I need to do:
I need to be able to create virtual machines that have IP addresses that can be reached from the outside (192.168 network). I need to be able to connect to the virtual machines through ssh, ftp, http and preferably https, anything else doesn't matter that much.
So far everything seems simple enough and I have a lot of leeway in terms of IP address range and server/client configuration. I have the option of taking part of a /24 net as most IPs aren't used, and if it's absolutely necessary I have the option of creating a new /24 subnet. Also have the option of reformatting and reinstalling OS on the host and recreating the virtual machines as nothing has been done other than trying to get virtual machines to work.
I would prefer if the virtual machines were just part of the normal network which would be The host machine has 2 network cards so I don't even necessarily need the Host to be connectable in the same /24 network.

I have tried (I think) just about everything from about 5 different tutorials on bridging (giving br0 the same IP that eth0 used to have (Host is able to connect to VM and vice versa, VM doesn't have outside network access), having eth0 set up like it always was and having br0 have a different IP (same as above), NAT with port forwarding (which I would have preferred not to use but will if it works), turning off one of the hosts network cards and just using one of them, different subnets.... etc. I do know my way around iptables fairly well....

Host is 64bit Ubuntu Server 12.04, using libvirt/kvm.

edits: Local network is, host has static ip, GW .5.1 which is also nameserver. We have a second Local network at with .10.1 GW, but both hosts and VMs were supposed to go into the .5 subnet. The .10 subnet isn't required, but it wouldn't be horrible if the Host were only accessible in the .10 subnet.

share|improve this question
And how is your local network set up? – Michael Hampton Oct 20 '12 at 14:38
On a fresh install on a different server (1 nic) everything worked as expected so i'm assuming something just went wrong repeatedly on the original server. Will update the question if/when i figure out what. – xyious Oct 21 '12 at 16:25
up vote 0 down vote accepted

I'm almost certain now that it was a conflict between the two gateways that were assigned to the two network cards. If I simply disregard one of the network cards completely and set up the bridge like I should according to this tutorial: everything works like it should.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.