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
14
votes
7 answers

Tough Choice: Xen or KVM

I'm building a fresh workstation and want to use Linux alongside Windows. This seems like a good opportunity to get acquainted with with either Xen or KVM. So I face a choice. In favour of using Xen I see a type 1 hypervisor with very clear…
LRE
  • 645
  • 7
  • 16
14
votes
4 answers

Improving IO with FlashCache

I have a server with 2 HDD's (2x 1 TB), running in RAID 1 (SW-RAID). I want to improve IO performance by using flashcache. There are running KVM virtual machines on it, using LVM. Regarding this, I have the following questions: Will this even work?…
Devator
  • 1,473
  • 4
  • 18
  • 37
14
votes
6 answers

How to decrease the size of a KVM virtual machine disk image?

How do you decrease or shrink the size of a KVM virtual machine disk? I allocated a virtual disk of 500GB (stored at /var/lib/libvirt/images/vm1.img), and I'm finding that overkill, so now I'd like to free up some of that space for use with other…
Cerin
  • 3,600
  • 19
  • 61
  • 79
14
votes
1 answer

KVM guest io is much slower than host io: is that normal?

I have a Qemu-KVM host system setup on CentOS 6.3. Four 1TB SATA HDDs working in Software RAID10. Guest CentOS 6.3 is installed on separate LVM. People say that they see guest performance almost equal to host performance, but I don't see that. My…
Evolver
  • 626
  • 2
  • 6
  • 14
14
votes
2 answers

What is bridge_fd?

I'm creating bridge network on Ubuntu 9.04(server) I set up following configuration file /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet manual auto br0 iface br0 inet static address 192.168.1.10 network…
freddiefujiwra
  • 1,667
  • 5
  • 25
  • 34
14
votes
3 answers

KVM and virtual to physical CPU mapping

I'm a relative late comer to the virtualistion party, so you'll have to forgive me if this seems like an obvious question. If I have a server with 12 cores available, does each KVM guest have access to all 12 cores? I understand KVM makes use of the…
14
votes
4 answers

Port Forwarding from Host to Guest with libvirt 0.8.3 Using KVM on Ubuntu

The host has a single external IP available, so I set my KVM guests up with NAT. How do I set up a port forwarding to forward some of the requests from the outside to the guests? I couldn't find any documentation on this. The closest answer is…
wei
  • 605
  • 1
  • 7
  • 11
14
votes
4 answers

virsh console and tty size

I have a virtualization server to which I connect over ssh. If I now change the size of the window it will automatically propagate to the server. It's most easily seen using stty -a, checking the columns and row values. I then use virsh console to…
pehrs
  • 8,789
  • 1
  • 30
  • 46
14
votes
5 answers

how to find out if running inside KVM guest

Is there a way to find out if OS(linux) is running inside KVM guest..
suyogdotstar
  • 143
  • 1
  • 1
  • 4
14
votes
8 answers

Get list of DHCP clients with KVM+libvirt?

I have several VMs running on Ubuntu 9.10 via KVM+libvirt. I want to be able to find out the IP address that has been assigned to each host without physically opening a physical "console" to each machine and invoking…
rascher
  • 1,118
  • 3
  • 13
  • 14
13
votes
8 answers

Free hypervisor for small configuration

I'm building a server for virtualization for a non profit organization. I was planning on employing VMware ESXI free but I'm second guessing my plan because newer ESXI don't seem to be well supported by the vSphere Client and the web interface which…
13
votes
5 answers

virsh: VM console does not show any output

I have a VM which I can start with virsh. According to virsh dumpxml VM1, this is the allocated pty:
blueFast
  • 4,200
  • 13
  • 37
  • 54
13
votes
5 answers

Considerations when chosing AMD processors over Intel

I work for a company with a lot of legacy LAMP web-applications, where we are trying to refresh our hardware from ~250 physical servers to ~40 new servers w/virtualization. We have received two quotes from vendors - one is suggesting Intel…
Morgan Tocker
  • 208
  • 2
  • 12
13
votes
4 answers

How to mount virtual machine's LVM partition on KVM host?

If I trying to do following on KVM host: # kpartx -av /dev/VolGroup00/kvm101_img add map kvm101_img1 : 0 208782 linear /dev/VolGroup00/kvm101_img 63 add map kvm101_img2 : 0 125612235 linear /dev/VolGroup00/kvm101_img 208845 # mount…
Evolver
  • 626
  • 2
  • 6
  • 14
13
votes
3 answers

Snapshot/rollback for libvirt+KVM?

I've recently begun using KVM for my development/test environment on a Linux host system with 8G memory. Prior, I was using VMware Fusion for my virtual environment, but my Macbook only has 2G memory. I tried VMware Server and ESX on the host…
jtimberman
  • 7,587
  • 2
  • 34
  • 42