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
11
votes
2 answers

Backup of running KVM qcow2 VPS

I want a robust method of taking backup of KVM VPS of qcow2 file, while running. After searching for a long time I found that we can use rsync for live backup. I used following command for rsync: rsync -avh /vms/base.qcow2 /backup/backup.qcow2 It…
Bosco D'mello
  • 111
  • 1
  • 1
  • 4
11
votes
5 answers

How can I change Qemu KVM machine architecture from 440fx to q35 with virsh edit or virt-manager

Still trying to get GPU passthrough working and decided to change machine type from older 440fx to q35 ie pc-q35 but if I do virsh edit on the config it refuse to save saying "PCI Bridges not supported"... by current qemu binary. What do I need to…
11
votes
2 answers

How to quit QEMU monitor?

I launched KVM VM with this command: kvm /kvm/hdd/v1/v1-1.raw -m 512 -daemonize -smp 2 -nographic -net nic,model=virtio,macaddr=aa:aa:aa:aa:aa:01 -net tap,ifname=tap0 -monitor telnet:localhost:7001,server,nowait,nodelay Then I connect to the…
artem
  • 596
  • 2
  • 10
  • 28
11
votes
2 answers

KVM on Illumos (OpenIndiana vs. SmartOS)

I'm considering virtualizing a number of guests onto a single server running a recent port of KVM to Illumos. It sounds like my two primary options will be OpenIndiana and SmartOS. The distribution I will end up using needs to meet the following…
Alex
  • 471
  • 7
  • 18
11
votes
3 answers

What KVM disk type to use?

I'm setting up a few KVM virtual guests and I'm debating which disk type to use. I haven't been able to find a good resource online that runs down the pros and cons of each. Can you help me create a list of the different disk type and the advantages…
Barry Brown
  • 2,472
  • 5
  • 23
  • 23
11
votes
5 answers

libvirt: Change dhcp-setup without restarting

I'm using libvirt and kvm to virtualize my server. I configured libvirt to start a dhcp-server on the bridge-network-interface to give the vm's their ips. Every VM's gets always the same ip based on its mac, this is configured like this:
theomega
  • 734
  • 2
  • 8
  • 17
10
votes
5 answers

How to add virtual storage as SSD in KVM

Being previously a VirtualBox user, I moved to KVM(QEMU/libvirt or whatever it's called) recently. I know that in VirtualBox, when you add a new storage device to the VM, there is a checkbox labeled Solid-state Drive, if checked, the guest system…
10
votes
4 answers

virt-install cannot use ISO file as location

I am using the following script to install a new Fedora Server virtual machine virt-install \ --name theta-1 \ --ram 8000 \ --disk path=/dev/vg/t1.img \ --vcpus 8 \ --os-type linux \ --os-variant fedora25 \ --network bridge=br0 \ --graphics none…
Germano Massullo
  • 213
  • 2
  • 5
  • 17
10
votes
1 answer

Configuring 1:1 Nat using Firewalld for VM's

I've setup 2 vm's within my server and I'm trying to setup a 1:1 NAT for them with firewalld on CentOS 7. Currently both vm's are behind a virtual bridge (virbr0, vnet0, vnet1) and I've made copies of the NIC for each IP to be used with them. I…
dstana
  • 285
  • 2
  • 10
10
votes
3 answers

WARNING KVM acceleration not available, using 'qemu'

Running debian (Linux Rick 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux) Looking at my cpuinfo I can see I have vmx support: flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush…
red888
  • 4,183
  • 18
  • 64
  • 111
10
votes
1 answer

VT enabled in BIOS but KVM failed to detect

I Have Dell OPTIPLEX 755 machine with VT enabled in BIOS but when i trying to check using KVM i am getting following error I am missing something? root@nova-controller:~# kvm-ok INFO: /dev/kvm does not exist HINT: sudo modprobe kvm_intel INFO:…
Satish
  • 682
  • 3
  • 8
  • 22
10
votes
3 answers

How to find which screen (and thus port) the VNC UI for a kvm guest has? Or how to assign it

Is there a straightforward way to find the VNC screen (i.e. port number minus 5900) onto which a KVM guest is bound? My guests are all configured to run with VNC enabled, but the order in which they occupy the ports is random. Alternately, is there…
0xC0000022L
  • 1,516
  • 2
  • 22
  • 42
10
votes
2 answers

Access KVM virtual machines over VNC without port forwarding with SSH

Is it possible to access the VMs without having to forward the remote port and VNC to the localhost? I'd like to be able to VNC into the KVM server and see the VMs display.
Shoan
  • 1,715
  • 5
  • 17
  • 23
10
votes
2 answers

Changing boot device for a QEMU-KVM virtual machine

I am trying to change the boot device for a VM. I go to the VM's XML file in /etc/libvirt/qemu and set . Still, it attempts to boot from the harddrive instead of the cdrom. I know I have an ISO image loaded on the CD-ROM virtual…
Belmin Fernandez
  • 10,799
  • 27
  • 84
  • 148
10
votes
4 answers

Best way to share a folder between KVM host and guest

I'd like to share a folder between a KVM guest and host. I want the data to be stored only on the host. What's the best solution for that? thanks mat
mat3001
  • 315
  • 2
  • 3
  • 8