Installation (KVM)

From vWiki
Jump to navigation Jump to search


This guide assumes you have a working Ubuntu Server with one physical NIC that will used for networking to the host server, and also for a bridged network for guest virtual machines.

Ensure your server has CPU's that support hardware virtualisation, you should get one output of flags per CPU (which will include either svm or vmx)

 egrep '(vmx|svm)' /proc/cpuinfo


Install using the following command

apt-get install qemu-kvm libvirt-bin virtinst bridge-utils cpu-checker



Allow VNC Console Access

By default virtual machine consoles are bound to on the host KVM server. So you can't connect from a remote machine using VNC to see the VM's console (unless you tunnel through SSH). Bind to to make remote console access. Note that the VM configuration also needs to be changed to listen on

  1. Edit /etc/libvirt/qemu.conf and uncomment the following line
    • vnc_listen = ""
  2. Restart libvirtd
    • service libvirtd restart