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

VLAN configuration using openvswitch

I am working on a project where we create multiple vms on a host machine. There are multiple hosts of this kind. These hosts are connected to a single LAN and the VMs are created using KVM. Qemu and libvirt are used alongwith. There is a requirement…
Nisha Goyal
  • 37
  • 3
  • 10
0
votes
0 answers

How to update master image from clone image?

In my project I have install openssh-server in clone image(using qemu) i want to update this change to my master image
Reegan Miranda
  • 2,879
  • 6
  • 43
  • 55
0
votes
1 answer

Would turning off feature in kernel cause kernel module(using feature) to misbehave?

I am using KVM as a kernel module. I want to turn off the huge page support. I did not find any option in KVM source to turn if off. However, I see a kernel wide option to turn it off. If I disable a huge page feature using compile time config…
bladeWalker
  • 978
  • 1
  • 13
  • 30
0
votes
1 answer

VT-X on windows 7 cannot be recognized by Guest OS(Ubuntu 12.04) with virtualbox

I have met with the following problem. Hardware: DELL Laptop E6430(CPU: I7 3520M) Host OS : Windows7 professional(64 bit) Guest OS: Ubuntu 12.04(32 bit) VMM: virtualbox 4.2.16 I need to do some development on KVM with a windows 7 environment.…
0
votes
1 answer

Hardware assisted virtualization on centos and 32_bit system

I'm preparing my-self for RHCSA. I have a 32 bit system installed centos on it. I cant use KVM on it because KVM on it because the processor architecture. I want you to answer my problem according to following parameters. How can I use KVM/ if I…
Ammar Ameerdeen
  • 950
  • 3
  • 11
  • 29
0
votes
2 answers

Direct pci device assignment in a nested QEMU guest

I am running QEMU and in additional to the OS drive i am connecting it with another SATA disk through a AHCI controller like this: -drive id=test,file=test_drive.img,if=none -device ahci,id=ahci_test -device ide-drive,drive=test,bus=ahci_test.0 I…
yonigo
  • 987
  • 1
  • 15
  • 30
0
votes
2 answers

How to disable hardware virtualization check while installing KVM on ubuntu?

My system doesn't support hardware virtualization technology. I am trying to install KVM and then Rackspace cloud package. So, how can I disable hardware virtualisation check while installation.
mandy
  • 1
  • 1
0
votes
2 answers

Porting UNIX application to MAC OS X

I am student working on an academic project - 'Porting KVM to MAC OS X'. I gathered a lot of literature regarding KVM, MAC OS X etc., But, I am still unclear as how to proceed. I checked Apple's Developer website which lists a hundred things to do…
Krishna
  • 425
  • 3
  • 6
  • 14
0
votes
1 answer

Debian KVM Bridge Networking on remote host

I have a dedicated server that I'd like to run some VMs on using KVM. I'm trying to set up bridge networking so the VMs can be accessed from the outside with dedicated IPs. I tried doing this using this article, but once I bring up br0 I lose…
user589831
0
votes
2 answers

vm and host on same subnet: VBox automatic: kvm how?

Using VirtualBox on 192.168.1.1, I get vms like 192.168.1.2 ... automatically. kvm/virt-manager generates vms on the 192.168.122.0 subnet, with routing between 122.0 and 1.0. AFAICT, my kvms can have addresses on the ..1.1 subnet if I configure a…
ktenney
  • 3,945
  • 3
  • 19
  • 12
0
votes
2 answers

GoogleTv android EMulator on Ubuntu

I recently tried to get GoogleTv android emulator running on my Ubuntu 12 Desktop edition (KVM enabled). Upon start up, the screen goes blank. I checked the log file with debug-all option and this is what I got : Then on the last 2 lines repeats…
user1386173
  • 95
  • 2
  • 11
0
votes
1 answer

Using Intel compiler on KVM guests

I'm using KVM guests and will compile apache by intel compiler for high performance. Is it good idea to use intel compiler on virtual machines ?
hiroo
  • 657
  • 2
  • 7
  • 13
0
votes
1 answer

How to create KVM with veewee?

I am looking for a short tutorial on how to create a KVM with veewee? I would like to use veewee to construct OS that would fit my application needs
Skarab
  • 6,981
  • 13
  • 48
  • 86
0
votes
1 answer

Difference between native_apic_mem_write and native_apic_msr_write?

I am new to linux kernel and do not know much about it. For some reason I have to trace the latency issues on linux host kernel and the kvm guest kernel as well. Now I just have to compare native_apic_msr_write(this is used in linux host kernel)…
0
votes
2 answers

a guestOS process occupies VCPU at any given time?

Recently i`ve been studying something about hardware-supported virtualization. I read about 3 states of host cpu ,thus the most common userspace,kernelspace and A New Guest State.And as i can see from the ps command,there is a process for the vm i…
pNok
  • 113
  • 2
  • 7