Questions tagged [libvirt]
libvirt is an open source API, daemon and management tool for managing platform virtualization.[1] It can be used to manage Linux KVM, Xen, VMware ESX,qemu and other virtualization technologies. These APIs are widely used in Orchestration Layer for Hypervisors in the development of a cloud based solution.
libvirt
559
questions
-1
votes
0
answers
26
views
Libvirt virt-install Ubuntu Server 22.04 Stuck on Console [closed]
I'm trying to automate the virtual machine creation process, but I'm encountering an issue with the following command. The command runs without errors, but the virtual machine seems to require user ...
0
votes
1
answer
22
views
How can I add additional tagged vlans when using virt-install to create a guest?
I'm unable to figure out the XPath syntax to add a second tagged vlan when using virt-install to provision a guest:
srv01:~$ sudo virt-install\
--name=ds-controller01.iwc.ig24\
--disk source.dev=/...
0
votes
0
answers
36
views
after VM migration, downtime in qemu is different from that in libvirt
qemu version 8.2.0
libvirt version 6.2.0
I added logging to the populate_time_info function in the migration/migration.c file.
static void populate_time_info(MigrationInfo *info, MigrationState *s)
{
...
0
votes
0
answers
18
views
Can setpci in combination with udev change USB bus assignment
On intel machine all the USB2 device are assigned to a single XHCI bus, even if they are connected to a hub attached to the USBC port. This is unfortunate if I need to passthough the corresponding ...
0
votes
0
answers
37
views
How can I update the baking file of qcow2 snapshot after the files have already been moved?
I am running Kubuntu (Ubuntu + KDE) with libvirt/qemu/kvm to run VMs.
I have a Windows 11 VM. When I created it, it created a .qcow2 and now I have a snapshot file.
The original file paths were:
/var/...
0
votes
0
answers
27
views
Right metric for CPU usage VM qemu-kvm
I am using qemu-kvm (libvirt) on Ubuntu 20.04. I've created virtual machine with 8 CPU and installed node-exporter on vm and libvirt-exporter on hv.
Node exporter on virtual machine says that CPU ...
0
votes
0
answers
112
views
Vagrant-libvirt: could not get preferred machine for /usr/bin/qemu-system-aarch64 type=kvm
I'm having issues with running an arm64 machine using vagrant with the vagrant-libvirt plugin.
Here's the Vagrantfile:
Vagrant.configure("2") do |config|
# Disable synced folders
...
0
votes
0
answers
21
views
Routing OpenVPN traffic from a Debian VM to a Windows 11 VM?
How can I route the traffic from OpenVPN, running on a Debian 12 VM, into a Windows 11 VM?
Similar to Whonix, I am trying to set up two virtual machines on a Debian 12 host, in which the first virtual ...
0
votes
1
answer
34
views
XPath not working when value has equal operator using virt-xml
I'm running command:
cat ./xml | virt-xml --edit --xml ./tag1/tag2="a=b" > output.xml
it should add text a=b in tag2 but it is creating <tag2=a>b</tag2=a> which is incorrect.
...
0
votes
0
answers
25
views
Qcow2 file created by backup is smaller and not sparse
The backups created by the virsh backup-begin command are not sparse, and only big enough to hold the amount of data being stored.
I used the process described here to create a backup of a virtual ...
0
votes
0
answers
22
views
Security Implications of listen_tls = 1 and tls_auth = 0 in libvirtd.conf
I've been auditing the configuration of libvirtd.conf on a cloud platform's host machine and have encountered a configuration that I'm unsure about. The settings in question are:
listen_tls = 1 ...
0
votes
0
answers
32
views
ansible: dynamic inventory: How to link libvirt VMs with custom groups?
I have used terraform to provision several VMs based on the Arch Linux cloud image. Here are the libvirt VMs by their name:
archlinux-x86-64-000
archlinux-x86-64-001
archlinux-x86-64-002
archlinux-...
1
vote
1
answer
76
views
Installation Failure of libvirt-python on Rocky Linux 9: pkg-config Cannot Find libvirt
I'm trying to install libvirt-python version 8.4.0 on Rocky Linux 9, but I'm encountering an error during the installation process. Despite having installed all the necessary libvirt related packages, ...
0
votes
0
answers
58
views
Error when installing libvirt-python via pip on Windows 11
I'm attempting to install the libvirt-python package using pip within my virtual environment on Windows 11. However, I encounter an error during the installation process. Below is the command I ...
0
votes
1
answer
35
views
Libvirt API for python - blockCopy issue
Using virsh, I can use the following cli command to move an active disk to another location:
virsh blockcopy --domain 'mydomain' vda /my_new_path/disk.qcow2 --wait --verbose --pivot
However when I try ...