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

KVM/Qemu networking with GRUB installed

1 reply [Last post]
Bruce Dubbs
Offline
Joined: Jan 24 2012
Points: 5

I have a problem with host/client network connection.

When I start the client with '-net nic -net user', the client accesses the internet reasonably well (ping does not work).

My problem is that I am trying to connect to my internal network (ssh, etc) but cannot get it to work. When I use '-net nic -net tap', I get a message,

/etc/qemu-ifup: could not launch network script
qemu: -net tap: Device 'tap' could not be initialized

If I use '-net tap,script=no', then I get the normal grub prompt and the system will boot, but of course, I have no network connection (eth0 does exist) on the client. On the host tap0 is created.

My question is how do I connect the client and host? I have no problem with writing a specific script, but I don't know how the host and client should be tied together. Once I get that done, I don't think extending things with iptables would be a problem.

Can someone point me in the right direction? I've looked at http://www.linux-kvm.org/page/Networking, but I can't seem to get the advice to work.

Thanks,
-- Bruce

Bruce Dubbs
Offline
Joined: Jan 24 2012
Points: 5
Never mind. I got this

Never mind. I got this figured out. It was a misunderstanding about the tap script.

-- Bruce

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.