Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

2 Answers 2

up vote 5 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 = "0.0.0.0"

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.

VNC

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:

http://jrs-s.net/2012/10/27/getting-spice-working-in-ubuntu-12-04-1-lts/

For a nice demo see:

http://www.montanalinux.org/fedora-virt-preview-f15-virt-manager-spice.html

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

 
discard

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.