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
0 answers
15 views

Cannot share an NFS directory with a Fedora host on Vagrant/libvirt

I am running a Fedora machine with Vagrant over libvirt: # -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the ...
gkaf's user avatar
  • 1
2 votes
1 answer
37 views

Libvirtd TCP port 16514 queries

I have a server that is running libvirtd. I just checked libvirtd ports and see below output. I wondered Why port 16514 PID is always 1 and why tcp6 is handling ipv4 with multi connections. Can anyone ...
user5016380's user avatar
0 votes
0 answers
33 views

systemd: How to wait for a network device provided dynamicly at runtime?

We have a server (hypervisor) hosting many virtual machines controlled by libvirt. libvirt provides a virtual network for communication between the virtual machines and the hypervisor. This virtual ...
user7440925's user avatar
0 votes
1 answer
81 views

Create a VM from snapshot use /dev/VDA instead /dev/SDA

0 We have an OpenStack instance configured with multiple images, including CentOS, Redhat, and Ubuntu. When creating a new instance, the root partition attaches as SCSI without any issues. All images ...
F.Rosado's user avatar
  • 101
0 votes
0 answers
115 views

AppArmor issues with Libvirt

I have a fresh Ubuntu Server 22.04.3 and Debian 12.1.0 installed and updated. Along with Cockpit and Cockpit virtual machines on both tests machines. I am getting the following errors and warning when ...
Johannes's user avatar
1 vote
0 answers
147 views

Apparmor and libvirt - warnings and errors

I have a fresh Debian 12 installed and updated. Along with Cockpit and Cockpit virtual machines. I am getting the following errors and warning when looking at the log section in Cockpit: Failed to ...
Clicker85's user avatar
1 vote
1 answer
62 views

windows 2019 unattended install on kvm via libvirt can't find licence error

I'm trying to install windows server 2019 with autounattend.xml configuration on kvm via libvirt. Installation fail on dialog with sign: "Can't find microsoft software license terms" Despite ...
npc3257's user avatar
  • 11
1 vote
1 answer
105 views

Libvirt - UDP not working between host and VM

Host: 192.168.1.144/24 VMs(routed) network: 192.168.122.0/24 I have VMs connected to libvirt's routed network. <network> <name>routed-122</name> <uuid>86ca64a6-7fea-4cf8-...
chupnik's user avatar
  • 165
0 votes
0 answers
83 views

Converting QEMU Solaris VM to libvirt

I have a QEMU VM running Solaris 2.6 on a SPARCstation-5 machine. I currently start it with the following command: qemu-system-sparc \ -name sunvm \ -machine SS-5 \ -m 256 \ -drive file=sunvm.img,bus=...
MP64's user avatar
  • 1
0 votes
2 answers
87 views

How to access service from virtual machine of another machine in local network?

I have two Ubuntu machines A and B in my local network. Computer B has an openmediavault instance set up via KVM. Computer B has the IP address 192.168.177.58, the openmediavault instance provides a ...
user7468395's user avatar
0 votes
0 answers
22 views

Cannot establish an IPv4 connection from my bridge to an external node on the same network (IPv6 works tho)

I am currently trying to build a little lab for testing purposes: I have a Linux Host-System (currently Arch-Based)deploying 2 vms, abridge with an assigned NIC and a CISCO Router that is directly ...
network-dummy's user avatar
0 votes
0 answers
81 views

Networking KVM virtual machines to VLAN interface on host

I have a VLAN interface (enp98s0f0.4000) set up on my KVM host, which is a Hetzner dedicated server. The VLAN is set up to route through a Hetzner vSwitch, and I can ping out to Cloud instances ...
emberdex's user avatar
  • 111
0 votes
0 answers
34 views

network does not work for VM after a while, only resolves after changing MAC

I have installed pfSense as a KVM guest in a Debian 11 host using libvirt. The host has two interfaces. One is attached to the VM using macVLAN driver, and serves as pfSense's WAN interface. The other ...
Mustafa Mohiuodin's user avatar
1 vote
0 answers
96 views

Machine type issue when migrating KVM VMs with live snapshots from Debian to Ubuntu

I'm trying to migrate around 40 KVM VMs (containing a few hundred live snapshots mostly used for automated testing on Windows) from a Ubuntu 22 server to a Debian 11 server. The machine type of most ...
John Salazar's user avatar
0 votes
0 answers
65 views

How to make KVM guest configs persistent across reboots/shutdown

I create a KVM Guest VM (virsh define a.xml, virsh start a.xml). Guest uses pre-configured/pre-made QCOW2 disk image, which represents a virtual router (Arista vEOS). Host is Redhat 9.1. Guest is ...
Mo Fatty's user avatar
  • 121
2 votes
0 answers
102 views

Connect (create ethernet link) between two VMs using their assigned SR-IOV Virtual Functions (VFs)

I have two KVM virtual machines created on RHEL9. I partitioned an SR-IOV-capable Physical NIC such that I was able to get Virtual NICs (Virtual Functions) from it. For each VM, I assigned it a VF. ...
Mo Fatty's user avatar
  • 121
0 votes
0 answers
364 views

How do I route ALL VM (qemu-kvm, libvirt) traffic through proxy running in Host?

Host: Ubuntu 20.04 Proxy Client and Server: V2ray Proxy Client connecting to Server and is available in the host on 127.0.0.110808 for Socks and 127.0.0.1:10809 for http. VMs: Multiple vms running ...
Malvo's user avatar
  • 1
2 votes
2 answers
369 views

Strange issue with bridges on Ubuntu server and libvirt; looks like MAC address conflict

We have been using bridges and libvirt VMs for a long time (starting with Ubuntu 16.04). Recently, we have encountered a problem with bridges (on VLAns). We have not yet identified what conditions ...
rwfbc's user avatar
  • 131
0 votes
0 answers
14 views

Can you use virsh to reset vm id sequence? [duplicate]

Question in regards to "Id" for running VMs, using virsh running local Qemu VMs. command virsh list will bring up a list of the current running VMs defined, eg,  Id Name State  --------------...
account404's user avatar
0 votes
0 answers
110 views

qemu set different dynamic ip address for each machine

I need to run about 7 virtual machines via qemu at the same time. The problem is that they all have the same public IP address as the host. Is there any way to give them different ip addresses? host ...
wineT's user avatar
  • 1
1 vote
1 answer
76 views

new VM's won't complete after I moved /var/lib/libvirt/images to a larger disc

I have been building VM's on my fedora 37 server for a while, when I suddenly started running out of disc space. So, I looked in the filesystem and saw that the new VM's had their discs built at /var/...
Jason Michael's user avatar
0 votes
0 answers
30 views

On system startup, libvirtd fails with "Network is already in use" error

I'm configuring a new system to host VMs with libvirtd (AlmaLinux 8.9, 4.18.0-425.13.1.el8; libvirt 8.0.0-10.2) and I'm seeing a weird behavior when I reboot the system. On boot, libvirtd fails to ...
Thomas J. Girsch's user avatar
1 vote
1 answer
354 views

How to use more then 2GB of ram when using running a nested BIOS VM using KVM

I have a Linux host running Debian 11 and on that host, I have a Ubuntu 22.04 VM. Inside that VM I want to run a Windows 10 VM using nested virtualization. The ubuntu VM is booted using EFI and nested ...
nezu's user avatar
  • 111
0 votes
0 answers
167 views

Occasional packet loss between bridge interfaces

I have two virtualization servers based on libvirt and KVM. And sometimes I see packages get lost on one particular virtual machine. After restarting the virtualization host this problem is solved, ...
akashavkin's user avatar
1 vote
0 answers
84 views

Virtualized Centos 7 on Ubuntu host: very slow I/O

I run a Centos 7 virtualized in Ubuntu 20.04. There is a huge I/O performance drop in the VM compared to the host. The host has plenty of RAM. Host: * MB/s = 1,000,000 bytes/s * KB = 1000 bytes, KiB = ...
Laurent's user avatar
  • 416
0 votes
0 answers
212 views

How to create a shared Disk with the image stored on Host in KVM?

I am currently trying to setup a disk, using the raw img format on the host, which is then shared between multiple guest VMs (which are running Alpine Linux), using the libvirt / KVM virtualization ...
Apoorv Pal's user avatar
1 vote
0 answers
120 views

Backing encrypted drive

Creating a backing image for the master image that is encrypted using LUKS: qemu-img create -f qcow2 -b dev.qcow2 -F qcow2 -o encrypt.format=luks,encrypt.key-secret=dev --object secret,id=dev,data='...
Jonas's user avatar
  • 337
1 vote
1 answer
228 views

Forcing static IP on libvirt

I've seen this question and others online, yet my problem persists. I have a gentoo host with the following interface: virbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet ...
vesperto's user avatar
  • 200
1 vote
0 answers
163 views

libvirt virsh not using a predefined target while attaching interface

I am trying to automate the process of creating a Guest VM. I am using uvt-kvm to create the VM. I am also taking a network type as a parameter. This can be either nat or macvtap. Now in the script I ...
akarX_123's user avatar
1 vote
0 answers
106 views

How do I force Virt-Manager to use the hosts' llvmpipe renderer so the guests get to use 3D acceleration?

I'm using virt-manager and set "3D Acceleration" as per what was recommended, but I'm getting this error: qemu_gl_create_compile_shader: compile vertex error 0:2(10): error: GLSL ES 3.00 is ...
X.LINK's user avatar
  • 111
0 votes
0 answers
33 views

Is it possible to use the IO priority from a KVM guest on the host?

When I use KVM with libvirt and virtio block devices, does it propagate IO priority in some way? If the guest starts a process with ioidle priority, I want it to run only if the host is also in ioidle ...
allo's user avatar
  • 1,663
0 votes
0 answers
138 views

How to combine the firewalls for libvirt and ufw correctly

I am trying to use libvirt and ufw at the same host, but both of them insert a lot of firewall rules and own tables and they don't always play nice togethter. The last problem I had was that ufw ...
allo's user avatar
  • 1,663
0 votes
1 answer
401 views

libvirt live storage migration but keep vm on same host

Is libvirt capable of doing a live storage migration but keep the VM on the same host? I have two NFS Network filesystem pools on one host. I would like to live migrate the underlying qcow2 disk files ...
eKKiM's user avatar
  • 1,540
0 votes
0 answers
118 views

how to enable virsh console a ubuntu domain

Environment description: host: libvirtd (libvirt) 6.0.0 os version: 20.04.2 LTS (Focal Fossa) guest: os version: 20.04.2 LTS (Focal Fossa) Problem description: I tried to follow https://wiki.libvirt....
xiaojueguan's user avatar
0 votes
0 answers
198 views

Libvirt IPv6 routing to nated network

I'm having trouble getting IPv6 to work for my KVM/qemu guests. I have two bridges setup, one routed (external, non libvirt) bridge for public dedicated ipv4 + ipv6 which works for both protocols. ...
Andrew's user avatar
  • 21
1 vote
0 answers
129 views

Assign outlet IP for a libvirt VM using routed network

My host network interface has got two IPs. Currently, I'm running my VMs in a routed network. Host's network interface is a member of public zone in firewalld, with both forward and masquerade enabled....
Yu Ling's user avatar
  • 13
0 votes
1 answer
262 views

Ansible Findall capture groups and list

I think I'm confused with Python and Ansible findall. Can I use capture groups in Ansible? For example, How can I capture group 1 and group 2 then reverse the position in the resulting list? For ...
Billy K's user avatar
  • 121
0 votes
0 answers
347 views

rhel 9, firewalld(nftables backend), libvirt and custom bridges, masquerading not working

I have a remote server with one network interface, which has a public IP address (enp5s0). I've created an isolated network as follows: <network> <name>LAN-bridge</name> <uuid&...
Daniel's user avatar
  • 31
1 vote
0 answers
76 views

RTSP Stream Cannot Be Accessed from KVM Guest using NAT - iptables forwarding

How should iptables on the host be configured to allow rtsp:// traffic from a KVM guest that initiated the connection via a NAT network interface? It doesn't appear to be a simple mapping. I don't ...
OwN's user avatar
  • 187
0 votes
0 answers
183 views

KVM/QEMU Virtualization on server with multiple nics to WAN - full split?

long time reader, first time poster...it's been over a decade, crazy. Today, I've set up a left over server from my old job in a local data center for a friend of mine and myself. As by my contract, ...
Trezc0's user avatar
  • 1
0 votes
0 answers
572 views

libvirt/KVM 10Gb-capable network interface without virtio

Is there a way to set up a 10Gb-capable virtual ethernet port in a guest VM (RHEL) without using virtio ? I have to put some kind of RHEL7 in a guest VM but the kernel used in there has UDP ...
Touisteur EmporteUneVache's user avatar
2 votes
1 answer
2k views

Understanding Current/Maximum allocation of VirtManager (LibVirt)

When I first saw the UI in VirtManager, I thought "Maximum" is the amount of ram that appears to the guest, and "Current" is the reserved RAM when the VM starts. I thought that ...
Damn Vegetables's user avatar
0 votes
1 answer
206 views

Forward virbr0 (VM) traffic through IPSec tunnel

I have a virbr0 interface, created by libvirt with inet 10.1.2.1 netmask 255.255.255.0 broadcast 10.1.2.255 There's an active IPSec tunnel with leftsubnet=10.1.2.0/24 rightsubnet=192.168.160.0/20 ...
Jochen's user avatar
  • 137
0 votes
0 answers
87 views

needrestart doesn't restart libvirtd.service

Running needrestart repeatedly gives me this line: Restarting services... systemctl restart libvirtd.service Restarting the service with systemctl does not solve this problem. Not even killing /usr/...
LetMeSOThat4U's user avatar
0 votes
1 answer
229 views

Linux Livirt/KVM: Place all VMs in cpuset by default without reconfiguration

I'm trying to set up a system whereby I have some process on a set of hosts that are in one (shielded) cpuset, while everything else (i.e. all the VMs) are in another. The goal here is to have a ...
Joshua Boniface's user avatar
0 votes
0 answers
34 views

Faulted PCI device causes system to hang, unable to reboot

I run a hypervisor with multiple PCI devices that get passed into the hosted Virtual Machines. I recently encountered an issue with one of the physical cards which caused it to stop responding, and ...
Matt Clark's user avatar
0 votes
0 answers
205 views

Why libvirt ignore secure boot flag?

In libvirt version 6.0.0 I have following configuration <type arch="x86_64" machine="pc-q35-4.2">hvm</type> <loader readonly="yes" secure="no" ...
Wang's user avatar
  • 292
0 votes
1 answer
512 views

how can I boot from usb device in libvirt qemu machine?

I pass-through a usb device like this: <hostdev mode="subsystem" type="usb" managed="yes"> <source> <vendor id="0x067b"/> <...
Wang's user avatar
  • 292
0 votes
1 answer
2k views

libvirt with qemu guest, bridged networking does not work

I am trying to get a VM operational and working so my router can forward a high port to its SSH, allowing someone on the Internet to connect to the VM. I am familiar with how to make that part of it ...
elyograg's user avatar
  • 239
1 vote
0 answers
79 views

How can I blockpull an inactive domain?

For active domain I can do virsh blockpull --domain ... --path ... --base ... I would expect the blockpull should also work with inactive domain since it should be even easier (there is no write ...
Wang's user avatar
  • 292

1
2 3 4 5
14