Skip to main content

Questions tagged [libvirt]

toolkit and library for managing virtual machines and containers

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

QEMU-KVM VM freezing the host machine when using Nvidia gpu PCI passthrough

I have intel integrated graphics and nvidia 1650 mobile graphics card. I am loading my xorg server only using the integrated GPU. The NVIDIA GPU loads which nvidia driver on boot. I have libvirt hooks ...
Sai Chaithanya's user avatar
0 votes
0 answers
8 views

Libvirt/QEMU using real drive, showing virtual data in VM

I'm using a real drive as my windows 11 VM drive in libvirt using QEMU. This is working fine, however, when I open task manager, the drive shows as "QEMU HARDDISK", and shows up as an HDD (...
Twiston's user avatar
  • 11
1 vote
0 answers
28 views

Arch AMD GPU Single GPU passthrough detatch script results in black screen

I've succeeded in setting up my windows 11 VM for single gpu passthrough, however, when stopping the vm, my screen remains black. I'm using arch linux. start script: (working) set -x source "/etc/...
Twiston's user avatar
  • 11
0 votes
0 answers
27 views

How to set up IPv6 NAT in libvirt open forwarding mode?

libvirt can do IPv6 NAT by itself in NAT forwarding mode if you give it the ipv6='yes' attribute. But that adds a bunch of firewall rules and I don't want it mucking up my already existing firewall ...
Nik Tedig's user avatar
  • 121
0 votes
0 answers
67 views

How can I make virt-install boot from a keydrive/usbstick image?

virt-install 4.1.0 on nixos 23.11 I am trying to install from a memory stick image with the following options: opt=( --name pfsense --ram=4096 --vcpus=4 --os-...
aktivb's user avatar
  • 196
1 vote
0 answers
54 views

How to automatically assign proper IP addresses in libvirt network

Trying to make a virtual network that contains a single VM. Packets are routed through the host with <forward mode="route" />. I've read a bunch of stuff online and AFAIK it comes down ...
Nik Tedig's user avatar
  • 121
0 votes
0 answers
73 views

Use firewalld to block some docker Application

i have a virtual machine (libvirt) running docker and some application on it. Some applications should not accessed from the host system but they need to be accessed from the docker host. So i tried ...
naseweis's user avatar
0 votes
0 answers
25 views

Bridged network with ips not in the same subnet

My problem: I aim to configure multiple guest machines managed by libvirt to connect to a single bridge. These guests must utilize IP addresses provided by my hosting provider, which may not belong to ...
Юрий Баринов's user avatar
0 votes
0 answers
20 views

SSHFS perms with Qemu/Libvirtd

So, what I'm doing may seem stupid, but.. I have a NAS, of which I'm SSHFSing onto my main user, "User" (1000:1000)'s /home/user/NAS. From there, I'm trying to run Virt-Manager as sudo, and ...
Novum Gain's user avatar
0 votes
1 answer
160 views

How to set up port forwarding to guest VM using iptables

I am trying to do a proof of concept for port forwarding to a libvirt guest server. The following are the variables I use for generalization: port=500 # Arbitrary port, for proof of ...
nc404's user avatar
  • 115
0 votes
0 answers
39 views

How to restrict user to only certain domains with qemu:///session libvirt wtihout polkit?

How can I restrict users to starting user mode vms to specific domains? I don't want to use polkit for this, but I'm not sure it can even be used for delegating access to users running executables ...
ift-436t's user avatar
0 votes
0 answers
64 views

How to configure user mode networking via xml in virt-install

I want to specify options for user mode networking such as port forwarding, smb share, dhcp, etc... with virt-install. I don't see a way to configure this via command line except for the default basic ...
ift-436t's user avatar
1 vote
1 answer
125 views

VM UEFI firmware does not recognize SCSI devices

I am creating a virtual machine using virt-manager. I've set the firmware to UEFI, and changed both the virtual disk and CD drive to use VirtIO SCSI, instead of the default virtio-blk disk and SATA CD ...
mcendu's user avatar
  • 523
0 votes
1 answer
68 views

libvirt: Conflicting DNS updates from dnsmasq (DHCP) when having multiple interfaces

For my guests I provide three networks, vtunnel0, vlocal0 and a bridge to the physical NIC of the server: <interface type='network'> <mac address='30:00:7b:6b:bb:10'/> <source ...
Tintenfisch's user avatar
0 votes
0 answers
84 views

Libvirt guests on isolated network cannot ping each other

I am trying to create a network with following topology. Because I need a custom Gateway and the network is small, I do not want to use DHCP on the isolated network. ┌─────────────────┐ ...
Ben Little's user avatar
0 votes
1 answer
231 views

libvirt/qemu network guest dhclient 10.0.2.15 instead of 192.168.122.2

On the redhat host, virbr0 is up and libvirt's network is configured as nat for 192.168.122.2-254 (and recently added rule specifically to assign 192.168.122.2). but dhclient with the ubuntu VM gets ...
Will's user avatar
  • 101
0 votes
0 answers
34 views

same ip range and subnet in 2 different bridges

I am trying to create 2 different virtual networks in the same ip range (not using NAT) in virt manager.Doesn't work with the gui or editing the xml of the new virtual network . Is the best way to ...
ISG's user avatar
  • 1
0 votes
0 answers
95 views

How to use looking glass (or hardware display port) with SRIOV

I have Libvirt VM (qemu/kvm) (running windows 11) with 2 Display adapters. One is the default qxl. The second is SRIOV Using Intel UHD 770. The intel graphic drive is installed and working. The only ...
user63726's user avatar
  • 141
4 votes
0 answers
728 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
2 votes
0 answers
3k 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
367 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
  • 383
1 vote
0 answers
213 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
1 vote
0 answers
171 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
423 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
352 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
767 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
1 vote
0 answers
2k 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
827 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
177 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
3 votes
1 answer
1k 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,971
0 votes
2 answers
2k 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
240 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
2 votes
0 answers
499 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
  • 68
4 votes
0 answers
973 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
153 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
  • 265
1 vote
1 answer
498 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
2k 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
  • 93
2 votes
0 answers
727 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
207 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
  • 157
1 vote
0 answers
2k 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
  • 121
0 votes
1 answer
350 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
3k 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 < ...
amkgi's user avatar
  • 161
0 votes
1 answer
2k 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
1k 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
5k 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
7k 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
  • 141
3 votes
1 answer
3k 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
  • 31
0 votes
1 answer
662 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
2 answers
402 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
  • 35
2 votes
0 answers
279 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 --------...
bird-dancer's user avatar