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
12 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 ...
user avatar
0 votes
1 answer
23 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 ...
user avatar
-1 votes
1 answer
30 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 ...
user avatar
  • 29
0 votes
0 answers
25 views

libvirt guest cannot be reboot within itself or from host

I have a guest(debian9) created by: virt-install --name vm --events=on_reboot=restart,on_poweroff=restart,on_crash=restart --disk /opt/debian9.qcow2 --import acpid is installed in guest. If I reboot ...
user avatar
  • 123
0 votes
0 answers
27 views

Cannot ping/SSH VMs from Host created into Xen VM (guest) on VirtualBox hostonly network and bridged interface

I have a network related issue. Here the description of my prototype : |=========================VirtualBox==============================| | |======== LibVirt ==...
user avatar
  • 101
0 votes
1 answer
36 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://...
user avatar
  • 1
0 votes
1 answer
39 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 ...
user avatar
  • 35
1 vote
1 answer
20 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 \ -...
user avatar
0 votes
2 answers
42 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 ...
user avatar
  • 11
0 votes
1 answer
32 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 ...
user avatar
  • 105
1 vote
1 answer
62 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 ...
user avatar
  • 336
1 vote
0 answers
56 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 ...
user avatar
  • 11
0 votes
0 answers
8 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, ...
user avatar
  • 209
0 votes
1 answer
40 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 ...
user avatar
  • 1
0 votes
0 answers
16 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
31 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
396 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
147 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
639 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
221 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
155 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
506 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
225 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
285 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
68 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
34 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
  • 11
0 votes
1 answer
118 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
140 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
  • 274
0 votes
1 answer
99 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
88 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
3 votes
3 answers
594 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
  • 51
0 votes
0 answers
191 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
89 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
31 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
198 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
43 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
61 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,119
0 votes
1 answer
460 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
50 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
20 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
76 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
127 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
255 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
  • 11
0 votes
0 answers
200 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
  • 11
1 vote
1 answer
338 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
726 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
453 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
251 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
224 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
462 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
2 3 4 5
13