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
1 answer

Is it possible to undo virsh undefine on a running VM?

I accidentally wrote the wrong command, as the VM is still running it is not yet removed. Is it possible to undo this action?
1
vote
1 answer

Correctly installing / configuring locally built qemu / libvirt

On Ubuntu 18.04, the default installation of qemu is something like version 3, and I needed virtiofs which has built-in support in later versions. So I uninstalled the qemu and related packages, downloaded the qemu 5.0 sources and complied it…
dsl101
  • 433
  • 1
  • 8
  • 14
1
vote
0 answers

Libvirt VM using twice it's memory

Running on Ubuntu server, a CentOS 7 VM is eating the memory : Host: # free -m total used free shared buff/cache available Mem: 80140 71676 5346 7 3117 7655 Swap: …
1
vote
0 answers

Dedicated IPv4 address for a KVM guest

I have a dedicated bare metal server, which is a KVM host and which has it's own IPv4 address. I just ordered another seperate IPv4 address for a KVM guest and which should be used for the KVM guest only. How I can I use both IPv4 addresses, one…
1
vote
1 answer

Migrate windows guests from VirtualBox to KVM without re-activation?

The windows check the hardwareuuid of virtualbox VM for activation. Is there a way to use same UUID in KVM to prevent the reactivation?
Wang
  • 292
  • 1
  • 2
  • 11
1
vote
1 answer

KVM with Public IP on Ubuntu 16.04 with NIC subinterfaces/aliases

I want to connect to VM1 (192.168.122.101) from/to the internet, i.e., Internet (x.x.5.5/ens3:4) <-> VM1 (192.168.122.101) without impacting the other networks (ens3, ens3:0->3). The problem is my VPS has only one physical NIC. Other IPs are aliases…
lucasart
  • 123
  • 1
  • 9
1
vote
1 answer

Trunking 802.1Q inside KVM via MacVTap

I currently have the below setup, where vm is a KVM guest of host connected to one of host's network interfaces via MacVTap operating in bridge mode. |---------------| | ___________ | switch ======= | | vm | | …
KTOmega
  • 56
  • 3
1
vote
0 answers

How to connect host only to network bridge with QEMU VMs on linux host

I have a bridge working for qemu. I am able to start multiple copies of the same machine and they can network together. I am not interested in connecting to the outside internet. This is all on ubuntu 20.04. The guest systems are emulated arm64…
sn0wbl1nd
  • 11
  • 3
1
vote
1 answer

Is pausing/suspending VM into memory for long periods (months) recommended?

I am running KVM with some Ubuntu VM's as guest machines. The guest machines contain an application that does not need to be run most of the time, but once every few months, there are unexpected, random triggers that require it to be run immediately…
1
vote
1 answer

Can you start a getty on /dev/pts/x ? Want a serial connection between my Linux KVM server host and Windows Guest

Here's what I have going on: I have a Debian server running several services in Docker and a couple in KVM. One of the KVM hosts is a Windows 10 VM that I actually use as a desktop by using PCI passthrough of GPU, USB and some other things. On the…
Lon Kaut
  • 151
  • 5
1
vote
0 answers

Fedora 32: KVM routed Bridge Network

I'm fighting with the following problem. I got an Hetzner dedicated Server with multiple additional IPs which I want to use for KVM VMs. (MainIP = 1.1.1.1, First additional IP: 2.2.2.2) Before my server was running Ubuntu 16.04 and acts as a router…
1
vote
1 answer

Options to forward vm to internet via ssh tunnel

Want to give vm in qemu/kvm internet access but only via a port i can forward to ssh tunnel. qemu -> host (already established) ssh tunnel on port 8083 -> ssh proxy -> www ports for browsers and services can be forwarded, how to forward vm? I can…
alex
  • 11
  • 1
1
vote
0 answers

Failed to connect socket to 'var/run/libvirt/virtxend-sock': file or directory not found

I want to boot a physical installation of windows 10,so I need to run xen HVM version. Do u have a tutorial that I can follow ? I'm trying to create a new connection inside virt-manager,with xen,on ubuntu 20.04 because I want to create a windows 10…
Marietto
  • 143
  • 1
  • 10
1
vote
1 answer

Should a unified bare metal application suite outperform multiple VMs on the same hardware?

Assuming one single-socket Xeon D server, 8 cores, 16 threads, two 10G SFP+ interfaces, 64 GB of RAM, two SSDs... An application bundle that includes a nginx, MariaDB, some app logic, and maybe Redis. OS would be FreeBSD or Fedora Server. Does it…
1
vote
1 answer

Should I use "detect-zeroes" for TRIM/discard support on QEMU guests?

Until now I've enabled discard on my QEMU guests using the libvirt XML command .. .. And it seems to work fine. Now that I'm about to convert my storage from virtio-scsi to virtio-blk because it…
MrCalvin
  • 354
  • 1
  • 6
  • 18
1 2 3
99
100