Before you proceed with the installation you must confirm that your
system supports KVM. As mentioned earlier, it requires hardware
virtualization support in the CPU. Type in the following command to
check the compatibility:
#egrep -c '(vmx|svm)' /proc/cpuinfo
If the output is 0, then KVM won't work as the system does not support VMX nor SVM hardware virtualization. If the output is 1 or greater than 1 it means your system is all set and ready to go for KVM installation.
Run the following commands to install KVM:
#sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
The above command includes installation of 4 packages kvm, libvirt-bin,
ubuntu-vm-builder and bridge-utils. You are done with the installation
for now. Just make sure your Ubuntu username is addded to the group
libvirtd by typing:
#sudo adduser `id -un` libvirtd
In the next step, I will install a GUI tool for ubuntu which makes the process of setting up a VM easier.
Create bridge interface
#vim /etc/network/interface
edit to this:
#interfaces(5) file used by ifup(8) and ifdown(8) #auto lo #iface lo inet loopback # Enabing Bridge networking br0 interface auto br0 iface br0 inet static address 10.105.6.236 netmask 255.255.255.240 gateway 10.105.6.225 dns-nameservers 110.74.194.10 dns-nameservers 8.8.8.8 bridge_ports enp2s0 bridge_stp off
Save exit and reboot.
Install the virt-manager application with apt..
#sudo apt-get install virt-manager
Creating a KVM guest machine
After you have installed virt-manager just go ahead and start it by typing:
#virt-manager
Now we have interface for setup.
--------------------------------------------------------
Trobleshooting:
#vim /etc/libvirt/qemu.conf
-uncommand:
user = root
group = root
#/etc/init.d/libvirt-bin restart
=====================
http://bucksgunrack.com/blog/go2.php?go=https://www.howtoforge.com/tutorial/kvm-on-ubuntu-14.04/
-uncommand:
user = root
group = root
#/etc/init.d/libvirt-bin restart
=====================
http://bucksgunrack.com/blog/go2.php?go=https://www.howtoforge.com/tutorial/kvm-on-ubuntu-14.04/