KVM

From UMIACS
Revision as of 17:35, 28 February 2014 by Sabobbin (talk | contribs) (Created page with "KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V). It consists of a l...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V). It consists of a loadable kernel module, kvm.ko, that provides the core virtualization infrastructure and a processor specific module, kvm-intel.ko or kvm-amd.ko. KVM also requires a modified QEMU although work is underway to get the required changes upstream.

Using KVM, one can run multiple virtual machines running unmodified Linux or Windows images. Each virtual machine has private virtualized hardware: a network card, disk, graphics adapter, etc.

The kernel component of KVM is included in mainline Linux, as of 2.6.20.

Getting Started

In order to start using KVM on your machine UMIACS Staff will first need to install the requisite packages, and set a baseline configuration. Please submit your request to staff@umiacs.umd.edu along with a brief explanation of your goals for running a local virtual machine.

Once staff has installed the required packages you can then use the program 'virt-manager' to initialize and manager your virtual machines.

  • In a terminal run:
virt-manager
  • This will bring up a graphical interface which can be used to manage various aspects of your virtual manchines.
  • You will now need to connect to your localhost
  • 'File' -> 'Add connection'
  • Unselect 'connect to remote host' option, then hit 'connect'.


Creating a virtual machine

The following is a brief outline of the key points on installing a KVM virtual machine

  • Expand 'localhost'
  • Click the 'New' Button
  • Follow the prompt

Important things to keep in mind:

  • The virtual machines should only be created on local disk space. Created a virtual machine on networked filespace will result in poor performance for both the machien, and others using the Networked filespace.