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
0
votes
1 answer

Assigning a Public IPv4 automatically to every KVM VM thats being created?

Im wondering how would i go on about assigning a public ipv4 to each vm thats being created. Setup : Host Server with 3 IPs on CentOS8 using libvirt and kvm to virtualize Bridge br0 using eth0 as interface. After a lot of Trial and Error i managed…
0
votes
1 answer

How to pass-through multiple USB devices with the same Vendor- and Device-ID in QEMu/Libvirt?

I have three identical USB devices on my VM host that I would like to pass-through to a VM: I can pass-through only one device as they all have the same vendor- and device-ID, the element in the VM libvirt XML file look like this: ...
MrCalvin
  • 354
  • 1
  • 6
  • 18
0
votes
1 answer

Set the date automatically after VM unpauses

I’ve got virtual machines (with Debian or occasionally *buntu guests, GNU/Linux) running in libvirt/qemu/kvm, and I have discovered the feature to pause/unpause a VM. After unpausing (virsh resume), the guest clock is, obviously, off. How can I…
mirabilos
  • 737
  • 1
  • 7
  • 22
0
votes
0 answers

Linux bridge leaking traffic of shutdown vms

I've a linux bridge (br0) setup with netplan as the following: version: 2 renderer: networkd ethernets: eno1: dhcp4: no dhcp6: no bridges: probr: interfaces: - eno1 macaddress: ab:cd:ef:01:02:03 …
Andrew
  • 21
  • 2
0
votes
1 answer

QEMU-KVM, drbd and corosync - VM's doesn't work after reboot

On Debian 9.6 I've got QEMU-KVM Virtualisation. After electricity problems this machine just shut down. After switching it on again I can't start any VM because of this error: error: internal error: process exited while connecting to monitor:…
fnsq
  • 11
  • 1
  • 3
0
votes
1 answer

Why is virt-install failing with “Read-only file system” when specifying initrd on a locally mounted ISO?

I’m using virt-install to create an Ubuntu machine using the official Ubuntu server live ISO. This command has been working in the past, but stopped working at some point (maybe after upgrading the host OS from Ubuntu 18.04 to 20.04, but I’m not…
aaronk6
  • 416
  • 6
  • 14
0
votes
1 answer

Multi-host VM's with libvirt, ideally with static IP's

From my reading of the libvirt documentation and the examples here libvirt uses a Linux bridge to provide routing between VM's on the same host. It also starts a dnsmasq process attached to the bridge which supplies DHCP addresses to the VMs. I'm…
0
votes
1 answer

QEMU - after dist-upgrade of Debian host, win10 guest state lost

I'm running a headless Debian host with a win10 guest that I seldomly login to via vnc. Last week I upgraded Debian from Buster to Bullseye, and that also upgraded QEMU from v3.1 to v5.2 (and libvirt jumped from 5.0 to 7.0). Of course, my due…
zenlord
  • 232
  • 2
  • 9
0
votes
1 answer

cloud-init seems to be ignoring write-files script

H! I am trying to configure VMs with cloud-init, using the terraform Libvirt provider. For some reason I don't understand, setting hostname works, but writing and running a script for additional configuration is completely ignored. Would appreciate…
Unpossible
  • 249
  • 1
  • 7
  • 20
0
votes
0 answers

Openstack ( using libvirt image type as LVM )- Very low IOPS

As part of the base line testing, able to see qcow is providing much higher iops compare to the LVM. Ideally it should be the reverse ( as per my knowledge gathering ) Kindly please advise me on how can i get the better iops while using…
0
votes
0 answers

If a user runs libvirtd inside a docker container, is there any way to discover the user's VMs?

Potentially naive question that I'm hoping some cgroups experts can answer quickly: Assuming the following docker workflow was run by Linux user joe, how can the system root user determine that a VM is indeed…
BrianTheLion
  • 165
  • 2
  • 8
0
votes
1 answer

LibVirt: PXE-boot over HTTPS?

The title summarizes it all. I have a VM solution that involves LibVirt, QEmu, and KVM. PXE-boot over HTTP works, but doesn't work on HTTPS. There are no firewall problems, I've checked that already. Everything is CentOS Linux. Any ideas how to…
OmarOthman
  • 107
  • 1
  • 6
0
votes
0 answers

KVM Libvirt, access nfs shares from host to client

I'm on a problem and I hope for some help? I have a server with 5 network interfaces. One is running PPPoE from a bridged modem and gets the external IP. I'm using firewalld and dnsmasq to share that connection to the other 4 ports and devices on my…
Bon
  • 1
  • 1
0
votes
0 answers

Can I achieve this VirtualBox network configuration using libvirt?

I asked a similar question here but I messed up logging in with my SE account and so I can't edit it. Here is what I would specifically like to achieve with libvirt under the "Internal Network" heading. A comment in the previous question mentioned…
0
votes
0 answers

Why is net-dhcp-leases coming up empty in VIRSH?

From the following command virsh net-edit default, I see: default 7a106327-942a-40e7-a977-018b5323832a