Questions tagged [libvirt]

libvirt is an API and toolkit for developing applications which manage virtual machine hypervisors, the virtual machines running under them, and virtual machine storage.

libvirt is an API and toolkit for developing applications which manage virtual machine hypervisors, the virtual machines running under them, and virtual machine storage.

libvirt runs on Linux, Solaris and Windows.

libvirt supports the following hypervisors: KVM/QEMU, Hyper-V, VMware, Xen, VirtualBox, OpenVZ, LXC, User Mode Linux, and others.

libvirt suports the following storage: local file images, raw disk storage, LVM, FibreChannel, iSCSI, NFS.

650 questions
1
vote
0 answers

How can I blockpull an inactive domain?

For active domain I can do virsh blockpull --domain ... --path ... --base ... I would expect the blockpull should also work with inactive domain since it should be even easier (there is no write operation from guest os interfering the merge…
Wang
  • 292
  • 1
  • 2
  • 11
1
vote
0 answers

libvirt: how to use host OpenVPN connection

I have Ubuntu 22.04 with OpenVPN connection to remote network. I also have some number of VMs running on my machine. All of them are using one Virtual network to connect each other. Not all VMs support OpenVPN so I need to use host VPN connection.…
BeginEnd
  • 111
  • 2
1
vote
1 answer

virsh console hangs when i connect kvm VM

KVM Host Environment:- # cat /etc/issue Welcome to openSUSE 13.2 "Harlequin" - Kernel \r (\l). # /usr/bin/qemu-system-x86_64 --version QEMU emulator version 2.1.3 Running VMs list as follows, # virsh list --all Id Name …
user4948798
  • 115
  • 4
1
vote
1 answer

Migrating libvirt guest vm to a new storage directory on the same host

I have found a few related questions/articles but nothing about just simply moving an existing VM to a new directory on the same machine. That's what this question entails. For this scenario, I need to move an existing virtual machine storage from…
Rino Bino
  • 511
  • 5
  • 21
1
vote
0 answers

KVM start failed (ubuntu image)

KVM start failing 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 virsh start vm1 error: failed to get domain 'vm1' error: Domain not found: no…
1
vote
0 answers

libvirt and dnsmasq does not allow to start Kea DHCP server

I have libvirt installed which instantiates dnsmasq process per each virtual bridge interface, e.g. virbr0, however for some reason I can't start kea-dhcp server on other interfaces in the system, unless I kill dnsmasq process completely. I'm…
Mark
  • 249
  • 1
  • 5
  • 13
1
vote
1 answer

How to auto redirect a usb device on virt-manager

How do I automatically redirect a USB device to a remote KVM? preferrably filtered by ID. I have a KVM running on a server (QEMU+SSH), and the display protocol is Spice. How could I always redirect a USB device with a specific ID to the remote…
Luctins
  • 11
  • 1
  • 3
1
vote
1 answer

Terraform Libvirt - How to use local qcow2 file

i try to provision some nodes for a kubernetes cluster based on kvm and debian. I want to use the Debian 11 Genericcloud Image and clound-init to initialize it. So i put the debian baseimge to /var/lib/libvirt/images/templates on the remote machine,…
en1cc
  • 21
  • 1
1
vote
0 answers

Howto set a host virtual interface (failover) to a vm in kvm+libvirt?

Have a Ubuntu Server 20.04 and 2 address, one in eno1 interface with first default public address and a failover with second address. I can create a virtual interface using a netplan called failover1 and works fine: network: version: 2 …
1
vote
0 answers

There is a way to pass the option " pci=[’00:...,rdm_policy=relaxed’] " to libvirt?

I can run (successfully) a xen virtual machine use the classical method with xl xl create -f myvm.xenxl.cfg I know also how to convert from xl format to libvirt xml virsh -c xen:///system domxml-from-native xen-xl myvm.xenxl.cfg > myvm.xml What is…
elbarna
  • 332
  • 3
  • 6
  • 15
1
vote
0 answers

How to reload firewalld without loosing Libvirt iptables forwarding rules

It's been well know that firewalld will flush Libvirt rules upon reload and thus making port forwarding to VMs broken until you restart libvirtd. Here is what I did: Create…
nforced
  • 111
  • 2
1
vote
0 answers

Cannot install virt-manager, python dependencies

I have a debian 11 machine, I installed KVM on it, and I would like to also install virt-manager, but I got : The following packages have unmet dependencies: python3-libxml2 : Depends: libpython3.7 (>= 3.7.0) but it is not installable E: Unable to…
1
vote
1 answer

How can the SPICE password of a libvirt+kvm+qemu virtual machine be changed while the machine is running?

I have a virtual machine that is running on a KVM+QEMU stack with libvirt. The VM is using a qxl or virtio display and has a spice graphics listening on a port. I'd like to change the password (in SPICE they call it "ticket") used to access that…
1
vote
2 answers

Bind/Unbind PCI device on the Ubuntu host

I have to NIC devices on the host: # list Ethernet PCI devices to find out names lspci -nn | grep Ethernet # 04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168]…
1
vote
1 answer

OpenStack Nova fails to connect to libvirt (not socket issue!)

We're trying to deploy OpenStack on hardened Debian-based Linux distro via Kolla-ansible and we seem to be almost done but facing the issue with the nova_compute container which complaints: 2021-09-12 08:56:34.365 7 INFO nova.virt.libvirt.driver [-]…