Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

Do I need to install a special package to get the VNC support ?

I installed:

sudo apt-get install kvm qemu-kvm qemu-kvm-extras

Everything works fine, I only get no VNC server up and running, although its configured for the VM.

Maybe this is a firewall problem since I can connect locally.

share|improve this question
Are you using plain qemu/kvm or libvirt? – Salem Mar 1 '13 at 14:28
qemu-kvm + libvirt for controll – Dukeatcoding Mar 1 '13 at 14:30
Not as an answer to your question, but another way, you can install remmina, a good VNC client, preinstalled in Ubuntu 12.10 ;) – Mostafa Shahverdy Mar 1 '13 at 14:53
up vote 7 down vote accepted

VNC support should be available by default. So as you said there may be a problem in firewall or qemu/libvirt configuration.

Regarding qemu by default it only accepts local vnc connections. To change that edit /etc/libvirt/qemu.conf:

vnc_listen = ""

This will enable connections from all hosts, which depending what you are trying to do can be very dangerous. In that file you can find more info on how to secure things up.

Also, if you use libvirt I think it also only accepts local connections by default. To enable remote access edit /etc/libvirt/libvirtd.conf:

listen_tcp = 1

The same security concerns regarding qemu apply here. See how to secure the connection if needed here.

As a last resort check if the ports used by vnc and libvirt are open. In the case you are using ufw:

sudo ufw status verbose
share|improve this answer
il try that as soon as possible thx so far – Dukeatcoding Mar 1 '13 at 15:23
thx very much worked out for me atm, have to check which security issues i accept in order to get my vnc working – Dukeatcoding Mar 11 '13 at 9:09

KVM (qemu) has a built in VNC server and it works by default. It can be enabled in several ways. If you want a graphical tool use virt-manager.


HOWEVER, IMO there is a better option, use the spice package.

The spice server is much faster.

I use spice on Fedora, sorry about that. For Ubuntu see:

For a nice demo see:

yes it is a bit dated and for Fedora, but I use spice with my Ubuntu guests and it works fine.

share|improve this answer
vnc config already looks that way - think i have to try out salems idea to maybe enable remote access in general – Dukeatcoding Mar 1 '13 at 21:14

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.