Questions tagged [libvirt]
toolkit and library for managing virtual machines and containers
144
questions
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 ...
3
votes
1
answer
836
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 ...
0
votes
1
answer
45
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 ...
20
votes
6
answers
30k
views
No Auto Resize with SPICE and virt-manager
I've setup a VM that works great except for the auto resize functionality which seems to be inconsistent. I've got it randomly working a few times but it also randomly stops working. It's currently ...
3
votes
1
answer
6k
views
"ACPI\QEMU0001" unknown ACPI device after Windows 2008 install with libvirt
After installing Windows 2008 in a libvirt virtual environment (command below for reference), I'm stuck with an "Unknown device" in Device Manager. The Hardware Ids show ACPI\QEMU0001.
I tried using ...
0
votes
0
answers
20
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 ...
0
votes
0
answers
50
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 ...
26
votes
1
answer
17k
views
What is the difference and relationship between kvm, virt-manager, qemu and libvirt?
I investigated this topic and here are my conclusions (But I still have questions. And please correct me if I made any mistake in my conclusions):
VMWare:
VMWare developed its VM Hypervisor SW in 1999,...
1
vote
1
answer
58
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 ...
2
votes
0
answers
441
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 ...
0
votes
1
answer
42
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 ...
1
vote
2
answers
2k
views
Creating a libvirt URI to hop to another host
I have a Qemu-Host running libvirtd which is properly configured (h0). I can only access this host via another machine (c0), which only acts as a gateway. Now I need to know if it is possible to get a ...
0
votes
0
answers
69
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.
┌─────────────────┐ ...
2
votes
1
answer
3k
views
How to(Libvirt) attach floppy image device to guest VM?
Say, I have floppy.vfd image.
How should I fill my xml file in order to attach floppy image?
I have template like
<disk type='*' device='*'>
<device name='*' type='*'/>
<...
0
votes
1
answer
156
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 ...
0
votes
0
answers
28
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 ...
0
votes
0
answers
89
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 ...
4
votes
0
answers
619
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 ...
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 ...
0
votes
0
answers
298
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 ...
1
vote
2
answers
5k
views
Vagrant error with libvirt
I'm trying to set up vagrant for the first time in my life while following a tutorial. I'm using the VVCW box because I want to work with WordPress with it.
So I downloaded the zip file and unzip it ...
1
vote
0
answers
200
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 ...
1
vote
0
answers
153
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 ...
2
votes
0
answers
358
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 ...
0
votes
2
answers
1k
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 ...
0
votes
0
answers
76
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 ...
0
votes
0
answers
319
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 ...
0
votes
1
answer
645
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 ...
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 "...
2
votes
1
answer
2k
views
virt-manager on Mac OS X can't connect to remote libvirtd
I have installed virt-manager 1.3.2 on Mac OS X 10.11.5 via homebrew.
When I try to connect to my remote libvirtd daemon, running on a different machine at 192.168.1.70, I cannot connect.
However, ...
2
votes
0
answers
696
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 ...
1
vote
0
answers
137
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 ...
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-...
4
votes
0
answers
884
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.
...
1
vote
0
answers
220
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 &...
1
vote
1
answer
464
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' ...
0
votes
0
answers
140
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 ...
1
vote
3
answers
3k
views
Where are network config files supposed to be saved for libvirt?
I'm having a heck of a time with libvirt. I deleted the default NAT network, and I'm trying to add a Bridge for VMs. According to libvirt's wiki and Network XML format | Using an existing host bridge, ...
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 ...
2
votes
0
answers
648
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, ...
3
votes
1
answer
188
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 ...
0
votes
1
answer
615
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 ...
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 ...
0
votes
1
answer
319
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 ...
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 < ...
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
2
votes
0
answers
992
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 ...
0
votes
1
answer
5k
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 ...
1
vote
1
answer
6k
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 ...
32
votes
3
answers
72k
views
libvirt: "Failed to initialize a valid firewall backend"
I'm trying to set up a virtual NAT network device without DHCP for libvirt on an Arch Linux host.
What I have tried:
# virsh net-define network.xml
Network default defined from network.xml
[...