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

How to add Static route after virtnetwork service started

I need to add this route after server booted and virtnetwork service started staticly ip route add x.x.x.x/27 via 192.168.1.1 dev viifbr0
-2
votes
1 answer

Always on VM under KVM?

I use a clustered KVM installation. When I shutdown a Windows Server 2012R2 VM under virt-manager or virtsh, the VMs shutdown correctly but after a seconds startup automatically! Why? I can't change the memory or vCPU config because I can't stop the…
Cook
  • 1
  • 1
  • 2
-2
votes
1 answer

How to access servers on a KVM guest like in VMWare?

I'm trying to establish a connection to my Guest without making it available for anyone else than my Host. When using VMWare Guests are automatically available under their NAT IPs (at least when using Windows as a host), which makes accessing…
-2
votes
1 answer

How to run libvirt ubuntu headless mode?

I have created a simple vm ubuntu1604server using virt-manager on ubuntu1604desktop native. I can sucessfully run the vm with a window using the virt-manager gui, but I wish to run this vm in headless mode instead. Is this possible and how is it…
abstractx1
  • 435
  • 6
  • 17
-2
votes
1 answer

Networking-KVM-2hosts-2vms-lan_router

I have two hosts running opensuse 42.1 connected to a dlink router via eth0, accessible on 192.168.0.1 and using NetworkManager: - vboard/eth0 is assigned via router DHCP ip 192.168.0.199 - rihana/eth0 192.168.0.198 Using KVM on both hosts, I have…
-2
votes
1 answer

How could I give KVM more hard disk space

I want to use Kvm as hypervisor, but it is difficult. Is says that I don't have space on the node, that is not true. How could I solve this big problem? http://prntscr.com/2rlcq1
Koen Hollander
  • 1,687
  • 6
  • 27
  • 42
-2
votes
2 answers

KVM hypervisor remote connections

I am a newbie in the area of Linux KVM virtualization. Can anybody help how to connect to my KVM hypervisor from a remote Linux machine without using LibVirt or any other third party library. I have searched for this but all the results that i got…
-2
votes
1 answer

Following, and saving, the flow of code

I was wondering if there is any way of compiling a program (my own program, or an open source program), with which I can follow the flow of that program when I execute it. Ideally, I would like to output the specific methods which the program goes…
user1479836
  • 93
  • 1
  • 2
  • 5
-3
votes
0 answers

Reverse USB Hub or KVM Switch? To update multiple devices at once with 1 USB

so I have multiple devices (over 100) that can be turned on but can only be updated via a USB with the software update saved on there. Basically the devices are touch screen and within the settings you can update it using a USB plugged into the USB…
Grami064
  • 1
  • 1
-3
votes
1 answer

KVM bridged networking in a wirelss host

I'm learning about KVM networking and I came up with this question: When I set a KVM domain to use a bridged network (no NAT), I see that KVM (or libvirt) creates a tap0 having virbr0 as master in my case. Now, I don't see any other interface…
-3
votes
1 answer

How to install KVM(kernal virtual machine) without any OS in a PC?

Can we install KVM in a machine directly, with out any OS? if possible can you please suggest how to do this?
Dileep Nunna
  • 117
  • 3
  • 11
-5
votes
2 answers

Configure a Logitech corded mouse's special buttons to work when connected to KVM switch

Here is the equipment I'm using: - Logitech M500 corded mouse - ioGear 2-port (DVI + USB) KVM switch - Macbook Pro w/ OSX Mavericks Problem: When I try to configure the M500's special buttons (mouse wheel button, back/forward buttons) to work with…
Melodist
  • 183
  • 1
  • 1
  • 12
1 2 3
75
76