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
16 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
29 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
43 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
22 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
2 votes
0 answers
47 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
0 votes
0 answers
103 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
119 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
44 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
32 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
16 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
153 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
  • 11
0 votes
0 answers
85 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
69 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
  • 386
0 votes
0 answers
142 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
79 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
131 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
  • 190
1 vote
0 answers
74 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
79 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
19 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,600
0 votes
0 answers
63 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,600
0 votes
1 answer
176 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,530
0 votes
0 answers
67 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
111 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
97 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
135 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
247 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
55 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
153 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
356 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
728 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
144 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
55 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
157 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
20 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
116 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
296 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
887 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
  • 229
1 vote
0 answers
63 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
0 votes
1 answer
236 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
266 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
2 votes
2 answers
412 views

libvirt/qemu VM freezes when migrating between specific hosts

I have several servers (different ages) running on Ubuntu 22.04 with QEMU and libvirt. When migrating VMs between some of these servers, the VM immediately freezes on the target system. Tested guests ...
Max's user avatar
  • 31
0 votes
1 answer
129 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
1 answer
473 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
145 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
1 vote
1 answer
474 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
921 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
121 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
  • 29
0 votes
0 answers
115 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 ...
vego's user avatar
  • 123
0 votes
0 answers
90 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 ==...
Fefux's user avatar
  • 101

1
2 3 4 5
13