I'm using kvm+qemu
on Ubuntu 14.04 Server.
I need to enable VNC for remote hosts, so I edited /etc/libvirt/qemu.conf
and uncommented vnc_listen = "0.0.0.0"
there.
My problem, is that I don't know how to reload this configuration file without restarting all the hosts. Already tried:
service libvirt-bin reload
reload libvirt-bin
and killall -HUP libvirtd
without success. Is there a way to reload this configuration file? Or do I need to restart all the guests?
Do not do it in
/etc/libvirt/qemu.conf
, but rather do it in the definition file for the guest itself, for example in/etc/libvirt/qemu/serv64_dev.xml
. here is an example of the relevant section:Use
virsh edit domain name
to edit, examplevirsh edit serv64_dev
(from any directory), as it does some additional checks upon exit.The default editor used by
virsh edit
is as defined by the $EDITOR environment variable, or VI if it does not exist. addexport EDITOR="/bin/nano"
to your~/.bashrc
file to set, for example, nano as your default editor.You need to allow the port in Ubuntu's firewall as well.