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).
1,125
questions
-1
votes
0
answers
9
views
MacVTap in KVM not getting IP address from Local Network DHCP [closed]
Trying to create a kvm with macvtap interface, but there is no ip assigned to it
Referring to these docs to create the kvm.
Followed the creation of network properly, i.e added interface in the ...
0
votes
2
answers
35
views
What happens i run 2 goroutines to modify a VM and destory the same VM using libvirt-go package on the same instance?
As we know, libvirt is thread-safe.
But running two goroutines concurrently acting on the same resource, such as modifying and deleting a VM leaves it in an ambiguous state. How does libvirt decide ...
0
votes
0
answers
27
views
Uploading a switch appliance on GNS3
I recently installed GNS3 on Ubuntu, using KVM-qemu as the virtual machine. I installed the GNS3 on a remote server hoping to work on topologies with my friends. The installation was successful but I ...
1
vote
1
answer
89
views
KVM Virtio-balloon: how to activate free page reporting feature on the device side?
I'm trying to get free page reporting running on my KVM guest (Ubuntu 22.04 server with custom kernel from upstream Linux 6.5). My host is Ubuntu 20.04 with 6.5 Linux. Free page reporting is listed as ...
0
votes
1
answer
32
views
How can I ensure fitting user right for .qcow2 file in my terraform implementation
I have debian based kvm/qemu installation and want to deploy a virtual machine via terraform.
provider "libvirt" {
uri = "qemu:///system" # Verbindung zur lokalen QEMU-Instanz
}
...
0
votes
0
answers
130
views
Why is pip install libvirt-python failing and saying I need libvirt installed, even though libvirt is installed?
I am running RHEL 9.2 with Python v3.9.16, and I am trying to install the libvirt-python Python package. I have tried installing using pip and pipenv, and I get the same error every time.
I have the ...
0
votes
0
answers
129
views
how fix problem [org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient] (SSL Stomp Reactor) [] Connecting to ovirt
please tell me how I can solve this problem?
after an unexpected server reboot with Ovirt, the host and the storage domains were disconnected, the cluster does not rise.
I see such errors in the logs /...
0
votes
0
answers
295
views
How can I start multiple virtual machines using QEMU and how to specify each VM to run on a specific core?
I am trying to run multiple virtual machines on the same host using QEMU with KVM acceleration. I am also trying to get each virtual machine to run on a specific CPU cure. For example, I want to ...
0
votes
0
answers
51
views
Cloudstack System VM Networking not working
I've set up a CloudStack testing environment using two VMs: VM 1 has Ubuntu, NFS and KVM installed. VM 2 has Cloudstack installed.
The issue is, that the generated system VMs don't seem to be able to ...
0
votes
0
answers
65
views
SDDM on Wayland crashes in test mode
I am trying SDDM on Wayland in a VM but I am not able to get it to work.
My system maybe is a little unusual:
The host is a Mac Mini (old one - Late 2012) on which I run Ubuntu 23.04
On this I run ...
0
votes
0
answers
94
views
Clipboard sharing is not working, but the screen resolution resizing is, after I setup "spice-guest-tools" on a win 11 VM
I'm running Kubuntu on the host.
I've installed a VM using QEMU/KVM and virt-manager. The VM OS is Windows 11 Pro. I've setup "spice-guest-tools" on the VM, and setup "spice-vdagent&...
0
votes
1
answer
46
views
Cloud-init 18.5 module execution fails before creating the SSH keys
I am provisioning a virtual machine which executes the cloud init script on its first boot. I have a floating IP assigned to the VM and I can ping it, but can't ssh into it. I suspect that the cloud-...
0
votes
0
answers
71
views
Creating Windows VM in KVM/QEMU using GNOME Boxes from a Backed-Up OS
Hello Stack Overflow community,
I'm looking for guidance on how to create a Windows virtual machine using KVM, QEMU, and GNOME Boxes on a Linux system. I have recently migrated my Windows and ...
0
votes
0
answers
38
views
Can I open OP-TEE using QEMU-KVM instead of TCG
Can I open OP-TEE using QEMU-KVM without trustzone CPU emulation instead of TCG?
I add enable-kvm option and turn off trustzone CPU emulation in QEMU command (Since KVM doesn't support trustzone)
As ...
-2
votes
1
answer
53
views
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.
...
0
votes
0
answers
112
views
KVM internal error suberror 1 when filling the CR3 register
I'm working on a x64 uefi bootloader to load a hobby OS. I'm running on AMD (Ryzen 7 5700G) with kvm, and when I try to fill the CR3 register with my PML4, I get a KVM internal error with 5 extra data
...
0
votes
0
answers
69
views
Windows VM not booting with virt-manager on existing ssd but working with qemu command
I am trying to boot up my Windows install, which is installed on a seprate sata ssd and is bootable. I tried pretty much everything to get it to boot with virt-manager but its always just showing the ...
-3
votes
1
answer
209
views
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 ...
0
votes
0
answers
55
views
many IO threads, very slow writing performance and flooded swap when creating backup
We ware running libvirt on our tiny In-House servers. (4 cores / 8GB Ram, 8 cores / 32 GB Ram) and we are facing the same strange behavior on both when we try to run virsh backup-begin in »push mode«.
...
-1
votes
1
answer
36
views
From Ubuntu kvm I am unable to connect to synology Disk Station iSCSI target
My goal is to create a storage pool for KVM with an iSCSI target hosted in Synology Disk Station.
I've created an iSCSI target in Synology Disk Station, with no Chap.
I am able to connect to and use ...
0
votes
0
answers
8
views
Virtual interface wont change state under KVM when physical interface goes down
How to change the passthrough behavior and reflect the state of the physical interface when it goes down within the virtual machine?
Currently, when the physical interface is down, the passthrough ...
0
votes
1
answer
139
views
Create VM Using Libvirt & KVM
I am trying to create a virtual machine using libvirt and KVM on Ubuntu (installed in VM workstation ). My goal is to programmatically create, start, stop, and delete virtual machines using Python and ...
0
votes
0
answers
69
views
isc-dhcp-server and dnsmasq is not working in Virt Manager(debian) KVM
I am trying to make a DHCP server in a VM what I pass a PCI ethenet adaptor to.
with dnsmasq I get the "interface ens7 does not exist"
dnsmasq.conf
interface=ens7
port=53
I tryed isc-dhcp-...
-1
votes
1
answer
89
views
Why would the RAM amount reported by a KVM/QEMU guest OS not match the libvirt configuration?
I'm using manually built QEMU and libvirt packages to do malware analysis, and I'm running into a problem where Windows 10 64 bit only sees 2 GB of RAM on a VM configured with a Q35 chipset and 4 GB ...
0
votes
0
answers
54
views
What code should be executed after vm exit?
This is the testing code for vmlaunch in the Linux kernel. In my understanding, lea 1f(%%rip), %%rax; stores the label 1's address to the %rax. Then vmwrite %%rax, %[host_rip]; will write the value of ...
0
votes
0
answers
90
views
intercepting rdtsc on kvm vmx
I am trying to intercept the rdtsc instruction with kvm in the linux kernel, previously, the way you did this by adding a parameter to setup_vmcs_config in vmx.c, but this was changed to vmx.h in an ...
1
vote
0
answers
38
views
Is Virtual 8086 Mode or Real Mode in ring -1 available when using virtualization on a 64 Bit host OS that runs in long mode?
I know that virtual 8086 mode and real mode mode is not available in long mode on a 64 Bit host OS on a x86-64 CPU. But is this also valid for a virtualized guest OS that run in ring -1 using ...
0
votes
0
answers
92
views
Cant start Host machine in one go, have to restart two to three times after installing the KVM with gpu passthrough
I've been encountering an issue while setting up GPU passthrough on my host machine, and here what I have setup:
BIOS Settings: I have ensured that the IOMMU feature is enabled in my system's BIOS. ...
0
votes
0
answers
38
views
How can I make that my virtual machine reach internet via bridge on dedicated eth card
I've made a kvm virtual machine on a server which have to eth cards.
eno1 is the card that bring traffic to the server with IP 192.168.14.10
eno2 is the card I want to use has bridge for my vm, so I ...
0
votes
0
answers
267
views
WSL2 host cannot connect to QEMU using network bridge
I'm using WSL2 and I want to connect it to QEMU. And here's my operation:
The ip address of WSL is: 172.21.71.177/20
Then I create a network bridge which address is 172.21.71.178/20
$ sudo brctl ...
0
votes
0
answers
224
views
PCI Passthrough QEMU: Error starting domain: internal error: process exited while connecting to monitor
I was following this guide here https://lantian.pub/en/article/modify-computer/laptop-intel-nvidia-optimus-passthrough.lantian/ to passthrough my GPU on an optimus laptop but I am getting the error ...
0
votes
1
answer
141
views
N1 series instance on GCP no longer supporting virtualisation/KVM for Eve-NG-Pro
I have had an N1 series instance running in GCP since last July which was configured with a boot disk configured for nested virtualisation. It hasn't been used for sometime but having launched it this ...
2
votes
1
answer
281
views
On Ubuntu 22.04, cannot run Android emulator and Virtualbox at same time (Guru Meditation)
I'm running Ubuntu 22.04 OS.
I need to develop an Android application with an Ubuntu server inside a VirtualBox virtual machine.The problem is that I completely cannot run both the server and the ...
0
votes
0
answers
54
views
initrd not found error with virt-manager and Yocto generated image
I'm trying to boot a Linux image built using Yocto under KVM using the virt-manager GUI. I'm using this guide:
https://wiki.yoctoproject.org/wiki/Virtualization_with_KVM
I'm generating a .iso of a ...
0
votes
0
answers
35
views
How to solve bad gateway errors when accessing a KVM VM from outside using Nginx?
Impossible to access a VM from the outside on KVM. Nginx give a bad gateaway.
Hi everyone,
I have a small home server to host files, VM and some bunch of stuff.
Recently I got into home automation ...
0
votes
0
answers
13
views
reboot VM trigger a reboot of the mother server
Reboot VM trigger an immediate reboot of the master system.
the same symptom whether I do it with the reboot command using SSH or Button in VMM or using the virsh command in the main virtualization ...
0
votes
0
answers
80
views
trace-cmd & ftrace: print only trace_printk output
I am recording a KVM session by trace-cmd using:
trace-cmd record -p nop
trace-cmd report trace.dat
The output of the report is something like this:
trace-cmd report
Is it possible to remove all ...
-1
votes
1
answer
834
views
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 ...
0
votes
1
answer
93
views
Running Linux OS inside Windows with KVM support
I am trying to run a Linux OS inside a Windows machine to develop a Linux application. But the application requires KVM support. However virtual machines such as Virtual Box do not benefit from ...
0
votes
0
answers
18
views
telnetlib.telnet in connection to KVM console
I tried to connect to console , but I'm stuck without response from connection,
can somebody help me?
I'm executing this code on ubuntu,
Thanks
import logging
import telnetlib
import time
from sys ...
0
votes
1
answer
249
views
Can you use /dev/kvm without adding it as a device?
If I add --device=/dev/kvm to the docker run command, I can access KVM. But is it also possible to do it without that parameter?
The reason I ask is because I recently found out I can access /dev/net/...
1
vote
0
answers
11
views
Questions about pic simulation pic_poll_read in kvm
I am learning the relevant code of kvm interrupt simulation, I
found that when pic_get_irq returns -1, pic_poll_read returns 0x07;
when the return value of pic_get_irq is not -1, pic_poll_read ...
0
votes
0
answers
29
views
KVM enters and exits same instruction but with large latency
I am writing a small runtime that runs over KVM. The runtime writes to an IO port to wait for an input which creates vmexit and upon vm resume, the next instruction assumes that the input is recieved.
...
0
votes
0
answers
63
views
Why is /dev/kvm access restricted by default?
When searching the net for the problem of unprivileged kvm failing to access /dev/kvm, you can see lots of posts recommending one of these:
adduser $youruser kvm (adding your user to the kvm group)
...
2
votes
0
answers
105
views
Nested KVM linux kernel bug in vmx.c
I am seeing the following kernel bug when EPT is enabled for a nested VM implementation.
Hoping you can guide me as to the root cause and remedy.
The background is I have a nested VM where the outer ...
0
votes
1
answer
553
views
Pillow ImageGrab.grab() not working on a virtual machine
I'm trying to take a screenshot on a virtual machine I have. The virtual machine is hosted on a fedora 37 server using kvm and the virtual machine I'm running it on is fedora 37 workstation. Whenever ...
0
votes
1
answer
54
views
Setting tokenised IPv6 identifiers with libvirt network config
I'd like to set user provided lower 64 bits tacked onto the existing /64 prefix with libvirt but I cannot find a way to do this. Is it even possible ? If not, it would be great to add this ...
0
votes
1
answer
231
views
Rocky Linux 8 with KVM and docker - system halt after some time [closed]
I installed Rocky linux 8 with KVM and docker support. I configured bridge networking, two KVM virtual machines and couple of docker containers. Everything is working perfectly but after couple of ...
0
votes
0
answers
125
views
Guestfish mount issue
I have mounted a filesystem of my .qcow2 file and added a directory to it but I don't know see any change How do i make these changes permanent in my .qcow2 using guestfish?
docker pull --quiet ...