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

Keep specific vnet(xx) adapter on host system for VM the same after VM shutdown/reboot

Upon a shutdown and reboot the vnet(xx) adapter assigned to the VM from the VM host changes. Is there any way to keep it a specific vnet(xx), for example vnet20 after it's shutdown for whatever reason ...
flux fluxflux's user avatar
0 votes
2 answers
1k views

Libvirt routing between two NAT networks

I have following two networks, <network> <name>subsys-network</name> <bridge name="virbr1"/> <forward mode="nat"/> <ip address="192....
Iresh Dissanayaka's user avatar
1 vote
0 answers
227 views

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 ...
BeginEnd's user avatar
  • 111
2 votes
1 answer
2k views

KVM Networking - assign IP to each VM by outside DHCP

I am new to KVM and am having a problem with setting up the networking. I want each VM to get its IPs assigned by the network's DHCP, not the internal DHCP that the KVM keeps trying to set up. In ...
Hubert Oliver's user avatar
0 votes
1 answer
2k views

`virsh -c qemu:///session list --all` lists VMs created in `QEMU/KVM` connection, but misses VM from `QEMU/KVM User session` of Virt-Manager

# virsh -c qemu:///session list --all lists only VMs created in QEMU/KVM connection (system !), but misses VM I've created in QEMU/KVM User session in GUI of Virt-Manager. Why? From below I unserstand ...
Alex Martian's user avatar
-1 votes
1 answer
212 views

Blocking mac spoofing on libvirt guests using openflow

I have a couple of kvm vms running with libvirt and they are using openvswitch bridges. I need a mechanism to prevent mac spoofing on a guest. I tried libvirt filters no-mac-spoofing and clean-traffic ...
igalvez's user avatar
  • 39
0 votes
1 answer
798 views

Bridging wan interface using macvtap - no connection to host

So I have an ubuntu server with 1 WAN interface with a public ip address. I would like to bridge this interface so that the qemu guest vm will use the same interface. I used the guide in https://...
chegov's user avatar
  • 1
0 votes
3 answers
1k views

Virsh command hangs when script runs in the background

I have a bash script which runs as a cronjob. This script runs several commands and one of them is the following virsh command: /usr/bin/virsh list --all When I run this script in the terminal (as ...
Esteban's user avatar
  • 35
2 votes
2 answers
983 views

qemu commandline can't see /dev/net/tun

i am newbie with qemu and libvirt. I hit the issue with virsh and qemu, especially with tun interface setup. Once i run qemu-system-x86_64 \ -nographic -enable-kvm \ -cpu host -m 2048 \ -...
raphaelnadal's user avatar
0 votes
2 answers
483 views

How to resize kvm vm host

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 With the below commands i ...
Ekam's user avatar
  • 11
2 votes
2 answers
2k views

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 ...
user4948798's user avatar
2 votes
1 answer
1k views

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 ...
Rino Bino's user avatar
  • 593
1 vote
0 answers
548 views

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 ...
Ekam's user avatar
  • 11
1 vote
0 answers
121 views

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, ...
Mark's user avatar
  • 259
0 votes
1 answer
362 views

libvirt nwfilter breaks networking of other VMs

I just switched from VirtualBox to Virt Manager with KVM and I am very happy with the switch (my initial motivation for it was to use the same virtualization for desktop VMs and server VMs by ditching ...
Jean's user avatar
  • 1
0 votes
1 answer
149 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 ...
Fred Smith's user avatar
0 votes
0 answers
3k 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 ...
hypersw's user avatar
  • 101
0 votes
1 answer
2k 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 ...
Keith's user avatar
  • 3
2 votes
1 answer
5k 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 ...
Luctins's user avatar
  • 21
2 votes
0 answers
908 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). ...
steffres's user avatar
  • 101
1 vote
1 answer
836 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/...
en1cc's user avatar
  • 21
0 votes
1 answer
2k 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 ...
MrCalvin's user avatar
  • 384
2 votes
1 answer
1k 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 ...
DavidEG's user avatar
  • 179
0 votes
1 answer
509 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), ...
mirabilos's user avatar
  • 749
0 votes
0 answers
102 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: -...
Andrew's user avatar
  • 21
0 votes
1 answer
464 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: ...
fnsq's user avatar
  • 11
0 votes
1 answer
712 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 ...
aaronk6's user avatar
  • 446
0 votes
1 answer
346 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 ...
user1325094's user avatar
4 votes
3 answers
4k 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-...
David's user avatar
  • 81
2 votes
0 answers
254 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 ...
e-info128's user avatar
  • 173
1 vote
0 answers
77 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-...
elbarna's user avatar
  • 328
1 vote
0 answers
693 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/...
nforced's user avatar
  • 111
0 votes
1 answer
100 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 ...
zenlord's user avatar
  • 242
2 votes
1 answer
163 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 ...
cat pants's user avatar
  • 2,283
0 votes
1 answer
2k 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 ...
Unpossible's user avatar
0 votes
0 answers
225 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 ...
keerthivasan's user avatar
1 vote
0 answers
274 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 (&...
Luthing's user avatar
  • 11
1 vote
1 answer
1k 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 ...
Kalsan's user avatar
  • 131
1 vote
2 answers
3k 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 ...
Alexander Borochkin's user avatar
0 votes
0 answers
1k 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 ...
BrianTheLion's user avatar
0 votes
1 answer
1k 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. ...
OmarOthman's user avatar
1 vote
2 answers
718 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 ...
Alex Vrublevskiy's user avatar
0 votes
0 answers
1k 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 ...
Bon's user avatar
  • 1
1 vote
0 answers
992 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 ...
fremon's user avatar
  • 11
1 vote
0 answers
125 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 ...
Akashdeep Dhar's user avatar
0 votes
0 answers
133 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&...
SupportiveDante's user avatar
1 vote
0 answers
2k 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'/&...
average_coder25's user avatar
0 votes
0 answers
223 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 ...
Wulf's user avatar
  • 69
0 votes
1 answer
494 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 ...
Norman Pellet's user avatar
4 votes
2 answers
10k 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" ...
Romain Deterre's user avatar

1
2
3 4 5
13