Questions tagged [kvm]

KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V).

KVM was envisioned and created by Qumranet, which was later acquired by Red Hat.

KVM is a very neat implementation of virtualization for x86 as the original code was less than 10,000 lines of code. It is implemented as a kernel module, and uses a number of features of the Linux kernel, instead of implementing them (e.g., scheduling of virtual machines is taken care by the kernel), unlike where all these features had to be taken care of by the hypervisor. Thus code reuse is something that KVM relies upon.

Following are the ways how KVM virtualizes various components of the real PC.

CPU Virtualization: CPU virtualization is taken care of by Intel VT or AMD-V technology, and KVM adds glue code to effectively use these technologies. KVM loads and saves a number of registers when a VM is scheduled or when it exits respectively.

I/O Virtualization: KVM does I/O virtualization with the help of , which emulates devices. KVM also supports passthrough devices where the VM can directly access I/O devices using IOMMU.

Memory Virtualization: Earlier design of KVM virtualized memory using shadow page tables, which is a software only approach to virtualizing memory. There is a high cost of synchronizing the shadow page tables with the page tables belonging to OS. Later, Intel and AMD came up with their own versions of nested page tables which is mostly a hardware approach to virtualizing memory.

1138 questions
0
votes
1 answer

How to solve "Error 13 while loading file" when using Qemu?

I write the following bytes into a file named disk.img FA 8D 36 1B 7C E8 01 00 F4 AC 3C 00 74 0C B4 0E BB 07 00 B9 01 00 CD 10 EB EF C3 4D 61 79 20 74 68 65 20 66 6F 72 63 65 20 62 65 20 77 69 74 68 20 79 6F 75 21 0D 0A 00 00 00 00 00 00 00 00 00…
id_morpheus
  • 1
  • 1
  • 5
0
votes
1 answer

Archive Opennebula images before transer and extract after

i have opennebula 3.4 and vm images transferred over ssh, it is possible to archive images(with gzip) and transfer to the host and then extract image?
Aleksei Kurepin
  • 139
  • 2
  • 10
0
votes
1 answer

Disabling the scheduler to reduce the cpu time on spinlock

In linux, in kvm environment, when a process in VM locks on some resource and is pre-empted, other processes of VM, which need that locked resource would spend time on spinlock. And the process would unlock the resource when it's allotted the…
rAzOr
  • 300
  • 6
  • 19
0
votes
2 answers

about guest in the kvm to handle the external interrupt and external interrupt

I'm new to kvm, can someone explain it's process when guest handle a external interrupt or the emulated device interrupt? Thanks Amos
user1334609
  • 381
  • 4
  • 12
-1
votes
0 answers

is there any useful docs or video to learn hypervisor systematically?

want to leran hypervisor systematically, but couldn't find any useful materials. I will be very apprecitae for your suggestions.Thanks. I have tried to search on the internet, but just find some gerneral descriptions. don't have not detail.
-1
votes
0 answers

KVM won't start

KVM isn't starting and when i look at the status of the libvirt services every thing but libvirtd-tcp.socket and libvirtd-tls.socket is running and when i use systemctl start on them it says "Job failed. See "journalctl -xe" for details" but i can't…
-1
votes
0 answers

multi-network testlab with open vswitch on my laptop

So i'd like to build a testlab on my laptop. pretty simple. 1 backend subnet for my "backend VMs". 1 frontend subnet for my "frontend" frontend and backend subnets would be separated by a FW/LB device. my laptop should have direct access to both…
g0pher
  • 59
  • 8
-1
votes
0 answers

Cannot use virt-viewer after convert Ubuntu Desktop to Ubuntu Server

After successfully setup KVM for my Ubuntu Desktop 20.04 LTS, I decided to convert my Ubuntu Desktop to server for trying to achieved this setup: When my computer boot on, it will automatically start the Windows 10 VM that already be installed and…
Rotomegax
  • 25
  • 5
-1
votes
1 answer

How to create **removable** USB stick in virtual qemu machine?

I am writing a program that needs to check if there are removable drives. It uses /sys/class/block to identify these devices by checking if the special file removable is present and contains a number that is not zero. For example, on my system,…
hochl
  • 12,524
  • 10
  • 53
  • 87
-1
votes
1 answer

How to backup kvm volumes using incremental disk backup using "push" and "pull" mode in libvirt

I am working on a task to be able to backup VM image volumes in another server and location, the problem is, I don't want to copy the whole image file each time I want to start a backup job, I want to backup the whole image only once and then backup…
-1
votes
1 answer

How to disable L3 cache on guest machine in QEMU

On arm64 host, different size of L3 cache causes the failure of migration for me. So how to disable L3 cache on guest machine?
Jason Lee
  • 24
  • 6
-1
votes
1 answer

Boot QEMU KVM with libvirt/sVirt but without using virt-install tool in command line

Can anyone help me on how to boot QEMU KVM with libvirt/sVirt but without using virt-install tool in command line. or using virsh tool
-1
votes
2 answers

VirtManager libvirt.libvirtError: internal error: process exited while connecting to monitor

I am using Archlinux with virt-manager and kvm. When I conifgured like this and I got these errors below. Can somebody help me solve it? Thank you a lot! Configration of Display Spice Configration of Video Virtio Error starting domain: internal…
fansure grin
  • 1
  • 1
  • 2
-1
votes
1 answer

KVM Support for Android Emulator with Amazon AMI

Hi I want to run Android Emulator using Bitbucket pipeline runner and it needs KVM support machine. Please suggest ami that has KVM support (virtualisation enabled).I tried C5 and Oracle Enterprise Linux. Android Emulator still not supported VERBOSE…
Developer404
  • 5,716
  • 16
  • 64
  • 102
-1
votes
1 answer

Large Mouse Cursor Icons in virt-manager QEMU/KVM Winows 10 Guest at 4K

Windows 10 with a screen resolution of 3840x2160 scales to 200% perfectly for an installation on bare metal, both fonts and mouse cursor icons resize proportionally. When scaling to 200% at the same resolution on a virt-manager QEMU/KVM Windows 10…
bcs
  • 9
  • 2