Questions tagged [libvirt]
The libvirt tag has no usage guidance.
124
questions
1
vote
0
answers
20
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
41
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
0
answers
83
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
0
answers
12
views
Forbid LibVirt to pmsuspend
I've VMs on KVM/LibVirt. Some of them hangs after libvirt makes pmsuspend and then I pmwakeup them, and I need to force the reboot of the VM.
Is there any way to make LibVirt never to pmsuspend domain?...
0
votes
1
answer
24
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
270
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
188
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
0
votes
0
answers
113
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
549
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 ...
0
votes
2
answers
421
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 ...
0
votes
1
answer
429
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-...
0
votes
1
answer
63
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 ...
0
votes
0
answers
28
views
Virtual Machine: web pages are opened only after several refreshes of a page
I installed Windows 10 Virtual Machine using libvirt (Virtual Machine Manager, QEMU/KVM). It works but when I try to open a web page inside the VM, browsers say they can't reach it and I need to do ...
0
votes
0
answers
47
views
How to resize a virtual machine disk memory using virt-manager?
I'm using GUI of virt-manager (Virtual Machine Manager). I have a .qcow2 image that's currently 40 GB. How do I resize it to for example 60 GB? Is it possible to do or I need to use CLI virt-resize?
0
votes
0
answers
236
views
Linux virt-install: can't install Windows 10 virtual machine: domain installation does not appear to have been successful
I run the following command:
sudo virt-install \
--name=Windows10 \
--os-type=windows \
--network network=default \
--disk path=/var/lib/libvirt/images/guest.img,size=50 \
--cdrom=/home/...
0
votes
0
answers
18
views
Prevent LAN access for VM in libvirt NAT mode
In a scenario where a laptop is plugged into various networks via Ethernet or WLAN, depending on where it is, I need to run a VM on libvirt that needs to be allowed internet access but isolated ...
0
votes
0
answers
31
views
How do I stop autoinstall from repeating with with Ubuntu server on libvirt/qemu?
I have a problem trying to get Ubuntu server (21.10) to install using libvirt & qemu. The problem is that the VM will reboot and attempt to run autoinstall again.
The VM XML definition is below ...
0
votes
1
answer
82
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-...
0
votes
0
answers
55
views
virsh create domain failed due to empty list
I'm having problems to create domains and finally virtual machines via virsh.
service libvirtd status: active and running without any warnings
virsh list --all: empty list
Id Name State
--------...
1
vote
0
answers
52
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
--------...
2
votes
3
answers
6k
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 ...
1
vote
1
answer
103
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 ...
0
votes
1
answer
86
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 ...
0
votes
0
answers
61
views
Can ProxMox VE or Foreman be installed on top of an existing KVM/libvirt instance?
We use qemu-kvm version 1.5.3 / libvirt version 4.5.0 on CentOS 7 to run VMs. We're using Vagrant or virsh to manage VMs and we'd like to install an easier to use management tool on top of the ...
0
votes
0
answers
181
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 ...
0
votes
0
answers
132
views
In libvirt network filters (nwfilter), what does the 'all' protocol type indicate?
I'm trying to wrap my head around Libvirt's network filters and I've encountered an issue where a rule specifying a protocol type of 'all' will block DHCP responses from the server, while changing ...
0
votes
0
answers
102
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 ...
3
votes
1
answer
2k
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 ...
0
votes
1
answer
911
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 ...
0
votes
0
answers
16
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 ...
0
votes
0
answers
1k
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:
...
0
votes
2
answers
2k
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, ...
0
votes
1
answer
259
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://user@example.com/system.
Connection does not ...
5
votes
0
answers
751
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 ...
0
votes
1
answer
284
views
Unable to use virt-sysprep on libvirt/qemu virtual machine on Ubuntu 20.04
I am trying to run virt-sysprep on a qemu virtual machine on Ubuntu 20.04. I tried the following commands: virt-sysprep --format=qcow2 -a /var/lib/libvirt/images/Debian10-1.qcow2 and virt-sysprep -d ...
0
votes
1
answer
401
views
Can I use Aero Glass with QXL (virt-manager)?
I've made a Windows 7 VM with QXL as the display adapter. I installed the guest additions and the display adapter was properly showing up in device manager. I've tried changing the QXL settings to ...
2
votes
1
answer
523
views
Problems using libvirt to create a Win98 Virtual Machine
Recently, I encountered a need to run some Windows 98 software. I decided to use this project to learn about virtual machines (I have had no previous experience). I tried to run virtualbox on my ...
1
vote
1
answer
59
views
Remove libvirt with docker running on same machine
I am running SUSE Linux Enterprise 12. For security reasons, I want to uninstall libvirt since kvm/quemu VMs are no longer needed on the machine. At the same time, we are running docker and I am not ...
0
votes
1
answer
214
views
Libvirt KVM networking, how to make guest accessible from outside with public IP?
Good afternoon, I've ordered dedicated server CentOS 7 from ISP. Also got 10 public IP addresses.
Have following situation:
Dedicated server IP is:149.XX.XXX.29/24
Default gateway: 149.XX.XXX.1
...
0
votes
1
answer
90
views
How to pass SSE4 to Libvirt KVM
The box has X5570 cpus.
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc ...
0
votes
0
answers
5k
views
QEMu / KVM: error: Unable to add bridge tap0 port vnet0: Operation not supported
In order to fully understand how the networking part works inside QEMU/KVM software virtualization environment, I decided to try to manually set up a the networking part, more or less simulating what ...
0
votes
1
answer
28
views
Browser on host is started when starting it in a VM
Here is my setup:
My host system runs Ubuntu 18.04
I have a VM (also running 18.04) using libvirt/KVM
I connect to the VM using ssh -X 1.2.3.4
The weird thing is, if I run firefox in that SSH shell, ...
0
votes
1
answer
4k
views
GPU passthrough no output
I followed this guide to setup a vm with pci passthrough.
My setup:
MSI Z170 Gaming M7
i7-6700K
GTX1080[Host]
RX580[Guest]
Host OS Manjaro KDE on 5.4
Guest OS Win10
I can confirm that the GPU ...
1
vote
1
answer
4k
views
Virtual disk extremely slow for KVM guests
I have a relatively small server with a quad core CPU (Intel i5-7400) and 16 GB RAM (DDR4 though), running a couple of virtualised guests using libvirt. I'm not using any other intermediate layer such ...
1
vote
0
answers
139
views
libvirt and usb passthrou without reset
I am trying to connect my android phone to a virtual windows machine.
The issue is that whenever I connect the phone it is in "charging" mode (this is an android security feature)
I then click on ...
1
vote
1
answer
556
views
QEMU/KVM/libvirt macvtap VEPA not working - ARP request not forward
Hi I've been struggling to get guest networking working when using a macvtap in VEPA mode between two VMs on a host. I've spent hours (days) googling with no joy. Does this network configuration ...
0
votes
1
answer
156
views
How to run Live backup of Virttual Machines - Libvirt-Qemu
im Trying to run this script
https://gogs.tausys.de/shogun/libvirt-imagebackup/raw/master/backup-vms.sh
When i run it, it starts like this.
Wed, 16 Oct 2019 12:44:59 +0200 Backup KVM online guest '...
15
votes
1
answer
9k
views
What is the difference and relationship between kvm, virt-manager, qemu and libvirt?
I investigated this topic and here are my conlusions (but still I have questions, and please correct me if I made any mistake in my conlusion):
VMWare:
VMWare developed its VM Hypervisor SW in 1999, ...
0
votes
1
answer
138
views
IPTables KVM NAT port forward goes to wrong VM
Good day,
I have 2 VMs running with libvirt.
Machine 1 : PostgreSQL on port 5432
Machine 2 : Attempting to use psql to connect to a PostgreSQL server on the internet.
I forwarded port 5432 so that ...
2
votes
1
answer
4k
views
Making my KVM VMs accessible from the network
I'm setting up a new home server with borderline-paranoid security as the goal.
As such, everything with open ports that can go in a VM, gets its own VM. I'm using Ubuntu Server as the host, because ...