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

virsh console to KVM

When logged in through virsh console on to KVM. hostname is not shown properly in bash prompt. We are using 63 character hostname. KVM Guest OS: Red Hat Enterprise Linux Server release 7.9 (Maipo) Host OS: Red Hat Enterprise Linux Server release…
Vijay S B
  • 1,251
  • 1
  • 13
  • 24
-1
votes
1 answer

Does KVM work on IBM POWER7 Big-Endian with Debian PPC64?

I have an IBM POWER7 Big-Endian with Debian-10-PPC64 host and Qemu-system-x86_64 (for running Linux x86 guests) installed. KVM module is present and loaded but I can't get it enabled. Whatever attempts made result in "qemu-system-x86_64: invalid…
Mark
  • 1
  • 1
-1
votes
1 answer

Change kvm qcow2 file with windows 10

I have a qcow2 file that contains windows 10. The operating system is RHEL8.2. The virtualization stack is kvm, qemu, virt-viewer. And the command line used to manipulate the virtual machine is 'virsh'. I need to update the windows drivers and…
-1
votes
1 answer

KVM: public bridge recieves IP on host, but VMs do not

I've created br0 on the HOST with a single eth interface, it receives an IP and I can access it over ssh from other hosts in the network: br0: flags=4163 mtu 1500 inet 192.168.1.50 netmask 255.255.255.0 …
Neil R Wylie
  • 101
  • 1
  • 4
-1
votes
1 answer

Why Failed to start up libvirtd service in ubuntu 16.04?

$ sudo systemctl status libvirtd ● libvirt-bin.service - Virtualization daemon Loaded: loaded (/lib/systemd/system/libvirt-bin.service; enabled; vendor preset: enabled) Active: inactive (dead) since Tue 2020-12-29 15:15:55 IST; 2min 49s ago …
Milan Shah
  • 111
  • 1
  • 10
-1
votes
1 answer

The box you're attempting to add doesn't support the provider libvirt and vagrant on Fedora 32

➜ sudo dnf install -y gcc libvirt libvirt-devel libxml2-devel make ruby-devel ➜ vagrant plugin install vagrant-libvirt ➜ export CONFIGURE_ARGS="with-libvirt-include=/usr/include/libvirt with-libvirt-lib=/usr/lib64" ➜ vagrant version …
DmitrySemenov
  • 9,204
  • 15
  • 76
  • 121
-1
votes
1 answer

Been running into the following error while creating a pod in minikube

kubectl create -f myfirstpod.yaml error: error validating "myfirstpod.yaml": error validating data: ValidationError(Pod.spec.containers[0].ports[0]): invalid type for io.k8s.api.core.v1.ContainerPort: got "string", expected "map"; if you choose to…
-1
votes
1 answer

The CPU cache performance of the macOS virtual machine is about 50% less than the host machine

I built a macOS virtual machine and an ubuntu virtual machine on the same host. The configuration of the two virtual machines is almost the same. But when I using sysbench to test the performance of my two VMs, I found that the memory Read/Write…
Mark Smith
  • 61
  • 4
-1
votes
2 answers

How to configure networking in CentOS7 KVM host / RHEL7 guests for VLAN connections

I am seeking a procedure list with examples on how to configure VLAN networking for a CentOS7 KVM host that has two RHEL7 guests. I would post ALL of the myriad of things I have tried, but that would only waste lots of time and space. I am having…
sharpy1064
  • 11
  • 3
-1
votes
1 answer

DPDK l2fwd with multiple RX/TX queue in KVM

I wanted to try-out multiple RX/TX queue in KVM (Guest: CentOS). I have compiled DPDK (version: 18.05.1) and inserted igb_uio driver (bound two interface to it). I am trying client to server connection (private). client (eth1: 10.10.10.2/24) <-->…
Brijesh Valera
  • 1,085
  • 2
  • 9
  • 30
-1
votes
1 answer

How to get guest's IP address from Host server in KVM virtualization?

I used kvm as a hypervisor and I have some virtual machines on it. I can to ssh to the host (hypervisor server) and I want to get all virtual machines' IP addresses. Is there any way to get the virtual machines' IP addresses by virt tool or other…
Omidreza Bagheri
  • 781
  • 1
  • 11
  • 22
-1
votes
1 answer

Does windows 2016 server support hot add cpu?

Today, I created a KVM vm with windows 2016 server operation system by libvirt, and its memory can be hotplug with "virsh attachdevice" command, but vcpu cannot be hot-add with "virsh setvcpus". However, it is worked in windows 2008R2 and windows…
-1
votes
2 answers

Get IP address of KVM Guest vm

Is there a way I can get the IP address of a KVM guest client using bash? I need to add this to a bash script to automate a process and part of it is needing to get the IP address of the VM and pass it into a variable. I've seen multiple things…
Rob Barnes
  • 23
  • 6
-1
votes
1 answer

When I use libvirt api to migration,occur a error like this

libvirt.libvirtError: unable to connect to server at 'ccrfox112:49152': Connection timed out
-1
votes
1 answer

libvirt/kvm/qemu: Is it possible to boot a Windows guest into safe mode?

I want to get Windows guest boot info, but I find the only way is to start windows in safe mode, and then there will be some file ntbtlog.txt under C:\Windows. Within kvm/libvirt, is it possible to run into Windows safe mode? How to?
coanor
  • 3,746
  • 4
  • 50
  • 67