Enabling Virtualization on Ubuntu
April 2, 2019
- Enable virtualization in BIOS . For Asus motherboard with Intel CPU, go to BIOS (Press F7 for Advanced Mode) > Advanced > System Agent Configuration > VT-d (Virtualization) > Enable
- Install libs
code
sudo apt install -y virt-manager
sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils ia32-libs-multiarch
vert-managerwill install theqemu-kvm libvirt-daemon-system libvirt-clients bridge-utilspackages as part of install
code
sudo apt-get install -y cpu-checker
egrep -c '(vmx|svm)' /proc/cpuinfo
cpu-checkerwill give you thekvm-okcommand
code
kvm-ok
INFO: /dev/kvm does not exist
HINT: sudo modprobe kvm_intel
INFO: For more detailed results, you should run this as root
HINT: sudo /usr/sbin/kvm-ok
code
sudo kvm-ok
INFO: /dev/kvm does not exist
HINT: sudo modprobe kvm_intel
INFO: Your CPU supports KVM extensions
INFO: KVM (vmx) is disabled by your BIOS
HINT: Enter your BIOS setup and enable Virtualization Technology (VT),
and then hard poweroff/poweron your system
KVM acceleration can NOT be used