KVM - The Linux Kernel-Based Virtual Machine
News, Blogs and Resources on the Linux (KVM) Kernel-Based Virtual Machine

Is there a way for guests to be on a private network, but have internet / local network access?

No replies
avonnieda
Offline
Joined: May 10 2011
Points: 3

EDIT: Disregard this please, I had removed my default iptables rules used for kvm by mistake. NAT is working as it should. Duh..

Hi Folks,

Basically what I'm asking is, bridged networking without the need to use real IP addresses. So say my host is 192.168.1.5, and my guests are on 192.168.122.x. What would I need to do to allow them access to the local network IP's of 192.168.1.x, and also the internet? I do use virt-manager, but I've got no problem with command line. My host is a CentOS 5.6 x86_64 running virt-manager 0.8.7.

Maybe I'm missing something silly, because it seemed like when I first set up my guests they had local network access at least (had not tried internet), and at some point it stopped working. Communication between guests works fine, communication between guests and host works fine, and iptables port forwarding to guests is working fine.

Thanks very much,

-Adam

Post new comment

The content of this field is kept private and will not be shown publicly.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.