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.

Filter by
Sorted by
Tagged with
0
votes
1answer
205 views

postfix server on VM - mail relay

I've setup a mail server according to this setup: https://thomas-leister.de/en/mailserver-debian-stretch/ The documentation itself looks quite good to me - is well explained and seems to work... ...
2
votes
1answer
654 views

Create iPXE UEFI bootable image for QEMU/Libvirt with custom next-server and filename

I can create a VM with libvirt/qemu to boot in UEFI mode. I know that it does iPXE by default, but I want to create/modify a iPXE image in order to override filename and next-server properties. How ...
0
votes
1answer
159 views

virt-sysprep doesn't change hostname

I use KVM-based virtualization on my fedora 30 OS to run 3 virtual machines, runnung Ubuntu 18.04 LTS with a mini Hadoop cluster for test purposes. The storage for virtual machines in configured to ...
0
votes
0answers
39 views

virt-customize: can't install packge

I have an ubuntu 18.04 LTS qcow2 image, when I try to install package: virt-customize -a bionic-server-cloudimg-amd64.img --install zsh debug file: https://pastebin.com/asuBv2RH I saw ip address ...
0
votes
1answer
162 views

customize qcow2 ubuntu image fail

I download qcow2 ubuntu 18.04 img from here: https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img I want to add some packages into qcow2 image before use it as a base img ...
1
vote
3answers
401 views

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 ...
0
votes
1answer
224 views

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, ...
0
votes
0answers
30 views

Why libvirt bhyve guests does not reboot?

I have libvirt with bhyve driver on FreeBSD 12. I have FreeBSD guests and Linux guests with UEFI. Both are not able to reboot, just stops when a reboot command issued inside the guest.
1
vote
1answer
152 views

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? ...
0
votes
1answer
53 views

libvirt hot unplug cpu

I'm currently working with libvirt. after i reduce the number of vcpu cores with below command, the operation will be completed successfully. i should also mention that my current and max vcpus is 4, ...
1
vote
0answers
242 views

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 ...
0
votes
1answer
22 views

virsh: networkGetBridgeName error

I'm trying to configure foreman. So far I connected foreman to one of our KVM hosts. Specifically, this is a libvirt and we are using virsh for managing it. When I try to create VM in foreman I'm ...
4
votes
0answers
508 views

How to set Rx Queue = N in linux / in Qemu / KVM?

I have configured 8 multiple queues on my CentOS VM box (running on KVM). <interface type='direct' trustGuestRxFilters='yes'> <source dev='ens113f0' mode='passthrough'/> <model ...
0
votes
2answers
54 views

libvirt Port Forwarding? (Wiki Guide Non-functional)

I have setup a hook at /etc/libvirt/hooks/qemu with permissions of 755 owned by 0:0 with the following contents: #!/bin/bash if [ "${1}" = "virtualmachine" ]; then GUEST_IP=192.168.122.2 ...
0
votes
0answers
137 views

KVM - Modify from IDE to VirtIO

I imported a CentOS 7 guest from XenServer to KVM. After importing it into KVM the disk bus in use is the IDE. I need to change the disk bus from IDE to VirtIO because VirtIO has better performance. ...
0
votes
2answers
758 views

How do I boot the Debian 10 image with qemu/kvm?

I'm attempting to boot the openstack image of Debian 10 using qemu and encountering an error detecting the harddrive, the end of the boot up sequence is showing: [ 0.989085] Run /init as init ...
2
votes
1answer
213 views

How to assign VM hostname by <host> definition in libvirt virtual network interface

Fedora 30 Workstation Host, Fedora 30 Server (netinstall) Guests. I am not an expert in all this super-crazy Linux networking stuff and reading a ton of materials there and there. So I have libvirt ...
0
votes
0answers
99 views

Preloading shared library with libVirt

I am trying to load two shared libraries while running Qemu using libvirt. To preload the shared libraries I have added an environment variable in the $domain.xml file with the following command: ...
1
vote
1answer
280 views

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/...
2
votes
1answer
1k views

How to set keyboard layout with a VNC client to KVM (libvirt)

I have both kvm guests and hosts installed on a Debian 9.9 with kde on an AMD Machine qemu-kvm 1:2.8+dfsg-6+deb9u7 amd64 When connecting with a virt-viewer, my keyboard ...
0
votes
1answer
431 views

libvirt: create a bridged network using openvswitch with dhcp enabled

I am trying to use libvirt + dsnmasq + openvswitch to create a bridged network with dhcp enabled. I created a libvirt network with the following XML: <network connections='1'> <name>ovs-...
0
votes
1answer
34 views

It is possible to be informed that libvirt is attempting to shut down a guest?

Is it possible through some hook or callback mechanism for my script or executable running on the host to learn that libvirt is about to or very recently has sent a command for a guest to shut itself ...
2
votes
1answer
560 views

libvirt-lxc container on Debian buster with user namespacing not always startable

I have a bunch of libvirt-lxc containers whose configuration I migrated from Debian jessie to a fresh Debian buster host. I re-created the rootfs’ for the containers using lxc-create -t debian -- --...
0
votes
1answer
69 views

Does libvirt's “shares” element take into account the number of vCPUs?

According to the libvirt documentation: A VM configured with value 2048 will get twice as much CPU time as a VM configured with value 1024. I have also heard it said that a VM with 2 vCPUs would ...
3
votes
1answer
223 views

Libvirt pool cannot see or create rbd clones

While trying to get a cloned disk running from my OS snapshot I run into the problem that Libvirt cannot see existing images cloned from a snapshot. Created via: $ rbd -p vmdisks clone vmdisks/...
0
votes
1answer
1k views

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 ...
0
votes
0answers
293 views

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 ...
0
votes
1answer
55 views

KVM Host halts for several seconds. How can I monitor and find the cause using libvirtd/virsh?

I have a KVM Host with 4 vms running 24/7h. All VMs runs smoothly but at a given time, all 4 VMs stops to ping and after 10 minutes, it continues to run. I knew that they are not pinging because I ...
0
votes
1answer
279 views

(libvirt + oVirt) Migrating libvirt server to oVirt

I have two centOS 7 servers using the same network. One with libvirt, with some machines connected on it, and another one with oVIRT 4.2. I'd like to export the libvirt machines to the oVirst 4.2 ...
-1
votes
1answer
55 views

KVM guest cant fetch packages thus it's reachable from ssh

I am a bit lost regarding my kvm setup. I rented a root server at hetzner.de and now wanted to setup virtualization using libvirt & kvm. I created a bridge br0 which now holds the static server ...
0
votes
2answers
3k views

Afer upgrading qemu, “unsupported machine type 'pc-i440fx-3.1”

I recently installed the latest version (3.1.0) of QEMU, and I have been having trouble getting virt-manager to work correctly, presumably because it isn't connected to the right dependencies. Some of ...
1
vote
0answers
110 views

Libvirt lxc-enter-namespace with mapped uid/gid

I'm trying to implement LXC with mapped uid/gid (user namespace) under Libvirt on CentOS 7 with full separate root mounted. Libvirt config snippet <idmap> <uid start='0' target='100000'...
0
votes
1answer
167 views

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-...
1
vote
1answer
3k views

qemu process memory usage greater than guest memory usage

I have a physical machine with 24 GB RAM hosting a few VMs using libvirt-qemu. When creating VMs, I assign a lot of memory and no swap, so that the total of assigned memory can be greater than the ...
0
votes
0answers
78 views

Libvirt: Port-forward from guest to guest

TL;DR: I want to access port 443 at the host IP address from within a VM on the same host, and have my request forwarded to a different VM on the same host. I am using Libvirt to manage some VMs ...
0
votes
1answer
85 views

Expired DHCP lease on restored VM snapshot interfering with active gRPC connection?

I am using gRPC to communicate between Java (running on the host) and Python (running on my Guest VMs). My software sets up some VMs at startup with libvirt. I specify my network with a DHCP range ...
0
votes
1answer
99 views

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 ...
0
votes
0answers
73 views

Configuring virtual network bridging through virsh

When working with libvirt to create virtual machines, I had to make guest system work in the local network as host machine does. As it was work task, I've just googled for quick solution and set it up,...
0
votes
1answer
69 views

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 ...
8
votes
3answers
6k views

Networking between KVM VM and docker container on same host

On a Debian-Stretch host (connected to physical LAN) I have a new docker installation (v18.09) with one database container (port mapped to the host) and I run KVM/libvirt with some Debian-Stretch VMs. ...
0
votes
0answers
287 views

virt-install choice of graphics affects whether or not installed guest will boot after install

Please let me know if I am doing something incorrectly or if this is a bug. Host OS: Debian 9.6 Stretch amd64 Package: ii libvirt-daemon 3.0.0-4+deb9u3 ...
0
votes
1answer
198 views

Poor network performance on host machine using libvirtd / Qemu / KVM

We've got two Fedora 27 servers that we use to host several virtual servers using libvirtd / Qemu / KVM that are experiencing the same issue. When freshly booted, network performance is great, pings ...
1
vote
2answers
56 views

libvirtd bridged networking, what iface is right to set IP?

Accodring to the documentation assigning of the IP addr it not mandatory for the BR interfaces. I have 2 netwok configuration set on libvirtd hadware node. Possibility one: 1. eth0 172.16.33.55/...
2
votes
1answer
2k views

macvtap libvirt guests have no network connectivity after server migration

I have two dedicated servers hosted by OVH, an SP-128 and an MG-512. The hardware is similar (they are both Supermicro-based builds) but the SP-128 has a Xeon E5 Ivy Bridge and 1 Gbps Ethernet; the MG-...
0
votes
1answer
245 views

Is it possible to make OpenSSL work with gnutls?

I have libvirt, one client and one server. Libvirt uses gnutls implementation of tls. I want to use mitmproxy and put in the middle between client and remote server. But mitmproxy uses different ...
0
votes
0answers
336 views

Mount a disk image as mmc flash in libvirt

I'm trying to run the OS of my x64 NAS in a VM with kvm and libvirt. I made an image of the internal flash with dd. The image has a few partitions, starting with an EFI partition. virt-install -n ...
2
votes
0answers
1k views

XP KVM stuck at “Booting from Hard Disk”

Just to see if it could be done (and if so, move other physical XP machines to VM environments), I took the hard drive out of a decommissioned laptop, captured a WIM of it, and applied it to a QCOW2 ...
1
vote
0answers
928 views

KVM guest gets into paused state shortly after being started

I have two very similar x86_64 machines running the same kernel (4.7.8), and the same version of libvirt. The only difference between the two machines is the amount of memory they have, machine A has ...
0
votes
1answer
574 views

Missing KVM snapshots in virt-manager

I need to resize an image and receive an error when using qemu-img the resize is not supported because snapshots exist. Sure enough, even though virt-manager does not show any snapshots, I see the ...
0
votes
1answer
122 views

Include cloudinit config to new VM

On my KVM hypervisor I would like to add a new VM with CentOS-7-x86_64-GenericCloud.qcow2 disk but with my custom cloudinit config to make sure that the new VM will start up with all users, correct ...

1
2
3 4 5
11