Questions tagged [kvm-virtualization]

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.

Introduction

Kernel-based Virtual Machine (KVM) is a virtualization infrastructure for the Linux kernel. KVM supports native virtualization on processors with hardware virtualization extensions. KVM originally supported x86 and x86-64 processors and has been ported to S/390, PowerPC, and IA-64. An ARM port is in progress.

A wide variety of guest operating systems work with KVM, including many flavours of Linux, BSD, Solaris, Windows, Haiku, ReactOS, Plan 9, and AROS Research Operating System. A modified version of QEMU can use KVM to run Mac OS X.

Limited paravirtualization support is available for Linux and Windows guests using the VirtIO framework. This supports a paravirtual Ethernet card, a paravirtual disk I/O controller, a balloon device for adjusting guest memory usage, and a VGA graphics interface using SPICE or VMware drivers. KVM uses SeaBIOS.

Design

By itself, KVM does not perform any emulation. Instead, a user space program uses the /dev/kvm interface to set up the guest VM's address space, feeds it simulated I/O and maps its video display back onto the host's. QEMU versions 0.10.1 and later make use of this.

Features

  • QMP - QEMU Monitor Protocol
  • KSM - Kernel Samepage Merging
  • Kvm Paravirtual Clock - A Paravirtual timesource for KVM
  • CPU Hotplug support - Adding CPUs on the fly
  • PCI Hotplug support - Adding PCI devices on the fly
  • vmchannel - Communication channel between the host and guests
  • migration - Migrating virtual machines
  • vhost -
  • SCSI disk emulation -
  • Virtio Devices -
  • CPU clustering -
  • hpet -
  • device assignment -
  • PXE boot -
  • iSCSI boot -
  • x2apic -
  • Floppy -
  • CD-ROM -
  • USB -
  • USB host device passthrough -
  • Sound -
  • Userspace Irqchip emulation -
  • Userspace Pit emulation -
  • Balloon memory driver -
  • Large pages support -
  • Stable Guest ABI -

Links

Official Website

2405 questions
19
votes
2 answers

understanding relationship between Qemu and KVM

What is the difference between KVM and Qemu? As I understand, latter is able to provide "user mode emulation" which means that one can run a single executable built for some other architecture like this: # file busybox-sparc busybox-sparc: ELF…
Martin
  • 352
  • 3
  • 12
  • 29
18
votes
1 answer

What is fastest way to copy a sparse file? What method results in the smallest file?

BACKGROUND: I'm copying a sparse qcow2 VM image that is 200GB in size, but has 16GB of allocated blocks. I've tried various methods to copy this sparse file within the same server and have some preliminary results. Environment is RHEL 6.6 or…
Steve Amerige
  • 433
  • 2
  • 5
  • 12
18
votes
4 answers

How do I enable KVM device passthrough in Linux?

I have an MSI-GD65 Gaming motherboard and an Intel i7 4790. VT-D is enabled in the CPU Features section of the bios. I'm running Ubuntu 14.04.1 LTS and when I try and detach a device, I get the following message: # virsh nodedev-detach…
Anonymouslemming
  • 891
  • 4
  • 15
  • 26
18
votes
9 answers

Is there a way to determine which virtual interface belongs to a virtual machine in a kvm host?

I'm using qemu/kvm whith bridged networking. In the host machine there are several "vnetX" network interfaces without IP. I'm looking for a way to know which vnetX belong to a virtual machine. I tried to match the MAC Address values on these…
theist
  • 1,229
  • 2
  • 10
  • 24
18
votes
4 answers

Can KVM suspend or shutdown guests automatically on host shutdown?

We have a CentOS 5.5 KVM host, running guests with various versions of CentOS and possibly other OSes later. We'd like to be able to either (a) automatically send an ACPI shutdown to all guests or (b) suspend all guests to disk, on host shutdown. Is…
Andrew Clegg
  • 387
  • 1
  • 2
  • 9
17
votes
1 answer

QEMU multiple port forwarding

I would like to forward more than one port. This command run my VM and forwards RDP port successfully: qemu-system-i386 -net nic,model=rtl8139 -net user,hostfwd=tcp::3389-:3389 -m 512M -localtime -cpu core2duo,+nx -smp 2 -usbdevice tablet -k en-us…
Anna Parker
  • 381
  • 1
  • 2
  • 10
17
votes
3 answers

KVM guest cannot write to 9p share owned by non-root

I am aiming to set up full write access to a 9p share for a KVM guest. Both host and guest have the same users/groups with the same IDs. Both host and guest should be able to write to the share using same usernames and I don't want to distinguish…
Greendrake
  • 1,391
  • 2
  • 13
  • 22
16
votes
1 answer

Delete "orphan" libvirt snapshot

I am trying to live-snapshot using KVM as per this procedure. I must have messed up at some point because I'm in a state I don't understand. My VM is called prod. It was created in file /srv/vm/prod.qcow2. Apparently, there is no running snapshot:…
Jérôme
  • 615
  • 2
  • 8
  • 19
16
votes
3 answers

Hyper Threading and Virtual Machines?

I already looked at this thread: Hyper-V and Hyper-threading: On or off?, but the only answer is Windows specific.... I am building a VM server (using Proxmox VE if that makes a difference) and was wondering about how hyper threading can affect…
Soviero
  • 4,366
  • 8
  • 36
  • 60
16
votes
7 answers

recommendations for efficient offsite remote backup solution of vm's

I am looking for recommendations for backing up my current 6 vm's(and soon to grow to up to 20). Currently I am running a two node proxmox cluster(which is a debian base using kvm for virtualization with a custom web front end to administer). I…
senorsmile
  • 713
  • 8
  • 20
16
votes
5 answers

Is online disk resize possible with KVM?

We're evaluting KVM for Linux virtualization on a few projects. All is going well so far. But one of our requirements is the ability to add disk space to a running guest without rebooting or taking it offline. Is this possible with KVM? The only…
Eil
  • 389
  • 2
  • 5
  • 12
15
votes
2 answers

Strongswan vpn tunnel connected but the traffic is not routed through it

I have just set up a vpn tunnel site-to-site with strongswan (4.5). The tunnel looks fine and connected to the other side, but seems there is a problem routing traffic through the tunnel. Any idea? Thanks! Network…
telemaco
  • 251
  • 1
  • 2
  • 4
15
votes
3 answers

libvirt: how can I make a domain start when the host starts?

I would like some of my domains to start automatically when my host starts (I'm using libvirt+KVM on ubuntu). I guess I could put some "virsh start..." statements in rc.local, but is there a way to configure this within libvirt/virsh?
kdt
  • 1,400
  • 3
  • 22
  • 34
15
votes
15 answers

Web based KVM management for Ubuntu

We've got a single Ubuntu 9.10 root server on which we want to run multiple KVM virtual machines. To administer these virtual machines I'd like a web based KVM management tool, but I don't know which one to choose from the list of tools mentioned on…
Tim
  • 215
  • 1
  • 2
  • 9
15
votes
5 answers

Why does my Windows 7 VM running under Linux' KVM not use all the virtual processors?

All I've had a problem on my server since I migrated one of my VM's from Windows 2008 Server to Windows 7 (ultimate): though I've assigned four cores to the VM and it even seems to see them, it seems to think it has two cores! Can anyone tell me…
jkp
  • 429
  • 3
  • 7
  • 14