Questions tagged [libvirt]

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

20 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

libvirt can not find rom file

I'm setting up a windows 11 VM with libvirt and QEMU/KVM, using virt-manager. My system is the Asus G513QY Advantage Laptop with a 5900HX and 6800M, which is a MUXless system. My operating system is a flavor of Ubuntu 24.04, Kubuntu 24.04.3. From…
2
votes
1 answer

KVM/libvirt error with ubuntu cloud image when secureboot enabled

I am trying to write a script to automate deployment of VMs. So I am testing configurations for various platforms. Problem Creating virtual machines in KVM/libvirt/QEMU using the cloud images from Ubuntu (or Fedora) fails when secure-boot is…
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…
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 sequence…
1
vote
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 :=…
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…
Tim Richardson
  • 2,414
  • 4
  • 27
  • 47
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, $arch,…
Alee
  • 37
0
votes
0 answers

Nova-compute start but cannot discover_host

I'm fairly new to Openstack and currently trying to install a single-node setup on Ubuntu 24.04. During the nova-compute setup step, I managed to installed nova-compute and kvm libvirted which show both service start successfully, but fail to add…
Matt
  • 1
  • 1
0
votes
0 answers

Libvirt using the passt networking backend crashes because of AppArmor

When trying to use the passt networking backend in Ubuntu, libvirt is unable to start the VM due to a signal 11 for the passt service. Disabling AppArmor fixes the problem, and the VM is able to start. Checking the journal, I am able to see that…
Jerry
  • 1
0
votes
0 answers

Ubuntu 24.04 Server with VGPU taking 2mins+ to Boot Windows VM

We successfully installed NVIDIA VGPU Drivers in Ubuntu 24.04 on kernal 6.8.0-71-generic But we are getting about 1.5 to 2 mins+ Boot time with the VGPU added to a Windows VM on libvirt, without VGPU in direct passthrough it takes less then 30 sec…
1
2