Difference between revisions of "Install KVM in an Ubuntu Server"
m |
|||
Line 6: | Line 6: | ||
If output is 1 or more it support hardware virtualisation ( NOTE: virtualisation should be enabled in the system BIOS) | If output is 1 or more it support hardware virtualisation ( NOTE: virtualisation should be enabled in the system BIOS) | ||
− | *Now Install < | + | *Now Install <code>kvm-ok</code> utility using below command, it is used to determine if your server is capable of running hardware accelerated KVM virtual machines. |
<code>sudo apt install cpu-checker</sudo> and run <code>kvm-ok</code> command and verify the output. | <code>sudo apt install cpu-checker</sudo> and run <code>kvm-ok</code> command and verify the output. | ||
Revision as of 10:26, 24 January 2020
Install KVM in an Ubuntu Server following https://help.ubuntu.com/community/KVM/Installation instructions for Ubuntu 18.10 LTS:
- Check processor supports virtualisation:
egrep -c '(vmx|svm)' /proc/cpuinfo
If output is 0 it means that your CPU doesn’t support hardware virtualization.
If output is 1 or more it support hardware virtualisation ( NOTE: virtualisation should be enabled in the system BIOS)
- Now Install
kvm-ok
utility using below command, it is used to determine if your server is capable of running hardware accelerated KVM virtual machines.
sudo apt install cpu-checker</sudo> and run
kvm-ok
command and verify the output.
- Execute:
sudo apt-get -y install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virtinst && virsh list --all
virsh list --all
Id Name State
----------------------------------------------------
And create your fist guest machine from command line using virt-install python script.
virt-install --virt-type kvm --name buster-amd64 --memory 1G --cdrom ~/iso/Debian/debian-10.0.0-amd64-netinst.iso --disk size=10G --os-variant debian10
Optional software to install:
apt-get install virt-top libguestfs-tools
Related commands
Packages
qemu-kvm
, provides kvm
binary and requires qemu-system-x86
package
libvirt-daemon-system
libvirt-clients
, provides virsh
client and virt-admin
bridge-utils
virtinst
See also
Advertising: