[TriLUG] KVM on a laptop

Joseph S. Tate dragonstrider at gmail.com
Sun Oct 14 21:28:52 EDT 2012


I'm wondering if there is some advice to be had for running KVM on a
laptop.  I'm currently running Fedora 17 with all SELinux garbage
disabled.

I'm having problems with quite a few things:

When running NAT, I can't ssh or http to the guests from the host.  I
suppose I have to set up firewall rules to forward to the virbr?
Where do I do that?  Can I do it through virt-manager?

Since I couldn't figure out NAT and was under a deadline, I set up a
bridged interface to my eth0.  With bridged networking, I had to drop
iptables on the host before I could access the Internet from my
guests.  This doesn't bode well for my confidence when I roam to a
public wifi connection.  I had other problems with bridged networking,
so I'm merely curious; are there iptables configurations that one can
use to allow Internet access from guests while keeping iptables up?

With the bridge in place, when I un-dock my laptop, I have to drop br0
before I can get my wifi to work because the routes don't get touched
up when wifi comes up.  Network Manager seems not to know anything
about bridged network devices.

Now that I've re-docked, Network Manager thinks I'm not connected to
my wired network, even though I've bounced br0, eth0, and run "service
network restart".  I am able to ping my router (once I disable my
wifi).

What should I do instead?

-- 
Joseph Tate
Personal e-mail: jtate AT dragonstrider DOT com
Web: http://www.dragonstrider.com



More information about the TriLUG mailing list