Lesson 2

Date: 5/31/2017
Linux installation and upgrade
Linux System Administration

Virtualization with KVM

  • KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V).

  • To see if the processor supports hardware virtualization:
    egrep -c '(vmx|svm)' /proc/cpuinfo
    If 0 it means that your CPU doesn't support hardware virtualization. If 1 or more it does - but you still need to make sure that virtualization is enabled in the BIOS.
  • Install package cpu-checker:
    apt-get install cpu-checker
  • Verify that the kvm module is loaded into the kernel and the BIOS has virtualization enabled
    If it shows
    INFO: /dev/kvm does not exist
    HINT:   sudo modprobe kvm_intel
    INFO: Your CPU supports KVM extensions
    KVM acceleration can be used
    Run commands:
    modprobe kvm_intel
    You should see now:
    INFO: Your CPU supports KVM extensions
    INFO: /dev/kvm exists
    KVM acceleration can be used
  • If it shows
    INFO: Your CPU supports KVM extensions
    INFO: KVM is disabled by your BIOS
    reboot the system. On Dell T3400, the VT option is located in F2 Setup under the following selections: Performance > Virtualization. Use the right arrow key to move to 'On' and enable it. Press ESC, then Save/Exit confirming to save changes and exit.
    After the system boots up, run again

  • Take me to the Course Website