Questions tagged [libvirt]

libvirt is an open source API, daemon and management tool for managing platform virtualization.

18 questions
17
votes
2 answers

virt-install says name is in use, but virsh list --all is empty. Where is virt-install finding this name?

virt-install says name is in use, but virsh list --all says there is nothing. jrwren@delays:{%22}~ $ virt-install -d -n android -r 512 --disk android.qcow2 -s 4 -c /d/cd\ images/android-x86-2.2-generic.iso --vnc --noautoconsole [Thu, 05 Jul 2012…
2
votes
1 answer

Can't bind/unbind GPU from nvidia to vfio-pci properly on demand without reboot (Ubuntu 22 QEMU KVM OVMF)

I am running into an odd issue. I have been struggling to get GPU passthrough to work properly to a Windows 11 VM and I've finally found something that works but it's not as ideal as I'm hoping for. Essentially if I add to /etc/modprobe.d/vfio.conf…
2
votes
0 answers

AppArmor issues with Libvirt

I have a fresh Ubuntu Server 22.04.3 and Debian 12.1.0 installed and updated. Along with Cockpit and Cockpit virtual machines on both tests machines. I am getting the following errors and warning when looking at the log section in Cockpit: Failed to…
Johannes
  • 21
  • 2
2
votes
1 answer

Why does virt-install man page restrict valid mac addresses?

I'd like to use virt-install to create a VM with a specific MAC address. The virt-install man page has this restriction about specifying a MAC address: For Xen virtual machines it is required that the first 3 pairs in the MAC address be the…
1
vote
1 answer

Ubuntu 24.04 hugepages with libvirt: I can not solve permission problems

I recently got hugepages working with Ubuntu 22.04 and an Ubuntu 24.04 guest. It was very easy, I just enabled it in /etc/sysctl.conf and that seemed to be it. I upgraded the host of 24.04 today. hugepages now cause permission errors with…
1
vote
0 answers

Latency issues on KVM VM and kernel 6+

I'm running virtualization on Ubuntu 22.04lts host and when upgrading the kernel to 6.* we start to have issues with latency on the VM machine(qemu+libvirt). The moment I roll back to kernel 5.15 on the host the latency issues are gone. Even when I…
1
vote
1 answer

"libvir" not found in "sudo apt install libvir"

I want to install Qemu on ubuntu 22.04 following this tutorial However, when I enter sudo apt install libvir I get E: Unable to locate package libvir Does anyone know whats wrong with my system? (I also used sudo apt install libvirt instead of…
user1775440
1
vote
1 answer

MacVTap in KVM not getting IP address from Local Network DHCP

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 domain XML, but no success in VM getting an IP address…
0
votes
1 answer

Libvirt-php Creating Domain

Could you tell me how to create a new domain? From PHP API Reference guide: http://libvirt.org/php/api-reference.html I have seen these functions: (i) libvirt_image_create($conn, $name, $size, $format) (ii) libvirt_domain_new($conn, $name,…
Alee
  • 39
0
votes
0 answers

image building using Qemu and libvirt stopped working on 24.04 while worked on 22.04

I have the following Makefile setup to build an image based on 24.04 on a 24.04 system. It is having trouble doing apt update/upgrade due to no networking. The same setup works while building a 22.04 image on a 22.04 system: export BASE_TAR :=…
Peng Wang
  • 1
  • 1
0
votes
1 answer

SGX Passthrough to QEMU VM [Ubuntu 24.04]

I have been working on trying to get SGX passthrough to VM using QEMU and Virsh (libvirt). Unfortunately, i cannot seem to passthrough SGX enclaves to my VMs. SGX (using DCAP) works on my host machine and i have tested with a client setup. Just as…
0
votes
0 answers

virsh failure: "Failed to start network default; socket 192.168.122.1 address already in use"

I haven't run any VMs for a while (~8 weeks), but I tried to create a new VM today (22.04 and 24.04, on Cockpit) and got this error message: ERROR Requested operation is not valid: network 'default' is not active Domain installation does not appear…
QF0
  • 311
0
votes
0 answers

How do you change the resolution of a Windows guest running with libvirtd?

Trying to figure out a path to change the resolution on a Windows 11 guest running in libvirtd. I found this gitlab site but the instructions tell you to inspect his code to then go on a manual hunt for various different files and organize them…
0
votes
0 answers

Unable to connect to libvirt qemu:///system

Running Ubuntu 20.04. sudo virt-manager Unable to connect to libvirt qemu:///system. Verify that the 'libvirtd' daemon is running. Googled ‘Verify that the 'libvirtd' daemon is running.’ https://ubuntuforums.org/showthread.php?t=2480264 mentions…
0
votes
1 answer

QEMU/KVM virtio config filesystem passthrough Ubuntu 24.04. VM and Ubuntu 20.04. host

I have Ubuntu 20.04. as host, with 5 virtual machines: Ubuntu 20.04. Ubuntu 22.04. Ubuntu 24.04. Fedora 39 Fedora 40 In each I have set:
Mlocik97
  • 459
1
2