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,099
questions
0
votes
0
answers
22
views
[QEMU][KVM] How to deal with KVM: entry failed, hardware error 0x80000021 during starting nested vm?
log shows:
KVM: entry failed, hardware error 0x80000021
If you're running a guest on an Intel machine without unrestricted mode
support, the failure can be most likely due to the quest entering an ...
0
votes
0
answers
8
views
OPNSense in a Proxmox VM, nested in Azure VM, trying to spoof VM NIC to transparently relay to host NIC
I am trying to set up OPNSense VM inside a Proxmox, which is running in a Azure VM with nesting enabled. I have my reasons to do it, so please spare me the "why not go native" questions.
...
0
votes
0
answers
17
views
Whats next? (Blank window after installing virtio)
The auto render is /dev/dri/renderD130 whatever that means but I still don't understand why I'm getting the same result: A blank screen when running the vmm and also Virtio can run without opengl.
I ...
-2
votes
0
answers
12
views
KVM Networking - assign IP to each VM by outside DHCP [closed]
I am new to KVM and am having a problem with setting up the networking. I want each VM to get its IPs assigned by the network's DHCP, not the internal DHCP that the KVM keeps trying to set up. In ...
0
votes
0
answers
18
views
kvm module problem with android studip linux
In Ubuntu 20.04.4 LTS, I have already installed Android Studio and Android Sdk but after running the command
emulator -avd Pixel_4_XL_API_29
and it got those error:
INFO | Android emulator version ...
0
votes
0
answers
10
views
How to check which memory of a kvm guest is pinned in host?
I am reading a vfio related slide from here.
The following is the content of slide 23:
I want to verify the statements above in my x86_64 host running kvm guests. So I am wondering, is there related ...
-1
votes
0
answers
36
views
How can I run android emulator on arm virtual machine without kvm?
I have a aarch64 virtual machine and it does not support KVM
when I run emulator/emulator @test -no-window -no-accel
it said
crashhandler_die: fatal: Fatal error: The 'host' CPU type can only be used ...
0
votes
0
answers
16
views
ovs set port tag command does not work when use ovn at the same time
I use ovn (https://docs.ovn.org/en/latest/) as sdn tool to manage my virtual machines' network.
There is a kvm interface named 763ec19668dc6b3 bind to ovn logical switch. Below is the detail:
ovn-...
0
votes
0
answers
37
views
Terraform-apply throws an error, but VM gets created successfully
I'm trying to create a Ubuntu VM using terraform and libvirt. The VM comes up successfully and I can also ssh into the VM by it's ens3 IP. But I see this error:
Error: couldn't retrieve IP address of ...
0
votes
1
answer
35
views
background processes with cloud-init
I'm trying to create a VM which listen to a TCP port via nc. I want to start listening at every boot, thus I wrote the following cloud-config file:
#cloud-config
# Allows to run runcmd at every boot
...
0
votes
0
answers
9
views
oVirt VM running normaly but the vdisk does not exist
We have a oVirt 4.3 running in my company. We receaved a error mensagem, from a backup took, informed that snapshot could not be generated. When we saw on the host where this VM is running we can see ...
-1
votes
0
answers
21
views
Installing OS on VM image using KVM/QEMU with CLI
I am trying to install Ubuntu on a clean VM qcow2 image that was made by QEMU. (My host machine is ubuntu.)
I attached my machine through ssh without x server.
And I am trying to install Ubuntu on a ...
-2
votes
0
answers
37
views
kubernetes fresh install crashloopbackoff
Very confused with an odd problem I have, that usually I do not have when I install kubernetes on digital ocean or AWS, I have KVM/Qemu on Arch GNU/Linux desktop, I create 1 control plane and 3 nodes. ...
-1
votes
0
answers
66
views
[kvm][android][windows]does anyone run windows ok on Android based on qemu + kvm
I run linux ok based on qemu + kvm.I test many Linux distribution(ubuntu、rocky、anolios、opensuse),All of them run ok。
But when I run windows(I tried many different versions of window arm64 version),it ...
0
votes
1
answer
65
views
virt-install is looking for iso image, when I want to use a qcow2 image
I'm absolutely new to stackoverflow, so I'm extremely sorry if my question has formatting issues.
I created a VM using virt-install:
virt-install \
--name guest \
--memory 2048 \
--vcpus 2 \
--disk ...
0
votes
0
answers
143
views
Locked Almalinux with hrtimer took xxxxxxxx ns
I am running Almalinux 8.6 minimal installation x64 (RHEL 8.6 clone) with only SoftEther 4.8 and internall DHCP as virtual machine under KVM. Sometimes (at least once per month) this virtual machine ...
0
votes
0
answers
38
views
KVM vm machine is not booting up after image size increased
KVM vm is not booting up after I have made the below changes.
Environment:-
qemu-img version 2.1.3
ubuntu VM
1. Stop the VM
2. qemu-img resize vm1.img +50G
3. start the VM
vm1 is not booting up &...
0
votes
0
answers
49
views
KVM IP not shown by "virsh domifaddr"
After my old question (kvm vm receives only ipv6 from dhcp but no ipv4) has been closed, I restarted the whole PC and now it seem's to work...
However, the now assigned IPv4 is nowhere shown except in ...
-1
votes
1
answer
75
views
Boot QEMU KVM with libvirt/sVirt but without using virt-install tool in command line
Can anyone help me on how to boot QEMU KVM with libvirt/sVirt but without using virt-install tool in command line.
or using virsh tool
0
votes
0
answers
16
views
what is a no nonsense way to create a ubuntu virtual machine using virt-manager on command line
I tried various methods explained on internet, but none seems to be working. using local iso image give one issue and location gives another issue.
Can we setup IP using this command?
currently using ...
0
votes
1
answer
11
views
virt-viewer open multiple windows with bash script
I've got a few virtual machines running that can be observed with virsh list --all
Id Name State
-----------------------------
1 vm-bigfg-1 running
2 vm-nexus-1 running
- vm-...
-1
votes
1
answer
311
views
VirtManager libvirt.libvirtError: internal error: process exited while connecting to monitor
I am using Archlinux with virt-manager and kvm. When I conifgured like this and I got these errors below. Can somebody help me solve it? Thank you a lot!
Configration of Display Spice
Configration of ...
0
votes
0
answers
50
views
How to measure the number of CPU cycles required for VMFUNC instruction running on a physical machine?
I want to use a simple program to measure the number of cycles required by VMFUNC instruction in x86 architecture on a Linux Ubuntu 18.04 machine. Is there any fast and accurate method? Thanks!
0
votes
0
answers
23
views
Simulate input on Windows lock/login screen
I'm writing a KVM and cannot seem to get SendInput or mouse_event/keybd_event to work when the receiving machine is on the Windows lock screen.
Microsoft's Mouse Without Borders kvm app works fine on ...
0
votes
0
answers
10
views
How to add DMA controller to a guest via virt-manager on ARM64 host?
I created a guest on an ARM64 host (running Centos 8.4). The guest is Debian 11 (ARM64). It seems that there is no DMA controller in the guest, by ls /sys/class/dma (which is empty).
Is there a way to ...
0
votes
0
answers
23
views
When a guest program requires a memory not allocated, which should be triggered first, guest OS page fault or host EPT violation?
I'm wondering about this question. If I start a guest OS in kvm with EPT paging enabled, when the guest OS program first requires the memory, which should be triggerd first, guest OS page fault or EPT ...
0
votes
1
answer
84
views
How to check default kvm mmu on a linux kernel?
I have found that kvm changed tdp_mmu to enabled by default https://lore.kernel.org/lkml/20210726163106.1433600-1-pbonzini@redhat.com/
How can I check if my kernel has this parameter enabled?
Can I ...
0
votes
1
answer
177
views
error: Failed to attach device from error: internal error: No more available PCI slots
Assumptions
Guest VM has been installed.
Guest VM is running: virsh start <vm_domain_name>.
Verify it with virsh list --all
Target PCI devices have been detached from the host with virsh ...
0
votes
1
answer
285
views
Error creating libvirt KVM domain: invalid argument: could not get preferred machine for /usr/libexec/qemu-kvm type=kvm
I'm trying to create the following domain on a host running oVirt Node in nested virtualization (it won't be nested forever, just for now):
<domain type="kvm">
<name>clara<...
0
votes
0
answers
25
views
how does vfio handle shared gsi with other device?
I'm a little confused about how resamplefd handle shared GSI.
assume i have a virtual pci device with gsi 10, and a passthroughed dev, also have gsi 10, now, let's see the problem:
physical device ...
0
votes
0
answers
98
views
how to set effective_affinity? Is that possible disk IRQ can send to different CORE?
I'm using libvirt, I run a KVM accelerated VM with virtio-blk as disk drives, I noticed that the diskIO IRQ can only send to 1 vcpu in guest VM.
However I have checked /proc/irq/[number]/smp_affrnitiy,...
0
votes
0
answers
26
views
LUKS volume to raw
I created luks volume
qemu-img create -f luks --object secret,data=123456,id=sec0 -o key-secret=sec0 demo.luks 40G
How do i convert demo.luks to demo.raw? (or demo.qcow2)
0
votes
0
answers
29
views
KVM problems with virt-install
Virt-install hangs. virt-install --name vm --memory 1024 --vcpus 1 --cdrom /rhel-server-7.4-x86_64-dvd.iso --os-variant rhel7 --disk none.
It doesn't metter if I create a new vm or import from qcow2.
...
0
votes
1
answer
132
views
How to create a multiqueue tap device in Linux?
I've tried with the following command to create a tap device tap0 for my virtual machine vm1:
$ tunctl -t tap0 -u root
$ brctl addif br0 tap0
$ ifconfig tap0 up
When check its channels I got the ...
0
votes
0
answers
21
views
Can the procedure of VM IRQ injection in KVM be parallel?
When I have many IRQs to inject into many individual VMs, can I make the procedure of injection be parallel?
I found this part is the bottleneck of my project, so I want to optimize it.
Any idea about ...
0
votes
1
answer
38
views
Permission denied for virtual disk
I try
[root@host1 81936aba-1f00-4fac-a69b-dfd69d290c3d]# qemu-img info 6c96bc5c-b6ac-442d-8581-2fb89f3d9a10
result:
qemu-img: Could not open '6c96bc5c-b6ac-442d-8581-2fb89f3d9a10': Could not open '...
0
votes
0
answers
261
views
Virt-manager filesystem passthrough not working
I'm new to the ubuntu/linux environment so I don't have a lot of knowledge before hand.
I'm currently trying to set up a filesystem passthrough between my host (Ubuntu 22.04 LTS) and my vm (Ubuntu 16....
0
votes
1
answer
59
views
Openstack cinder volume resize does not reflect without a vm reboot
When I extend a cinder volume which is "in-use" state, the volume gets extended but when I see inside the vm it does not show the extension it still shows the same size.
Only after a reboot ...
0
votes
0
answers
96
views
Modify the value of CNTFRQ_EL0 in ARM KVM for the guest to boot
I found that there is a patch for Linux to run on systems that have misprogrammed CNTFRQ register. From the patch:
It is an unfortunate situation that CNTFRQ{,_EL0} is often
misprogrammed from the ...
0
votes
0
answers
477
views
Docker image with /dev/kvm module
I want to use kvm in my docker image. kvm and qemu-system-x86_64 are installed under /usr/bin but when I run eg. /usr/bin/qemu-system-x86_64 -enable-kvm
I'm getting
Could not access KVM kernel module: ...
0
votes
0
answers
24
views
Which package provides virt-install CLI tool in Yocto?
Does anyone know which package provides virt-install CLI tool in Yocto or how to use virt-install tool in yocto environment?
I have added below packages in my bb file but I don't see virt-install tool ...
0
votes
1
answer
63
views
How to record the vm screen with libvirt in python?
I'm doing testautomation with python where I'm working with various hosts on a kvm server. To achieve this, I'm using libvirt and python3. Now I want to record the tests to see whats going on ...
0
votes
0
answers
73
views
qemu start multi vm from single snapshot and separately snapshot again
I want to implement program backtracking using qemu's snapshot feature. A snapshot may be created at any stage of the program's run, and then other VMs will resume from one snapshot, running for a ...
0
votes
0
answers
51
views
Whether the KVM virtual machine has KVM/QEMU related components
As far as I know, VMware virtual machines have components related to VMware virtualization such as VMware tools. I want to know if KVM virtual machine has KVM/QEMU related components
0
votes
0
answers
48
views
PCI passthrough to VM
I've created 3 VFs on the PF 40/10G ethernet interface (i40e). How can I do the passthrough of those VFs into a VM (for example i.e. Kubernetes worker node) ?
I have seen that this is possible ...
0
votes
0
answers
113
views
Nested VM SR-IOV
According to the following wiki page from qemu.org (Use Case 3), it seems possible to deploy a nested VM (L2 Guest) on top of a L1 Guest VM that has SR-IOV Virtual Function PCI Devices assigned, ...
0
votes
1
answer
117
views
QEMU PCIe TLP Emulation
Does QEMU emulate the PCIe Transaction Layer somehow?
When I have a virtual Switch like (https://blogs.oracle.com/linux/post/a-study-of-the-linux-kernel-pci-subsystem-with-qemu) am I able to intercept ...
0
votes
0
answers
195
views
How to resume Linux VM running after it is suspend from inside?
I am running Ubuntu 20.04 X86_64 VM within KVM+QEMU.
And I ran a command within the Ubuntu VM to suspend it from inside "sudo systemctl suspend".
After running it, the SSH and virsh console ...
0
votes
0
answers
155
views
Yocto: Socket issue while enabling libvirt in yocto
While enabling libvirt in yocto, I see that libvirt daemon in not running and is always in dead state.
systemctl status libvirtd
* libvirtd.service - Virtualization daemon
Loaded: loaded (/lib/...