Archive for the tag 'kvm'

SBDavid

KVM Architecture

KVM Architecture

In the KVM architecture the virtual machine is implemented as regular Linux process, schedule by the
standard Linux scheduler. In fact each virtual CPU appears as a regular Linux process. This allows KVM to
benefit from all the features of the Linux kernel.

Device emulation is handle by a modified version of QEMU that provides an emulated BIOS, PCI bus, USB bus and a standard set of devices such as IDE and SCSI disk controllers, network cards, etc.

How to use kvm with a non-privileged user?

The cleanest way is probably to create a group, say kvm, and add the user(s) to that group. Then you will need change /dev/kvm to owned by group kvm.

On a system that runs udev, you will probably need to add the following line somewhere in your udev configuration so it will automatically give the right group to the newly created device (i-e for ubuntu add a line to /etc/udev/rules.d/40-permissions.rules).

KERNEL==”kvm”, GROUP=”kvm”