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
32 views

kvm libvirt: Port Forwarding via nft not working

I use KVM to virtualize a Guest-Linux-Mint on my Host-Debian12. The Guest is obviously configured well with NAT: I can ssh into the Guest from the Host, I can reach the Internet from the Guest. But I ...
Sebastian's user avatar
0 votes
0 answers
14 views

Kickstart file: Where should liveimg --url point to?

I am trying to build a oracle linux 8 virtual machine image without manual intervention. Currently I have a kickstart file with liveimg --url=file:///images/install.img set. I've have the boot.iso on /...
nothingistrue's user avatar
0 votes
0 answers
18 views

Enable ethtool statistics in a QEMU CentOS Guest OS

I have a network interface available in a QEMU Guest OS running CentOS 7, and on the Host OS side it reports as: $ virsh domiflist --domain mydomain Interface Type Source Model MAC -...
Ken Y-N's user avatar
  • 115
0 votes
1 answer
39 views

Which piece of software touches network configuration files of a VM in a vagrant-libvirt setup with kvm/qemu?

Which element in a vagrant-libvirt-qemu/kvm-chain is responsible to actually configure the VM? Like editing the network configuration files. Wouldn't that totally depend on the details of the OS of ...
Robert Siemer's user avatar
3 votes
2 answers
636 views

Debian create persistent network bridge

I need to create a persistent network bridge for Virtual machines (libvirt) So this bridge does not need any physical ports, connections will be routed for this bridge. If I set this up manually, it ...
Kristof Rado's user avatar
0 votes
0 answers
101 views

Prevent libvirtd to use dnsmasq

I'm not using libvirtd/virsh networking at all in my KVM/QEMU setup and libvirtd give the following error when starting Jan 21 06:05:45 srvtest1 libvirtd[1494]: Unable to find 'dnsmasq' binary in $...
MrCalvin's user avatar
  • 383
1 vote
1 answer
62 views

Set Maximum cpu qemu/libvirt almalinux

I want ask to increase supported CPU core on qemu kvm. When I creating new VM I see error like below error: internal error: QEMU unexpectedly closed the monitor (vm='ID'): qemu-system-x86_64: -accel ...
Hendra Setyawan's user avatar
0 votes
0 answers
152 views

Libvirt shared storage pool

I have what I hope is a quick question. I'm running: CENTOS 9 KVM/QEMU Pacemaker, DLM, lvmlockd, fence_scsi I have a simple two node KVM cluster where I've set up a LVM logical volume on a attached ...
JDW52's user avatar
  • 1
0 votes
0 answers
87 views

Can qcow2 overlay get committed back into raw backing file?

I am trying to design a system utilizing the btrfs filesystem and libvirt. btrfs has copy-on-write (COW) already, it's very easy to do snapshots and it's very efficient to transfer the snapshot to a ...
Wang's user avatar
  • 322
0 votes
0 answers
49 views

is there a way to hot plug all functions of a pcie device instead of just function 0?

It is often that we have pcie devices for example GPUs. That has multiple functions. I can statically assign all the functions to a domain by editing the XML. However, I would like to be about detach/...
Wang's user avatar
  • 322
0 votes
0 answers
50 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
100 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 ...
Rama's user avatar
  • 57
0 votes
1 answer
155 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
413 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
2 votes
0 answers
797 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
3 votes
0 answers
649 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
238 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
345 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
2 answers
181 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
36 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
204 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
54 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
210 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
185 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
169 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
918 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
558 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
  • 141
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
160 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
114 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
1 vote
1 answer
641 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
1 vote
1 answer
432 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, ...
amkgi's user avatar
  • 323
1 vote
0 answers
98 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
  • 456
1 vote
0 answers
188 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
  • 347
1 vote
1 answer
389 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
  • 210
1 vote
0 answers
312 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
142 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
1 answer
900 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,549
1 vote
0 answers
168 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
559 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
1 vote
0 answers
107 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
874 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
3k 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
288 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
1 answer
417 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
1 answer
838 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
  • 322
0 votes
1 answer
3k 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
  • 249
1 vote
0 answers
104 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
  • 322
0 votes
1 answer
810 views

How do I find architectures supported by an emulator for use when defining a libvirt domain?

When creating a libvirt guest using XML, how do I determine what 'arch' values are valid for <domain><os><type arch=?>? The problem is, for example, arm is invalid and must be armv7l ...
infinitesteps's user avatar
0 votes
1 answer
608 views

XML for Qemu `-nic user,model=virtio-net-pci` Network

How do I specify a network interface in libvirt XML that is equivalent to the qemu-system-* argument -nic user,model=virtio-net-pci. I have a variety of qemu machines (without KVM) that happily boot ...
infinitesteps's user avatar

1
2 3 4 5
13