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'm using kvm and qemu to run a windows virtual machine, but I'm trying to get internet on that machine. I've been reading about all this bridging and stuff that is done to do that, but I was wondering if there was a simpler way, to just forward my internet connection (since I'm connected on the host machine) through qemu to the guest operating system. Is this possible? Thanks

share|improve this question

You can use the user network emulation, which is slow, but is simple and should be activated by default indeed.

qemu -net nic -net user ...

This is how it's done.

This solution have some drawbacks:

  1. Some protocole (ICMP) can't reach the internet, but tcp and udp can.
  2. From the host you can't reach the guest afaik
  3. Networking in the is slow compared to bridging
share|improve this answer
Thanks for ICMP, because I've started to panic already why there's no ping and all config is fine – holms Aug 23 '13 at 22:27

No you have to bridge the connection. Instructions for Linux. Instructions for FreeBSD.
If you're going to be running this all the time, you might want to just write a quick script to do the steps automatically.

share|improve this answer

Your Answer


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