Questions tagged [libvirt]

daemon and clients to manage virtual machines and containers

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

How to pass through both the graphic cards that I have on two different virtual machines and one only PC

I need some help to achieve my goal. What I want to do is to create two different qemu-kvm virtual machines on Ubuntu 20.04 assigning to each of them some of the resources of one only PC. I want to ...
1
vote
0answers
12 views

Why is .qcow2 image larger (+1920000 bytes) after resising the image via `qemu-img resize --shrink`?

I created 20 GiB .qcow2 image for my virtual machine. Next I installed Ubuntu 20.04 on it. The system uses ~8 GiB, so I decided to shrink the image to 10 GiB using the following command: # qemu-img ...
0
votes
1answer
14 views

How to force libvirt to use the host dnsmasq service?

Libvirt has one defined network, which uses dnsmasq as DHCP/DNS server. But this dnsmasq is a separate instance (config in /var/lib/libvirt/dnsmasq/default.conf), which creates additional dnsmasq ...
0
votes
2answers
17 views

How to connect to libvirt VMs by name, instead of IP address

I want to connect to my libvirt virtual machines by name. I used to be able to do that - is it just not possible any more? I don't really want to muck around with extra manual configuration for each ...
1
vote
0answers
19 views

Port forwarding with KVM

In building a recent project, I started using libvirt (virt-install) for quick virtualization. I have been using the default virtual network, and need to forward a specific port from each virtual ...
4
votes
1answer
59 views

What's the purpose of kvm, libvirt and libvirt-qemu groups in linux

I wanted to play a little bit with KVM on my Debian, and I installed the needed tools. The three groups showed up in the /etc/group file: kvm , libvirt and libvirt-qemu . What's the purpose of each of ...
1
vote
1answer
14 views

Would it be possible to share a libvirt guests network connection with the host?

If you were to (for example) passthrough the hosts ethernet and wifi to a guest, would it be possible to share the guests network connection with the host in some way?
0
votes
0answers
25 views

How to get SPICE guest agent work in TTY?

Just installed a plain Debian without any Window Manager as guest OS from virt-manager with spice-vdagent package provided. systemctl status spice-vdagentd says it's active (running), but guest does ...
0
votes
0answers
12 views

fail to install packages into image via virt-customize?

I've just got this issue recently, before that I can install zsh, nfs-common to bionic image successfully. I tried to downgrade libvirt to 5.9 but no luck. I download image from here libvirt 6.4.0-1 / ...
0
votes
0answers
64 views

Shared folder between QEMU Windows guest and Linux host with virtio-fs

In QEMU 5.0 and kernel 5.4. Virtio-FS(D) was introduced for better access to shared folder on Linux host. It seems the guest access the folder using FUSE-a-like technology. I found a guide for Linux ...
1
vote
1answer
45 views

KVM/QEMU hosts best-practice distro selection (and package)

If I want to run a modern production virtualizer I would expect to turn to RHEL/CentOS as RHEL is the main maintainer for most of the virtualizer "components". But the newest stable version ...
0
votes
3answers
176 views

qemu/KVM/libvirt usermode networking: VM as a non-root user, what do I need for root-less networking?

I have run several VMs in KVM/qemu with libvirt, and somehow most of the time networking works. Now, networking has stopped working when VMs are run as a non-root user. I have found little helpful ...
0
votes
1answer
28 views

How to create partitions on qcow2 image without reserving disk size

I want to install archlinux in UEFI mode so, I created image from virt-manager with size of 20GB. Then after booting into VM, I created 2 partition with fdisk named /dev/vda1 and /dev/vda2 with 512MB ...
0
votes
1answer
84 views

libvirt: how to pass qemu command-line args now libvirt schemas is 404 [duplicate]

This is the only way I have found to pass arguments to qemu: <domain type='qemu' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> Unfortunately the url http://libvirt.org/schemas/...
1
vote
0answers
17 views

How to run multiple instances of virt-manager?

I set up X-Forwarding from my SSH client on Windows with the goal to manage my virtual machines using the virt-manager GUI. I don't think there is a way to do so natively from Windows. Now I noticed ...
0
votes
0answers
17 views

Veth and Cisco nx-os

Ok, so I've been toying with veth links for my Cisco routers and they have been working fine. However when you throw in a virtual switch like the Cisco nx-osv or vios l2 image, using veth interfaces ...
0
votes
0answers
28 views

My Windows 10 guest OS emulated with qemu / kvm is not able to boot itself anymore?

Houston,I have a problem trying to boot again Windows 10 guest emulated with qemu and kvm on Linux ubuntu. This problem arised when I have installed Windows server 2019 on the 2 ssd disk (named disk1 ...
0
votes
1answer
92 views

Convert libvirt xml into qemu command line

I created a VM using virt-manager and I can edit that xml using virsh edit, but I would like to ask you if there is way of converting libvirt xml into qemu command line. I've found that someone else ...
1
vote
1answer
23 views

How to bufferize a PTS?

I'm building a system using LXC containers trough libvirt, and I'm trying to record/forward the container's stdout. When creating a new domain, a pseudo-TTY is created in /dev/pts/* and I'm able to ...
0
votes
1answer
644 views

QEMU and CentOS 8: Where is /usr/bin/qemu-system-x86_64 and the qemu-system-x86 package?

I am trying to create and run a virtual machine on a headless server running CentOS 8 (x86-64). After installing the necessary tools like libvirt and kvm it seems qemu is missing its main executable, ...
0
votes
0answers
10 views

Disabled Interface Types for Virtual Network Interface Settings

I have a question about virtual network connections types when using the web interface console on port 9090 (https://:9090). This is on a CentOS 8 machine. Why are certain items disabled in the ...
0
votes
0answers
22 views

Using virsh to connect to non-root lxc container

I have a few non-privileged containers created with lxc. For instance if I have lxc-ls it outputs: centos8 debian10-eit I would want to connect/manage them using virsh, however it does ...
0
votes
1answer
59 views

How can I backup and restore VM with the same vol file size when using virt-manager (qemu-kvm)?

I am using qemu-kvm and virt-manager for running virtual machines. There is a snapshot UI in virt-manager to create snapshots. But after creating some snapshots and reverting back to some snapshots, I ...
0
votes
3answers
136 views

Virt-install error: can't load ignition file

I'm trying to install Fedora CoreOS using virt-install, as described here: https://docs.fedoraproject.org/en-US/fedora-coreos/getting-started/ The exact command I'm running: virt-install --connect ...
0
votes
1answer
19 views

How do you install libvirt 4.0 on ubuntu16.04?

In general, how would one go about doing something like that? I need the libvirt version that comes with ubuntu 18.04. I am not ready to upgrade my whole OS. Is there a way to just install this piece ...
0
votes
1answer
181 views

Understanding how libvirt snapshots are stored

At first I thought it would be stored in /var/lib/libvirt/images/ but as I created snapshots for the centos7 domain, nothing changed in this directory: drwx--x--x 2 root root 4096 Feb ...
0
votes
0answers
20 views

Openvswitch and libvirt..root or nothing?

I usually use the Linux bridge with libvirt. I never use root, I only add my user to libvirt-qemu(or qemu) user, and kvm group. I can run Virtual machines without problems. If I use openvswitch bridge,...
0
votes
0answers
48 views

virt-viewer unable to make work mouse back and forth buttons

I'm unable to make work my mouse back and forth button with virt-viewer on kvm. Have a debian virtual-machine and debian virt-viewer. My versions are Hardware host: qemu-kvm 1:3.1+dfsg-8+deb10u4 ...
0
votes
1answer
76 views

Disable sound when using Spice with KVM/libvirt

I see a lot of questions across SE about getting sound to work with KVM guests, whether using Spice or Pulseaudio. However, I would like the opposite. I would like no sound whatsoever to be passed ...
0
votes
1answer
70 views

Libvirtd Fails to Start

I am using wifi, but libvirtd is trying to use eth0: gentoo /var/log # service libvirtd start * Caching service dependencies ... [ ok ] * Bringing up interface eth0 * config_eth0 not specified; ...
1
vote
1answer
69 views

virsh “live” vs “current” domain

From the virsh manpage, under attach-interface: If --live is specified, affect a running domain.  If --config is specified, affect the next startup of a persistent domain.  If --current is ...
1
vote
1answer
74 views

virt-install: send guest command from a host script

I can redirect virt-install input/output to console with the --console option: virt-install \ --name centos \ --ram 1024 \ --os-type linux \ --os-variant centos7.0 \ --graphics none \ --...
0
votes
0answers
32 views

virt-v2v convert from ova to qcow2 gives error

I was tring to convert an ova file to qcow2 and I found this blog post. I followed instructions and ran these commands: mkdir /var/lib/libvirt/Appliances virsh pool-define-as Appliances --type dir \ ...
0
votes
0answers
35 views

Make guests communicate with each other via hostname with Libvirt and dnsmasq

I'm using Ansible to provision the VMs, which works fine. Dnsmasq handles the DHCP so they get an IP automatically. However, there is no DNS configured so the VMs cannot communicate with each other by ...
1
vote
1answer
292 views

Virtual Machine manager Connection Failures

I want to apologize before I begin-- I know that this problem has been asked about before, and I've found some of the threads. Unfortunately, I'm extremely new to Linux, and I'm getting lost trying to ...
4
votes
2answers
2k views

Why are my network connections being rejected?

I have a CentOS 8 guest running on a Fedora 31 host. The guest is attached to a bridge network, virbr0, and has address 192.168.122.217. I can log into the guest via ssh at that address. If I start a ...
0
votes
0answers
123 views

virsh attach-disk only work with name vd* instead of sd*

I have an qcow2 image and want to attach another disk to it. # create new qcow2 disk qemu-img create -f qcow2 vm-disk2 500G Then I attach it as sdb: virsh attach-disk myvm /var/lib/libvirt/images/...
0
votes
0answers
77 views

Unable to configure VF 0 of PF 'ens5f1' because the PF is not online.. Need to understand these errors

After restarting the hypervisor, I am not able to start my VMs, and getting following error that is causing the VM to not start successfully: --- messages error causing SBC not to start --- Nov 3 18:...
0
votes
1answer
140 views

Cannot guest ip addresses of guests

I use kvm and libvirt and cannot get the ip address from the host: The list from each of the guests is empty: virsh domifaddr guest1 Name MAC address Protocol Address -----------...
1
vote
0answers
259 views

QEMU: cannot run commands with non-root user

when I try to run any qemu-system-x86_64 command, even --help, nothing happens (I check ps and there is nothing running in the background). As soon as I run the command with sudo, everything works. My ...
3
votes
3answers
3k views

virt-manager: KVM is not available

I'm running Arch Linux and have been running into trouble trying to use QEMU/KVM on virt-manager, and a similar root problem is likely to address my issues while using the similar gnome-boxes. ...
2
votes
1answer
127 views

How to set additional hosts in default.addnhosts

I have a virtual machine for which libvirtd starts a dnsmasq server with the additional hosts config file /var/lib/libvirt/dnsmasq/default.addnhosts. The file seems to be generated, because whenever I ...
1
vote
1answer
143 views

How to listen on same port, separate address using spice from libvirt?

Background info On the host I have a virtual bridge setup, and have two static IPs configured: 10.0.3.1/16 and 10.0.3.2/16. The host is Ubuntu 18.04 LTS, and is up-to-date at the time of this post. ...
3
votes
1answer
412 views

libvirt kvm cpu/memory stats collection

We are running virtual machines in kvm and i am trying to collect metrics and send it to influxdb + grafana for graphing. I can see CPU stats using virsh but its in time in second spend, how do i ...
0
votes
1answer
120 views

KVM, qemu, libvirt no DHCP on bridge

After I restart firewall on the host machine, I no longer get DHCP on guests until I restart libvirtd.service I am providing two network captures, one before restarting FW on the host (dhcp_ok.pcap) ...
0
votes
0answers
44 views

Transfer files between host and guest using virtio-serial

I have a Windows 10 guest with very limited network access (limited by Check-Point VPN firewall) which I access through the spice viewer. But I need to transfer files to/from the guest. I tried to ...
0
votes
0answers
247 views

Add libvirt configured dnsmasq to NetworkManager owned dnsmasq as forwarders for specific domains without adding conf files to NetworkManager?

I'm wondering if there is a way to have libvirt push virtual network DNS information into the NetworkManager instance of dnsmasq. As always I'm working with RHEL 7 (7.6) Background: My team works ...
0
votes
0answers
280 views

qemu shared disk

I try to create a disk that is shared between the host and VMs. For that I did following: qemu-img create -f raw src.img 15G sudo mount -o loop ./src.img /media/cdrom sudo losetup -l sudo mkfs -txfs ...
1
vote
1answer
2k views

Win10 guests high KVM host CPU usage

Some time ago it was noticed that Win10 1803 WM's would give high CPU usage on the host e.g. 25%, even though client CPU usage 0%. It was solved by having these settings in your virt XML file: <...
1
vote
1answer
3k views

libvirt: error : unable to set AppArmor profile

I am following this tutorial on how to GPU passthrough, however when I get to about 6:43 mark, where you press the Begin Installation button, I get this following error: Unable to complete install: '...

1
2 3 4 5