Questions tagged [libvirt]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
42 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
0 votes
0 answers
205 views

How do I get a multi-display virgl 3D accelerated QEMU VM on a NVIDIA card in virt-manager?

I've managed to get virgl 3D acceleration running in QEMU/KVM, and now I want to see if I can get it running with multiple displays. However when I add more heads to the Video Device Display 1 is ...
ninjachicken1's user avatar
0 votes
0 answers
37 views

Is there a serial BIOS in QEMU/KVM?

I'm trying to bisect a kernel issue which causes a VM not to boot. To do that, it would be nice to get serial console output from BIOS via virsh VM console. (For example, GRUB can use UART0, but ...
KJ7LNW's user avatar
  • 351
1 vote
0 answers
102 views

I can't install libvirt Ubuntu 22.04

I'm trying to vagrant up a VM with libvirt as provider but I'm getting the following error: The provider 'libvirt' could not be found, but was requested to back the machine 'default'. Please use a ...
Vanias Kopas's user avatar
0 votes
0 answers
71 views

Volume for domain is already created. Please run 'vagrant destroy' first

I'm trying to create a vagrant vm with vagrant up and libvirt as provider. But when i'm running the command i'm getting this error = "Volume for domain is already created. Please run 'vagrant ...
Vanias Kopas's user avatar
2 votes
0 answers
131 views

systemd: intercepting poweroff, shutdown, reboot and alert us we still have KVM QEMU guest(s) running

I want to interrupt a poweroff or reboot if KVM/QEMU Guests are still running. It should work regardless whether shutdown/reboot is requested from XFCE, or from terminal. I already have a script that ...
Shawn Hughes's user avatar
0 votes
0 answers
36 views

Can't start up vagrant box with libvirt as a provider

I'm trying to start up vagrant box with libvirt as a provider but i can't. I'm getting the following error. Name .at_default of domain about to create is already taken. Please try to run vagrant up ...
Vanias Kopas's user avatar
0 votes
0 answers
115 views

How to connect to local KVM guest via remote SSH tunnel to ssh

I try to set up a connection as follows: ssh -f -N -L 5916:localhost:22 [email protected] [email protected]'s password: It asks for a password , but the connection doesn't work. nmap ...
grek's user avatar
  • 1
0 votes
1 answer
224 views

How to set different dynamic IP address for each QEMU VM?

(Warning, предупреждение, попередження, avertissement (and whatever your language is): English is not my primary language. I wrote this through a translator). I need to run about 7 virtual machines ...
wineT's user avatar
  • 1
0 votes
0 answers
760 views

No internet connection in VM with Libvirt NAT

Hello super users, I am trying to get an internet connection up and running in my KVM/QEMU VM through Libvirt's default NAT. Unfortunately, the guest (Windows 10) sees the virtual adapter as an "...
limefrog's user avatar
2 votes
0 answers
384 views

Allow a QEMU VM access to the internet, while blocking access to LAN

Host OS: Arch linux I have read the qemu and libvirt documentation regarding networking but still cannot get this to work. I am trying to set up a Linux virtual machine for general use that has access ...
nullbroker's user avatar
1 vote
0 answers
59 views

Libvirt routed network - can not connect guest VMs to external Router

I am trying to build a virtual lab to test some NAS64 capabilities with Cisco ISR Routers. The goal is to have IPv4-only and IPv6-only Guests talk to each other via a Cisco ISR 4321. The Basic idea ...
network-dummy's user avatar
0 votes
0 answers
20 views

which is the right location for libvirt in ubuntu?

Not sure why libvirt and KVM install is becoming a dirtiest of all experience for me. this is ubuntu 20.04 LTS and it is confusing like hell. does anyone know which is the 'right' and default location ...
rajeev's user avatar
  • 101
2 votes
1 answer
303 views

How to connect standalone QEMU sessions to libvirt user-session?

I would like to have qemu started machines running in user space, but during development I would like to issue commands to it using virtsh. (note, this is not because I need virtsh, but the QEMU ...
gcb's user avatar
  • 4,774
0 votes
0 answers
179 views

Apple silicon M1 vagrant plugin install vagrant-libvirt error

I am on an Apple Silicon M1. I want to use libvirt with vagrant. I got installed: ❯ brew -v ...
Pathros's user avatar
  • 101
0 votes
0 answers
89 views

Vagrant synced folder from Linux host (libvirt) to Windows guest without using rsync?

I've spent hours on this and found a lot of outdated, unmaintained or abandoned plugins from sshfs, smb, better-smb, nfsd and many others. I've read blog posts, GitHub issues, most of which are 6, 7 ...
pauby's user avatar
  • 101
0 votes
2 answers
711 views

Virtualised Windows 11 under virt-manager (QEMU/KVM) can't find USB SSD storage drive

My virtualised Windows 11 under virt-manager (QEMU / KVM ) can see the USB wireless mouse, but cannot see the USB SSD storage device. I took a check from the inside of Windows 11, in Disk Management ...
Ernest's user avatar
  • 1
1 vote
0 answers
168 views

Install libvirt-vagrant crash on MacOS ARM (Failed to build gem native extension)

I'm trying to install the plugn Vagrant-libvirt on my MacOS ARM (Monterey) but I can't install the plugin vagrant-libvirt I installed theses packages with brew before : brew install --cask vagrant &...
DamDam's user avatar
  • 11
0 votes
0 answers
147 views

Pin guest CPU cores to Host CPU cores in vagrant using a libvirt provider

I am using Vagrant with the libvirt provider. In my VM config, I would like to pin individual guest CPU cores to individual host CPU cores. As far as I know, this can be done in libvirt xml-...
cryptobeginner's user avatar
1 vote
0 answers
249 views

KVM/QEMU Extra mouse features

I have Windows 11 VM running on a Debian host. I am using virt-manager to configure and use the VM. Does anyone know how to get the mouse back/forward buttons and horizontal scroll to work when ...
Craig H's user avatar
  • 58
4 votes
0 answers
564 views

Intel GVT-g: Scrambled graphics on virt-manager

The virt-manager video is scrambled on this VM configured to use Intel's GVT-g GPU pass-through. The screen works, I can log in on it, manipulate things on the desktop. I just can't read anything. ...
Frobozz's user avatar
  • 143
0 votes
0 answers
130 views

virsh: after moving my storage pool from /var to /home, I can't create new external snapshots - "Could not open backing file"

I'm on Fedora 36, virsh 8.1.0. I ran out of space in /var/lib/libvirt/images, so I moved my images to my home folder, as per this guide https://ostechnix.com/how-to-change-kvm-libvirt-default-storage-...
jeffmakes's user avatar
0 votes
0 answers
93 views

(libvirt/libxl) MS-DOS 6.22: Switching keyboard mapping kills input under Xen but works normally in QEMU

Since there are some old DOS games that I want to play (namely Ultima Underworld I and II) I have set up an MS-DOS VM under Xen (unfortunately Xen doesn't support / accept virtual floppy drives so I ...
Robidu's user avatar
  • 211
1 vote
1 answer
322 views

The cpu die info by virt-install

I know that the cpu die info can be assigned by XML. <cpu match='exact'> <model fallback='allow'>core2duo</model> <vendor>Intel</vendor> <topology sockets='1' ...
孙海城's user avatar
  • 131
0 votes
0 answers
1k views

How to make a VM on a bridged network interface accessible from LAN?

Context I have the following network : a router (IP 192.168.2.254) which handles DHCP on 192.168.2.x network a computer1 (IP 192.168.2.1) under Linux (Debian 11) using ufw as firewall a computer2 (IP ...
berty's user avatar
  • 91
2 votes
0 answers
372 views

libvirt and hotswappable single USB port with virt-manager - almost there?

Description USB not visible on Debian guest. I cannot see anything obvious from the logs but because I do not have much virtualisation experience I assume I missed a step in the configuration, ...
AnonymousAardvark's user avatar
3 votes
1 answer
131 views

How to coerce libvirt into making systemd include p0 when enumerating network interfaces?

After importing a virtual machine exported from VirtualBox into libvirt, the network interface shows up as ens3. Would it be possible to adapt the domain configuration to make it instead appear as ...
sampi's user avatar
  • 137
0 votes
0 answers
1k views

Integrated GPU passthrough performs better *without* hardware acceleration

First, some background on the iGPU passthrough since it might be relevant: One of my VMs should be able to play both audio and video over the motherboard's physical HDMI port. In my case I'm ...
Sahbi's user avatar
  • 111
0 votes
1 answer
228 views

Libvirt conf - cdrom boot issues

I am having issues with the booting debian or ubuntu netinstall images when using libvirtd, I get the menu, but simply get this when selecting the menu optiont o install: loading /install.amd/vmlinuz ...
Eliazz's user avatar
  • 33
1 vote
1 answer
2k views

Why can’t I seem to run a VM via virt-install from the command line in macOS?

I try to run VM with emulation on MacBook 14 M1 Pro on macOS Monterey (12.3.1). I installed libvirt 8.2.0 and virt-manager 4.0.0 via brew. I used this formula for virt-manager: class VirtManager < ...
akashavkin's user avatar
0 votes
1 answer
1k views

Does IP required for bridge interface in KVM host

We have a requirement to configure bridge on SLES host and add it for KVM guest as bridge mode for public IP. In this case, Is it mandatory to have ip on the bridge interface of the SLES host
MOBIN TM's user avatar
2 votes
0 answers
700 views

FreeDOS as DOSBox replacement

Generally when the question about DOS games flares up, the general consensus is to use DOSBox (or DOSBox Staging) and it usually does the job. However, as a proof of concept I wonder if it would be ...
Phoenix's user avatar
  • 121
0 votes
1 answer
4k views

KVM-QEMU + Libvirt - CPU Pinning

I would like to ask, if it is possible to reserve cores just for particular VM's and prevent others to use them. Let me explain closer: I'd like to have 2 virtual machines to be pinned to cores 0-7 ...
Fis's user avatar
  • 126
1 vote
1 answer
4k views

kvm/virt-manager boot selection

I have a VM with two virtual disks. Each have windows OS (w10 and upgraded, same W10 to W11). I cannot separate them to 2 VMs, because I'll loose the activation on one of them. I have enabled boot ...
user63726's user avatar
  • 131
2 votes
1 answer
2k views

How to run linux VM on MacOS with Vagrant and QEMU?

Can anyone advise me how to run a headless linux (x86_64) virtual machine on a MacOS Monterey (Intel) using QEMU with HVF? So far I have installed the libvirt and qemu with homebrew, also vagrant-...
slick's user avatar
  • 21
0 votes
1 answer
528 views

Setting up kvm to use partition on the current disk not working

I am using libvirt kvm with virt manager, my purpose to have a os that can be used on bare metal and through kvm. I already have a windows partition on my disk, and I created a vm with it added as a ...
Danny Mills's user avatar
0 votes
1 answer
255 views

virt-manager: Can't make a sparc64 vm

OS: Ubuntu 20.04.3 virt-manager version: 2.2.1 Whenever I go to make a sparc64 vm I get this error message Unable to complete install: 'internal error: process exited while connecting to monitor: 2021-...
xproot's user avatar
  • 25
2 votes
0 answers
193 views

(Why) should I disable libvirt networks?

After shutting down a virtual-machine using QEMU/KVM with libvirt the libvirt default network is still active e.g. $ virsh net-list --all Name State Autostart Persistent --------...
hubbledeepfield's user avatar
5 votes
3 answers
17k views

Unable to connect to internet in Windows 10 VM using KVM/QEMU

I have been trying to set up a Windows 10 VM in my current Arch Linux (5.13.12-arch1-1) host system. I set up the VM using libvirt and KVM/QEMU using virt-manager as GUI. The NIC card has been setup ...
Sam's user avatar
  • 163
1 vote
1 answer
500 views

Why is pfSense giving me incorrect memory usage when VirtIO memory ballooning is used?

I am running pfSense as a KVM/libvirt guest. When I configure memory and currentMemory both to 2048 MB the pfSense dashboard shows ~2GB of ram and 18% utilization. If I set memory to 2048 MB and ...
Chris_F's user avatar
  • 271
0 votes
1 answer
253 views

cpu affinity reset by libvirt / cgroups

When starting my VM, the CPU core affinity of all processes on my archlinux host is reset to all cores. The same happens when the VM stops. My VM uses cpu pinning, but this didn't happen until a few ...
TimBlo's user avatar
  • 11
0 votes
0 answers
381 views

swTPM vs. Hardware TPM: Are there any security downsides?

Backstory: For a while, I've been wanting to install my next Windows PC as a VM on a Linux platform to allow me to re-image my machine when I loose a disk or Windows poops itself* (I'm thinking Clear ...
Mark's user avatar
  • 113
0 votes
0 answers
244 views

Physical SATA Disk attached to Qemu Windows 10 VM causes Boot Failure

I have a Windows 10 VM setup using Virtual Machine Manager (i.e. libvirtd) that is completely setup and works. The primary drive it uses is a qcow2 file. Now I am trying to attach a physical SATA ...
thaimin's user avatar
  • 373
4 votes
1 answer
8k views

libvirt / KVM/QEMU - Networks: What does "Open Network" do?

When setting up a network with libvirt & virt-manager, there is an option to choose "Open Network" as the "Network Mode" when forwarding traffic to a physical network. What ...
user3728501's user avatar
  • 2,486
0 votes
1 answer
4k views

Can't connect to a remote host with virt-manager

I'm trying to connect from a laptop (computer1) to a host (remote1). On computer1 I have user1 on the host I have a different user (user2). Both systems are running Debian, the remote1 system is a ...
Vorilich's user avatar
0 votes
0 answers
49 views

Is there a command to list the locks aquired by libvirt/virtlockd?

I have a setup using virtlockd's indirect locks (that use empty files with long hex strings as file names) on a shared filesystem being used by multiple cluster nodes. I can see that each node has ...
U. Windl's user avatar
  • 512
0 votes
0 answers
3k views

Virsh error, Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory

I am trying to setup KVM, but when running certain wirsh commands like: $ sudo virsh net-define br10.xml or $ sudo virsh pool-define-as debian_pool dir - - - - "/home/$USER/VM" I get this: ...
Turnix's user avatar
  • 1
1 vote
2 answers
5k views

virsh - list all mac addresses for all network interfaces of any type

I'm trying to identify one of a few dozen virtual machines by a given mac address (52:54:00:: OUI, mapping to QEMU), the following lists the dhcp table from the NAT based virtual machine adapters, ...
ThorSummoner's user avatar
  • 1,130
1 vote
1 answer
829 views

virt-manager can't connect to libvirt: "Connection does not support required domain listing APIs"

I can't connect with my local virt-manager (version 3.0.0) to the old remote libvirt setup (version 0.8.3): Unable to connect to libvirt qemu+ssh://[email protected]/system. Connection does not ...
sebix's user avatar
  • 186
5 votes
0 answers
1k views

Installing Windows virtualization features within KVM virtual machine causes early-boot guest crash

See updates below for what I've discovered about the more general nature of this problem. I have a Windows VM running OVMF firmware with VFIO passthrough for a graphics card running on an Arch Linux ...
Glen's user avatar
  • 171