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

Bind/Unbind PCI device on the Ubuntu host

I have to NIC devices on the host: # list Ethernet PCI devices to find out names lspci -nn | grep Ethernet # 04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168]…
1
vote
0 answers

Strange server behavoir with huge spike in system load while number of context switches are small

We're seeing strange behavior on 3 of our machines. We're having trouble figuring what's going on under the hood. We're seeing: 1- A significant drop in the number of context switches. 2- A very large increase in the number of file-descriptors that…
MrSmiff
  • 11
  • 1
1
vote
0 answers

How to configure a hypervisor such that a KVM/QEMU virtual machine can reach hosts connected to the same trunk bridge?

1 Problem My goal is that all LAN traffic is routed through a virtual machine (VM) acting as a router and firewall. Other VMs on the same hypervisor should also be routed through the firewall VM. See the following network sketch. Physical hosts…
1
vote
1 answer

KVM Bridge forward packets only one-way

I have configured linux VM using virsh/libvirt/kvm and having problem with bridge network. Default NAT network from libvirt was working fine, but I need bridge to public interface. I have removed default network using virsh, and changed VM network…
forke
  • 143
  • 10
1
vote
0 answers

How to ensure that the changes in domain XML spec in libvirt takes effect?

I followed this host port forward with qemu through libvirt in user-mode networking answer to accomplish a certain task but it was only after a reboot that the ports were actually accessible. I tried restarting the domain but it did not work. What…
1
vote
1 answer

How to move live QEMU-KVM VM without libvirt?

Let me start by saying that I read How to (properly) back up a live QEMU/KVM VM? But it does not seem to meet my need. I am looking for a solution to backup AND move a few QEMU-KVM VMs without stopping them. The state do not need to be perfecting…
some user
  • 181
  • 5
1
vote
0 answers

Establish KVM bridge with static IP

I would like to establish a virtual machine (KVM) on Ubuntu Server and configure bridge networking in order to connect to the VM via static IP. I want to connect to the VM directly via SSH (bypassing the host). However I have only remote access to…
ahaswer
  • 11
  • 1
1
vote
0 answers

Ubuntu server 2020.4 network bridge for KVM not starting

I'm attempting to configure a bridge to be used for a KVM host on Ubuntu 2020.4 LTS. The basic configuration with netplan works, but the bridge does not work until I manually add the ethernet interface to the bridge with brctl. But when doing that…
markus_b
  • 361
  • 1
  • 5
1
vote
2 answers

Host has no internet access when VMs are running

How do I set up the network, so that both host and VMs can connect to the internet? I've set up a server to host several virtual machines using KVM. It is intended to serve a library of downloadable books for blind people (further details…
StefanF
  • 11
  • 1
  • 2
1
vote
0 answers

Cockpit -- how to add user options to start VM with QEMU/KVM

I used Cockipt (host is the CentOS8) to create a guest VM (CentOS8 also). Now I have a task to configure the VM to use stuff from SPDK's VHOST. According SPDK docs I'm need to add follow lines to QEMU's command line : **-chardev…
1
vote
0 answers

qemu (KVM) how to set iscsi timeout on?

I have opensuse 15.2 Leap on all systems qemu 4.2.1 # /usr/bin/qemu-system-x86_64 --version QEMU emulator version 4.2.1 (openSUSE Leap 15.2) Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers For guest system there are two…
sergey_s
  • 11
  • 2
1
vote
0 answers

rebuild a vmware machine in KVM with an .ova file

I want to run vmware PKS in a KVM virtual machine and have the official .ova file as a starting point. I am aware of the conversion from .vmdk --> .qcow2 basically but am still struggeling with the VM Settings. I guess my problems start with having…
vrms
  • 287
  • 1
  • 7
  • 17
1
vote
0 answers

How to setup a failover server with KVM and DRBD

I have a server that I am virtualizing using the Virtualizor control panel. I need to set up a failover server that syncs everything on the first server to the second server. I am using DRBD to sync the servers. I have a couple of questions as I am…
1
vote
1 answer

Centos 8 stream, KVM & multiple vlans

For my local environment i'm trying to add multiple vlans to my KVM server. I want to use one nic for management and the other for vlan tagging. Initial installation was made by following…
thborge83
  • 11
  • 1
1
vote
1 answer

How to configure and use all the IPs given by my provider?

Need assistance on how to use all the Ips given from my hosting provider. Currently i have 5 IPs that is routable and can be used on any circumstances. I wanted to make a new environment on my dedicated server such as VPS inside. Eventough ive able…