Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 2 virtual machines in the same physical machine [using libvirt/KVM]. How can I create a lan with these 2 machines? Host and the guests are running ubuntu.

share|improve this question
up vote 4 down vote accepted

I found the solution myself. I created an additional NIC in both the VMs and configured the ip of the new network interfaces. Should I leave my question so that others can benifit or should I vote to delete?

share|improve this answer
It's fine to answer your own question, so leave it here for others' reference. Also, mark your answer as 'accepted' too. – Jeremy Kerr Feb 24 '12 at 0:18

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.