Questions tagged [libvirt]

libvirt is an API and toolkit for developing applications which manage virtual machine hypervisors, the virtual machines running under them, and virtual machine storage.

libvirt is an API and toolkit for developing applications which manage virtual machine hypervisors, the virtual machines running under them, and virtual machine storage.

libvirt runs on Linux, Solaris and Windows.

libvirt supports the following hypervisors: KVM/QEMU, Hyper-V, VMware, Xen, VirtualBox, OpenVZ, LXC, User Mode Linux, and others.

libvirt suports the following storage: local file images, raw disk storage, LVM, FibreChannel, iSCSI, NFS.

610 questions
2
votes
1 answer

libvirt NAT configuration - DHCP does not work

I want to use libvirt network NAT configuration. libvirt says https://wiki.libvirt.org/page/Virtual_network_%22default%22_has_not_been_started: "1) If you're not actually using dnsmasq on the physical machine to serve DHCP for the physical network,…
achille
  • 21
  • 3
1
vote
1 answer

problems with bridge-networking libvirt on centos 8

I am running a centos 8 as virt-host with libvirt an kvm/qemu. Networking is set to bridge-mode with virbr0. Suddenly and over-night this stops working: The clients don't connect anymore, and if I try to connect the network in…
wolfgang6444
  • 11
  • 1
  • 2
1
vote
1 answer

libvirt & openvswitch VLAN tagging on the fly

I'm working on a project using libvirt with qemu and openvswitch on Debian 10. I would like to be able to modify the configuration of a network card of a domain in bash with the update-device command of virsh. For that I took an example from this…
Nicolas
  • 21
  • 5
1
vote
2 answers

Libvirt and macvtap issue on Arch Linux

I'm using Arch Linux (up to date) with QEMU-KVM, libvirt and virt-manager as a front. I have several VMs, but only one running at a time so far. The VM I'm trying to get to work is on Debian 10, but I also have a Kali and a CentOS 7 with the same…
SalutAToi
  • 13
  • 3
1
vote
1 answer

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 actually work? I created the vtap's using KVM Manager…
Bren
  • 11
  • 2
1
vote
3 answers

Can't port forward with iptables KVM NAT

I have a debian 10 host and I am running a debian 10 guest using NAT. I am using libvirt/KVM/QEMU host public ip: x.x.x.x guest ip: 192.168.122.99 I am trying to forward port 22221 to port 22 in the guest for me to access the guest via ssh from the…
1
vote
1 answer

Possible to create libvirt network as non-root?

My end goal is to be able to use libvirt.uri = 'qemu:///session' with Vagrant, which means creating machines as non-root, but in order to do that I need to have a default libvirt network as non-root, where virsh net-list as non-root is empty. As…
Sandra
  • 9,973
  • 37
  • 104
  • 160
1
vote
1 answer

How to build a virtual machine in an encrypted container with virsh

I would like to use the volume encryption mechanism of libvirt. However, I was unable to find information about how to use this feature when running virt-install. How do I pass the related options? Edit 1 Based on the answer by Cole Robinson, I…
DoRe
  • 41
  • 5
1
vote
0 answers

libvirt "default" network not adding correct IP address ranges to bridge "virbr0"

I'm running libvirt on ArchLinux using its default network with manually created nftables rules. I noticed that libvirt's DHCP server wasn't assigning IP addresses to VMs: journalctl -u libvirtd Sep 06 17:46:19 laptop dnsmasq-dhcp[8083]: no address…
1
vote
1 answer

encrypted qemu virtual machines do not start after upgrade to buster: permission denied

I'm running an encrypted qemu virtual machine on a debian host with libvirt. To setup the machine, I took the following steps: Place the encryption key in a file $secretfile placed in /etc/libvirt/secret Create the image: qemu-img create --object …
DoRe
  • 41
  • 5
1
vote
2 answers

KVM/QEMU: Windows Guest (WindowsServer) add new drive with attach disk SSD

I would like to add a new drive to my Windows Guest (Windows Server 2016). Let's say D: I can not use network share(SAMBA,etc...). It is why I am trying to add new storage device. add in myVM.xml /usr/bin/kvm
akira2x3x
  • 15
  • 1
  • 5
1
vote
0 answers

9p / virtfs : new files in shared folder don't belong to the expected user and group

For the last two days I tried to share a folder between the host and a guest virtual machine, both running the latest Debian Stretch. The folder I wish to share is owned by the myuser, group mygroup on the host hard drive (/srv/sharedfolder). Since…
chuugar
  • 11
  • 1
1
vote
3 answers

Can't install additional VM with virt-install

Installing an additional VM with the virt-install command results in the following error: ERROR internal error: process exited while connecting to monitor: 2019-02-20T08:21:45.534416Z qemu-system-x86_64: -drive…
cworner1
  • 113
  • 5
1
vote
1 answer

Assign ethernet alias to KVM guest

I have a pool of IP addresses and a single ethernet cable. I have set aliases: auto enp2s0:0 iface enp2s0:0 inet static address x.x.x.x netmask x.x.x.x I want to dedicate some of the aliases to a libvirt kvm guest, so that the ip is set from…
Laurent
  • 286
  • 2
  • 11
1
vote
1 answer

Limiting access to one libvirt domain via polkit (older .pksa format)

I have a hypervisor running libvirt on a Ubuntu 18.04 system. I need to configure access so that user 'joe' can only manage one domain. Recently, policykit moved from the .pksa configuration files onto .rules. However, Ubuntu 18.04 ships with an…
lorenzog
  • 2,719
  • 1
  • 18
  • 24