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

unable to share cache between VMS created on openstack in order to create side channel

To show the cross channel attack we need to share the cache among the virtual machines created on the same physical host. Using openstack i am able to create VMs on the same physical host using KVM hypervisor but unable to share the cache. If I…
Sonali
  • 1
-1
votes
1 answer

Serial Number and Version for Windows OS on KVM

Does anyone know what will be output of : wmic get serialnumber, version on windows guestOS running on KVM? It would take too much time to install KVM just to get this info.
Jonhtra
  • 897
  • 2
  • 12
  • 18
-1
votes
1 answer

Error while installing kvm package in ubuntu12.04lts

# apt-get install kvm kvm-source Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package kvm-source While installing kvm in my ubuntu12.04 lts machine. I got this error.What i want…
Siva Gnanam
  • 938
  • 2
  • 10
  • 26
-1
votes
1 answer

Do Adeos and KVM only support Linux as guest?

I'd like to run multiple operating systems (i.e., Linux + a RTOS) through an hypervisor on an ARM device. Are the Adeos and KVM hypervisors designed to only support Linux as guest OS?
Claudio
  • 10,614
  • 4
  • 31
  • 71
-1
votes
1 answer

KVM monitoring without agents

I have a host with KVM guests and I want to monitor these guest (like Nagios). However I doesn't want to install an agent on the virtual machines. In fact I want to monitor the VM since the host Is it possible to get the same information ? Thanks in…
-1
votes
1 answer

How to "force" single thread legacy applications into using multiple processors

I have a small multi-core server that performs a variety of tasks, most of which are multi-threaded and have been speed-tuned satisfactorily. However, some of the tasks rely on existing single-threaded applications that occasionally block…
WMX
  • 65
  • 9
-1
votes
1 answer

shutting down kvm for creating a backup image

I am trying to shutdown a kvm on a centos using virsh shutdown vm1 command. I checked to see if the ACPI feature is present in the specification xml using virsh dumpxml vm1 | grep -F acpi and it is. What am I missing here? I don't want to force…
UNagaswamy
  • 2,068
  • 3
  • 30
  • 35
-1
votes
5 answers

What software switcher (KVM) do you use for multi platform development?

I am mostly interested in developing for windows (primary) and a mac. I have a normal PC and a mac mini, and I want to be able to use a single keyboard, mouse and a monitor with both. Which kvm software do you recommend? I was looking for hardware…
Joan Venge
  • 315,713
  • 212
  • 479
  • 689
-2
votes
1 answer

IP KVMs / remote access to linux x11 session with no window-manager

can somebody recommend me good affordable IP KVM? Like Adder. Or some articles evaluating such KVMs? My project: Provide remote support to Linux (Fedora) based software that runs on X, but without any window-manager. I know that there is Gnome…
Radim Cernej
  • 875
  • 1
  • 10
  • 21
-2
votes
0 answers

Creating bridge on Ubuntu Server 22.04 brokes network

Sorry for my bad English. I have dedicated server on Ubuntu Server 22.04 and 2 ip's in the same network (for example, 192.168.1.15 and 192.168.1.115). I want to create kvm virtual machine with debian and assign second ip to it. I created the bridge…
DrSky
  • 1
  • 1
-2
votes
1 answer

Install KVM on Ubuntu Server or Ubuntu Core

I bought a Asus W680 motherboard with ECC RAM to use it as a NAS and also run some Ubuntu Servers on it. All installs (like NAS, additional servers, pfsense) should run in own Virtual Machines. Therefore the idea would be to install KVM on a bare…
user3358102
  • 217
  • 2
  • 15
-2
votes
1 answer

Different CPU capabilities

From where the cpu capabilites are exposed to libvirt VM's? We are able the see different cpu capabilities from different sources. We created a VM with cpu mode 'host-passthrough' which didn't get all flags that shows in physical node lscpu flags.…
-2
votes
1 answer

Does VM Guest need a KVM labeled kernel?

Why do cloud images have KVM labeled kernel as Guest? It seems KVM is most relevant for the Host. Maybe they are optimized for the Host, but I'm having to use the generic Linux kernel to get Desktops to work. Am I missing any performance by doing…
alchemy
  • 954
  • 10
  • 17
-2
votes
1 answer

libvirtd service fails to start after upgrade

After upgrading Centos,RHEL,Scientific Linux 7.3 to 7.5, KVMs fail to start due to the upgrade: 1.yum install -y,....updates and upgrades your Linux System With no questions asked "-y accepts everything and installs the packages" Then when you…
RobratZzI
  • 15
  • 4
-2
votes
1 answer

How do I ssh into a KVM with minimal configuration/infrastructure?

As per another QA, it's possible to setup a Ubuntu KVM with minimal infrastructure, directly with qemu / kvm alone (without virsh or any some such). What's missing is the ability to ssh into it. (Using the default serial console is slow and some…
cnst
  • 25,870
  • 6
  • 90
  • 122
1 2 3
75
76