Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
5 views

Avoid host to connect to kvm vm and to extract data from vm

I use kvm with libvirt and i want to avoid host to extract data from a virtual machine. It's possible that the host can fall in bad hands and that is why i want to protect the vms. How can i protect ...
user avatar
0 votes
0 answers
7 views

Forbid LibVirt to pmsuspend

I've VMs on KVM/LibVirt. Some of them hangs after libvirt makes pmsuspend and then I pmwakeup them, and I need to force the reboot of the VM. Is there any way to make LibVirt never to pmsuspend domain?...
user avatar
0 votes
1 answer
13 views

Parallel OpenVPN Connection Over multiple Libvirt Network Interfaces

Let's Say That I have 20 VMs (Host: Ubuntu, Using Qemu-KVM, libvirt) and that I would use different network interfaces for different groups of vms. (1-6 using Network1, 7-15 using Network2, 16-20 ...
user avatar
0 votes
0 answers
50 views

virt-manager's remote-viewer: fails to connect thru SSH tunnel with "incomplete link header (-104/16)

I have a server running libvirtd with QEMU/KVM domains. I would like to access it with virt-manager from a remote machine, for which I open an SSH tunnel and forward a TCP port (libvirtd is listening ...
user avatar
  • 101
0 votes
1 answer
66 views

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 ...
user avatar
  • 3
0 votes
0 answers
108 views

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 ...
user avatar
0 votes
0 answers
77 views

qemu-kvm snapshot creations are extremely slow after a few first fast ones

Could anyone help me on this please? behavior I'm running several VMs with qemu-kvm and when creating some first few snapshots of a running VM, they are created super fast (roughly 10 seconds). ...
user avatar
0 votes
0 answers
66 views

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/...
user avatar
  • 11
0 votes
1 answer
216 views

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 ...
user avatar
  • 285
1 vote
1 answer
61 views

libvirtd eating up to 100% CPU with no apparent reason

Few days ago libvirt has started to behave erratically on my laptop. It consumes a high amount of CPU without any apparent reason. ALL my VMs are shutoff, why is libvirt using up to 100% CPU if no VMs ...
user avatar
  • 169
0 votes
0 answers
144 views

KVM stuck in boot loop

I have a server here, running Ubuntu 16.04 and libvirt 4.0.0. It is hosting a single KVM, a Jenkins Server. This server however is stuck in a boot loop after it was shut down for maintenance. I cannot ...
user avatar
0 votes
1 answer
40 views

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), ...
user avatar
  • 669
0 votes
0 answers
26 views

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: -...
user avatar
  • 1
0 votes
1 answer
76 views

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: ...
user avatar
  • 11
0 votes
1 answer
75 views

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 ...
user avatar
  • 262
0 votes
1 answer
36 views

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 ...
user avatar
0 votes
0 answers
41 views

What is an alternative of "virtio26" os-variant for Flatcar Linux installation on kvm-qemu using virt-install

Greeting to all! Details: The official tutorial for Flatcar kvm-qemu installation suggests to use "virtio26" os-variant. But in Ubuntu LTS 20.04 "osinfo-query os" doesn't show such ...
user avatar
2 votes
3 answers
231 views

virsh autostart not working

root@virtual3:~# virsh autostart nstest Domain nstest marked as autostarted root@virtual3:~# virsh dominfo nstest Id: - Name: nstest UUID: 8cf691cd-7246-442b-a26b-...
user avatar
  • 41
0 votes
0 answers
125 views

LXD vs libvirt LXC driver

Are LXD and libvirt with LXC driver doing the exact same thing (just provision LXC containers)? If so, is there any advantage in using one over the other?
user avatar
1 vote
0 answers
60 views

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 ...
user avatar
  • 121
1 vote
0 answers
18 views

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-...
user avatar
  • 322
0 votes
0 answers
140 views

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 /etc/systemd/system/...
user avatar
0 votes
1 answer
38 views

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 ...
user avatar
  • 197
2 votes
1 answer
53 views

How do you determine the location of a Vagrantfile from virt-manager?

OS is Debian 10, vagrant provider is libvirt. vagrant global-status is supposed to provide information on all vms on a system, but I can see shutoff and running vms in virt-manager that are not listed ...
user avatar
  • 2,099
0 votes
0 answers
133 views

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 ...
user avatar
0 votes
0 answers
43 views

KVM disk size stuck at 993M despite using --disk size=10. How do I set it to 10GB?

I create a vm using sudo virt-install \ --name ueransim \ --ram=2048 \ --vcpus=2 \ --disk size=10 \ --location /home/username/ubuntu-20.04.3-desktop-amd64.iso \ --graphics vnc,listen=0.0.0.0 \ --...
user avatar
  • 1
0 votes
0 answers
15 views

Is Intel Software Guard Extensions the same as a Trusted Execution Enviroment?

I'm trying to follow this ServerFault solution, but the information used is 13 years old. My Dell XPS 15 9500 has an Intel i7-10750H has support for virtualization and it's enabled. My UEFI parameters ...
user avatar
0 votes
0 answers
37 views

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 ...
user avatar
1 vote
0 answers
86 views

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 (&...
user avatar
  • 11
0 votes
0 answers
168 views

libvirt bridge incoming traffic not forwarded

I have a public ip block 51.x.x.16/28 that I'm trying to use with libvirt/qemu VMs. Inside the VM (ip 51.x.x.18) I'm trying to create an outbound tcp connection (http). Using tcpdump on the host I can ...
user avatar
  • 1
0 votes
0 answers
156 views

Qemu cloud-init nocloud-net static ip

I'm using ubuntu-cloud images and I'm trying to run cloud-init with nocloud-net -smbios type=1,serial=ds=nocloud-net;s=http://10.10.0.1:8000/ as described at https://cloudinit.readthedocs.io/en/latest/...
user avatar
  • 1
1 vote
1 answer
187 views

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 ...
user avatar
  • 131
0 votes
2 answers
452 views

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 ...
user avatar
  • 103
0 votes
0 answers
320 views

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 ...
user avatar
0 votes
1 answer
157 views

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. ...
user avatar
1 vote
1 answer
149 views

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 ...
user avatar
0 votes
0 answers
302 views

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 ...
user avatar
  • 1
1 vote
0 answers
347 views

How to configure a hypervisor such that a KVM/QEMU virtual machine can reach hosts connected to the same trunk bridge?

1 Problem My goal is that all LAN traffic is routed through a virtual machine (VM) acting as a router and firewall. Other VMs on the same hypervisor should also be routed through the firewall VM. See ...
user avatar
  • 11
0 votes
0 answers
56 views

RHEL 7 in Hyper-V with Proper NAT Configuration Issues

I have a RHEL7 VM running on Hyper-V. In my VM, I have a web-based program the I need to access over port 11000. In the VM, the software is configured and is accessible by https://0.0.0.0:11000. I'...
user avatar
1 vote
0 answers
35 views

How to ensure that the changes in domain XML spec in libvirt takes effect?

I followed this host port forward with qemu through libvirt in user-mode networking answer to accomplish a certain task but it was only after a reboot that the ports were actually accessible. I tried ...
user avatar
0 votes
0 answers
35 views

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&...
user avatar
0 votes
0 answers
259 views

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

From the following command virsh net-edit default, I see: <network> <name>default</name> <uuid>7a106327-942a-40e7-a977-018b5323832a</uuid> <forward mode='nat'/&...
user avatar
0 votes
0 answers
20 views

How to attach a system-defined libvirt’s network to a VM run as a regular user (not sudo) using Cockpit?

I want to use cockpit-machines to run VMs but: -I don’t want my Cockpit’s logged, regular user to be able to escalate privileges -I want these VMs to be attached to a virtual bridged network, which is ...
user avatar
  • 135
0 votes
0 answers
30 views

After Moving KVM VM, Unable to Mount NFS Partitions

I am using KVM for VMs with LVM partitions. I ran out of space one of the VM(32G) and I decided to move the VM to another physical server and expand its disk(to 48G). #Physical server with low disk ...
user avatar
0 votes
0 answers
88 views

VLAN QEMU Hypervisor bridge without host ip

I'm using debian 10 with kvm/qemu as hypervisor. You can ignore the bond... I created X VLAN Tagged and created a bridge on that tagged vlan. auto bond0 iface bond0 inet manual slaves eno1 ...
user avatar
  • 69
0 votes
1 answer
140 views

netplan + libvirt - Should I set up virbr0 virtual bridge?

As far as I understand, the interfaces virbr0 and virbr0-nic are created and managed by libvirt. ● 4: virbr0 Link File: /lib/systemd/network/99-default.link Network File: n/a ...
user avatar
4 votes
2 answers
2k views

Redirecting USB device to a virtual machine with virt-manager does not work

I have a Fedora workstation running an Ubuntu 16.04 virtual machine (KVM hypervisor). I'd like to redirect a USB device to the VM, but when selecting "Virtual Machine | Redirect USB device" ...
user avatar
0 votes
0 answers
19 views

Virt Block device resizing [duplicate]

I am attempting to expand the size of a virtual disk on an existing image. I was successful to expand the virtual hard disk and partition thanks to this guide, but noticed my virtual disk was still ...
user avatar
1 vote
1 answer
266 views

Wildcard CNAME record specified by libvirts dnsmasq:options namespace doesn't work, only specific subdomains works

Since v5.6.0, libvirt added a dnsmasq namespace with the element, which allows to specify options directly to the underlying dnsmasq server. I'd like to create a wildcard DNS entry for my applications ...
user avatar
  • 496
0 votes
0 answers
171 views

How to use virsh attach-device without knowledge of target dev name

Is there a way to use virsh attach-device without using a target? For example, I attach a disk by using an xml file which includes the target "sdc". <disk type='block' device='disk'> ...
user avatar

1
2 3 4 5
12