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
1
vote
0 answers

Not able to access the console when I install a guest VM on a KVM

I am trying to write a script for installing a guest VM on a KVM using virt-install. I have a knoppix live cd based iso. The underlying OS is Debian 6.0.2. I am using this command to install the guest vm : virt-install --name wanem --memory 2048…
1
vote
0 answers

Correct SELinux labels for a kvm/qemu user session VM shared folder

I am trying to set up a shared folder using the 9p protocol for a kvm/qemu VM that runs on the user session (so the qemu process runs as me, not as root). Mounting the shared folder in guest works fine, I can see and read all files, but I cannot…
Simon
  • 255
  • 2
  • 7
1
vote
0 answers

error: internal error: Child process /sbin/parted - unexpected exit status 1: Error: You requested a partition from

# fdisk -l /dev/sdb Disk /dev/sdb: 447.1 GiB, 480103981056 bytes, 937703088 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type:…
Viacheslav
  • 111
  • 2
1
vote
0 answers

Hyper-V 2016 vs KVM Performance

We have 2 VM clusters here with identical hardware, all fully patched to latest levels. We have been testing running some linux workloads on the 2016 cluster and found a big difference in performance. We were initially alerted to the issue by seeing…
GreatSamps
  • 161
  • 1
  • 5
1
vote
1 answer

Is it possible to run a VM without actually enabling virtualization settings in BIOS?

I am trying to launch a VM with QEMU KVM on a Linux system but I am unable to actually make it work. It just doesn't start. But I figured out that I need to enable virtualization from BIOS settings to actually achieve hardware level…
1
vote
3 answers

VLAN support with libvirt for linux bridge to virtual machines

I'm using systemd-networkd to configure network interfaces managed by libvirt for KVM (Kernel-based Virtual Machine) with Debian Bullseye on all nodes. I want to have transparent VLAN support on the virtual machines using the Linux Bridge. For the…
Ingo
  • 416
  • 5
  • 13
1
vote
1 answer

KVM Live Migration- VM is already active

I'm trying to perform a live migration from one KVM host to another, both SLES12SP5, share the same subnet. 'kvm_one' hosts the server 'login01'. 'kvm_two' hosts no servers. Executing the following command: kvm_one:~# virsh migrate --live…
1
vote
1 answer

Raw LVM disk write is four times faster on host than inside KVM guest?

I've got a Debian 10.6 Host, with a Debian 10.6 guest. KVM/Qemu/libvirt. The host has a software RAID 10 array with 6 mechanical disks. LVM is on top of the RAID array. One LV is passed into the guest using:
Nick
  • 4,503
  • 29
  • 69
  • 97
1
vote
0 answers

Can't see docker ports from external machines when using a veth interface with an OPNSense KVM

Quick summary of the setup: Ubuntu Server 20.04 with 4 network ports OPNsense router running in libvirt KVM One port is WAN, three ports are LAN (bridged) Router works great Server (same one running OPNsense) gets access to LAN and internet by VETH…
colordrops
  • 11
  • 2
1
vote
0 answers

Resizing VM's size having only boot partition

I've to increase my KVM guest's partition, I followed steps as explained in the accepted answer here. For step 3, there's a link mentioned in the accepted answer comment section (tried to paste it here too but my copy paste is not working, if i try…
1
vote
2 answers

KVM quests "stuttering"/"freezing" intermittently on Debian 10

I'm using KVM on Debian 10 as host and for now two guests that are Debian 10 as well. The guests are "stuttering" frequently, what I mean by that is that like at least several times an hour a guest becomes unresponsive for like 10 seconds. If I have…
1
vote
0 answers

KVM DNS forwarding not working / reply: REFUSED

I've set up a couple of VMs for development purposes for a project. The setup includes a local CA for the past, current and future project VMs. On the guest if can do dig staging.testing.lan and get the desired response. But on the host I get a…
1
vote
0 answers

Same sysctl kernel parameters for KVM host and guest

I need to set up a KVM guest with the following sysctl kernel parameters: net.core.rmem_max = 16777216 net.core.wmem_max = 16777216 net.ipv4.tcp_rmem = 4096 87380 16777216 net.ipv4.tcp_wmem = 4096 87380 16777216 net.ipv4.udp_rmem_min =…
dshykuts
  • 11
  • 2
1
vote
0 answers

ASMB8-IKVM firmware update

I'm trying update firmware that there is 1.08 to more recent, I look in site official but not gotch result, all versions are defined with "unsuccessful" in verifying the firmware image anyone can help me? I…
1
vote
1 answer

Libvirt guest hostnames DNS resolution from host and guests

I have set up multiple virtual machines with libvirt and kvm on Ubuntu server 20.04, which work just as expected. The only thing I cannot figure out at this point is how to make their hostnames resolvable between the guests and from the host, at the…