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 ...
0 votes
1 answer
78 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 ...
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 ...
1 vote
1 answer
60 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 ...
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 ...
1 vote
3 answers
15k views

Afer upgrading qemu, "unsupported machine type 'pc-i440fx-3.1"

I recently installed the latest version (3.1.0) of QEMU, and I have been having trouble getting virt-manager to work correctly, presumably because it isn't connected to the right dependencies. Some of ...
1 vote
1 answer
4k views

NATing through a vpn with libvirt

I installed a server with libvirt, and I've created a test VM. When I use the default network for it's interface, it gets a private IP and the NATing seems to work fine. I installed OpenVPN, so I have ...
3 votes
1 answer
4k views

Migrating from libvirt + iptables to libvirt + nftables

I'm about to migrate a Debian Stretch host using qemu-kvm to Debian Buster. I've seen people complaining on the Internet about issues due to nftables becoming default in place of iptables and libvirt ...
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 ...
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 ...
1 vote
1 answer
102 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-...
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=...
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" ...
2 votes
1 answer
6k views

OpenStack instances power off by itself

Already asked this over on ask.openstack.org but I figured it would get more views here too. I am running OpenStack Mitaka on a 5 node cluster, 1 controller/network node and 4 compute nodes. I am able ...
1 vote
1 answer
4k views

virsh attach-device for serial device

I would like to add a serial device (console) to a guest via the virsh attach-device command. I have a console.xml file containing: <serial type="pty"> <target port="0"/> </serial>...
0 votes
1 answer
886 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. ...
6 votes
2 answers
15k views

Access libvirt+KVM virtual machines with DNS

I have an Ubuntu Trusty machine running KVM + Libvirt to manage small virtual machines, and using the standard NetworkManager to connect to regular networks. I want to be able to access the virtual ...
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 ...
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 ...
0 votes
3 answers
6k views

libvirt cannot create default network

I can't start the default network for libvirt. I get the error in journalctl: Jun 06 15:22:43 jenia libvirtd[889326]: Unable to create bridge virbr0: Package not installed I did installed the ...
0 votes
1 answer
3k views

iptables port forward not working with libvirtd VM

For some reason, I'm unable to connect to my server inside a VM from the outside world, but I can definitely connect to my server from the hypervisor. The server application runs on ports 27500 and ...
45 votes
6 answers
98k views

Forwarding ports to guests in libvirt / KVM

How can I forward ports on a server running libvirt/KVM to specified ports on VM's, when using NAT? For example, the host has a public IP of 1.2.3.4. I want to forward port 80 to 10.0.0.1 and port 22 ...
9 votes
4 answers
10k views

How do I prevent libvirt from adding iptables rules for guest NAT networks?

Similar to this old request on BugZilla for Fedora 8, I'm hoping something has changed since then or someone knows another way. I want to manage the iptables rules by hand—the one-size-fits-all ...
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 ...
4 votes
1 answer
12k views

qemu process memory usage greater than guest memory usage

I have a physical machine with 24 GB RAM hosting a few VMs using libvirt-qemu. When creating VMs, I assign a lot of memory and no swap, so that the total of assigned memory can be greater than the ...
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 ...
1 vote
0 answers
94 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 ...
1 vote
0 answers
128 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....
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 ...
2 votes
0 answers
99 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. ...
5 votes
5 answers
26k views

Why I can't save network changes with virsh?

I am trying to add fixed address to specific virtual host, therefor I closed virtual machine and used sudo virsh net-edit somenet. After adding line <host mac='52:54:00:26:61:22' name='virt....
0 votes
0 answers
360 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 ...
2 votes
2 answers
368 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 ...
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  --------------...
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 ...
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/...
2 votes
3 answers
6k views

Do not start guest after virt-install

I like to set up a new guest but do not want to start it immediately. I use virt-install with these options: virt-install \ --connect qemu:///system \ --import \ --virt-type kvm \ --...
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 ...
2 votes
3 answers
4k views

Create iPXE UEFI bootable image for QEMU/Libvirt with custom next-server and filename

I can create a VM with libvirt/qemu to boot in UEFI mode. I know that it does iPXE by default, but I want to create/modify a iPXE image in order to override filename and next-server properties. How ...
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 ...
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, ...
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 ...
2 votes
2 answers
628 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 ...
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 = ...
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 ...
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='...
1 vote
1 answer
4k 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 ...
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 ...
1 vote
0 answers
162 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 ...
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 ...

1
2 3 4 5
14