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
3
votes
3 answers

libvirt + ESX (HTTP response code 400 for call to 'Login')

I'm trying to connect to a vSphere cluster using the information from the libvirt documentation. $ virsh -c "vpx://root@10.51.4.11/dc1/dc1-cluster-e01/dc1-vsphere-e04/?no_verify=1" Enter root's password for 10.51.4.11: error: internal error HTTP…
Coops
  • 6,055
  • 1
  • 34
  • 54
3
votes
2 answers

LibVirt: Disk image has wrong size inside guest

I'm creating a new virtual disk using the following command*: $ virsh vol-create-as --format=qcow2 guest-disks disk_instid.24_diskid.30 8192M Vol disk_instid.24_diskid.30 created The "guest-disks" pool is a simple "dir"-Type pool. As you see, the…
Dave Vogt
  • 257
  • 2
  • 12
3
votes
4 answers

KVM-Guest does not boot: qemudParsePCIDeviceStrs

I have a Server running Ubuntu 10.10 Server-Edition kvm, and libvirt (both ubuntu-native packages) HDD-Partitioning was done with LVM. Then I created some VMs with Virt-Manager and assigned LVM-Volumes to the VMs. Now the VMs do not boot.…
markus
  • 185
  • 5
  • 10
3
votes
1 answer

libvirt, qemu, reboot hook

Is it possible to detect that the guest VM has rebooted and perform an action using libvirt / qemu? The hooks here only support the "start" and "stop" events. I would like to detect if my VM has rebooted. HOST is running ubuntu 10.04 GUEST is…
bradgonesurfing
  • 271
  • 1
  • 4
  • 6
3
votes
2 answers

How do I run a stable Windows XP kvm guest on Ubuntu 10.04?

I have three Windows XP guests running on a recently upgraded 64-bit Ubuntu 10.04 system. Occasionally (on the order of once every few days), one of the guests will become non-responsive and the kvm process on the host which is running that guest…
3
votes
1 answer

Any non-custom way to manage iptables with fail2ban and libvirt+kvm?

I have an Ubuntu 9.04 server running libvirt/kvm and fail2ban (for SSH attacks). Both libvirt and fail2ban integrate with iptables in different ways. Libvirt uses (I think) some XML config and during startup (?) configures forwarding to the VM…
Peter Hansen
  • 156
  • 10
3
votes
3 answers

KVM "live migration finished" detection

I'm using KVM (through libvirt actually) for a research project. We're live-migrating a virtual machine between different subnets, so after the migration the IP address and routing tables have to be updated, else the VM is unreachable in it's new…
3
votes
4 answers

libvirt and qemu/kvm -snapshot option

Using libvirt, I want to use QEMU's '-snapshot' option. That way, when the machine shuts down, all of the disk changes that were made get destroyed. Here is the manual for the -snapshot option: Write to temporary files instead of disk image files.…
user34480
3
votes
0 answers

how to allow outgoing traffic with firewalld / libvirt on CentOS 8?

I installed a CentOS 8 guest on a CentOS 8 host using libvirt. However firewalld is blocking all outgoing traffic from the guest to the internet unless I use target=ACCEPT for the libvirt zone. The datacenter provides two separate IPv4 addresses for…
Felix Schwarz
  • 213
  • 3
  • 12
3
votes
0 answers

Windows 10 KVM guests cause Ubuntu 20.04 host to crash (revised)

I got extremely confused and decided to re-write the question from scratch, so if some of the comments do not make sense, that is why. Apoplogies to anyone whose time I wasted. I am having a problem with my entire system freezing when using KVM…
3
votes
1 answer

qemu-kvm guest OS can access host using bridge, but cannot access other devices on same network

I want to run a qemu-kvm guest with Debian 9 as its OS on a Debian 10 host. The host is connected to the local network, and I would like the guest to be "visible" to the local network as if it were a regular device connected directly to the network.…
ngj
  • 133
  • 1
  • 4
2
votes
1 answer

How can I make my libvirt/KVM guest see all IPv4/UDP multicast traffic?

I have an issue with IPv4/UDP multicast traffic not being fully visible from within a KVM guest. The guest has a dedicated NIC which is attached using MacVTap. Both the host OS and the OS in the guest are Ubuntu 18.04. This is the VM’s network…
aaronk6
  • 416
  • 6
  • 14
2
votes
3 answers

Create iPXE UEFI bootable image for QEMU/Libvirt with custom next-server and filename

I can create a VM with libvirt/qemu to boot in UEFI mode. I know that it does iPXE by default, but I want to create/modify a iPXE image in order to override filename and next-server properties. How can I do such thing? EDIT: I tried the…
djuarezg
  • 131
  • 1
  • 2
  • 8
2
votes
1 answer

How to assign VM hostname by definition in libvirt virtual network interface

Fedora 30 Workstation Host, Fedora 30 Server (netinstall) Guests. I am not an expert in all this super-crazy Linux networking stuff and reading a ton of materials there and there. So I have libvirt virtual network interface:
Dzintars
  • 201
  • 1
  • 2
  • 7
2
votes
1 answer

libvirt-lxc container on Debian buster with user namespacing not always startable

I have a bunch of libvirt-lxc containers whose configuration I migrated from Debian jessie to a fresh Debian buster host. I re-created the rootfs’ for the containers using lxc-create -t debian -- --release buster and later remapped the uid/gid…
Jonas Schäfer
  • 325
  • 1
  • 11