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

My host system has the IP Now I want to create a kvm guest using a tap device (so the network card of the guest just acts like a "real" one). The guest has a static ip which it setups on his own (no dhcp). To connect to the guest using VNC I can to use the host's IP. So far everything works fine.

Now I wonder how I can make the VNC server to listen on the guest's IP address, so I can use the guest's IP address to connect using my vnc client. Of course I cannot use -vnc as this IP is not active on the host and so fails with Cannot assign requested address. Can this be done with tap networking at all? If not, how to get it working?

share|improve this question

If you want to VNC into the guest machine, simply start VNC inside the guest machine. Once you can get to the guest from outside the host, treat the guest as if it's just another separate host on the network.

share|improve this answer
I do not want to run the VNC Server inside the guest. This way I would not be able to access the BIOS, choose which drive to boot, etc. There must be a way to use the vnc server provided by them qemu/ kvm process using the guest's ip. – gucki Nov 16 '12 at 14:14
There isn't. If you want VNC access to the guest, you have to run the VNC server in the guest. What it seems like you want is a VNC session in the host to the guest's graphical console - but it will be on the host's IP, not the guest's. – John Nov 27 '12 at 15:06

The guest's IP is set up in the guest OS, qemu runs on the host. There is no way to have the host and the guest share an IP

share|improve this answer

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.