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
2answers
34 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
23 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
1answer
81 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 ...
0
votes
0answers
16 views

How to setup GFS2 fencing for virtual machines with multiple hosts?

Scenario: We have 3 hosts with 3 guests, one guest (VM) on each. The guests provide service redundancy/load-balancing for an application and require shared disk (GFS2). They run in different hosts ...
1
vote
0answers
27 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
24 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: ...
0
votes
0answers
15 views

virt-sparsify: error: libguestfs error: security: cached appliance /tmp is writable by group or other (mode 40777)

I want to virt-sparsify --compress a file, but when I try to do it it says I need more space in /tmp/ I tried to create a directory on a NTFS partition where I have alot of free space and make it tmp ...
0
votes
1answer
67 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/...
0
votes
0answers
44 views

Create a virtual network interface to provide an ip via dhcp to multiple KVMs, forwarding all traffic though to a remote VPN server?

Sorry if this has been asked before, but I've been researching this for days and still can't work out the best approach. I have 2 Ubuntu 18.04 Servers in separate physical locations both running a ...
0
votes
0answers
9 views

How to configure and use qemu-guest-agent in linux-02.qcow?

My main aim is to get the IP address of guest VM whose size is as small as possible, from Host machine, in a libvirt test environment. Is it possible to configure and use qemu-guest-agent in linux-02....
1
vote
1answer
67 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
35 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
0answers
31 views

Kvm Guest Vm Network Unreachable

in my guest vm i can easily update and download as i want but if ping it says Request timed out after that i installed httpd (apache) in centos 7 port 80 unreachable in trace C:\Users\problem>...
0
votes
1answer
18 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 ...
0
votes
0answers
28 views

Libvirt interface of type user does not get assigned IP address

I'm trying to define a VM for libvirt with an XML file. I have an interface of type=user defined in the XML file. According to the libvirt documentation defining this interface should automatically ...
2
votes
1answer
152 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
35 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
105 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
0answers
22 views

How to manage KVM guest machines, running on a linux host from a remote windows machine? [duplicate]

How to get the functionality provided by virt-manager on a windows machine? Ideally a native solution (without using to cygwin).
0
votes
1answer
273 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
94 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
40 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
88 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
44 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
0answers
110 views

No internet access virbr0

I do not have internet access from the 172.16.0.0/24 network, I can reach the gateway (192.168.122.1) through the host PC-1 but there is no internet connection. The IOU1 router is connected to the ...
0
votes
2answers
915 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
39 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
67 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-...
0
votes
1answer
635 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
44 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
46 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
68 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
26 views

Use a different public subnet on KVM virtual machines

The host at my datacenter owns a single IP that is bound to eth0: (Example values) auto eth0 iface eth0 inet static address 192.88.99.111 netmask 255.255.255.0 gateway 192.88.99.1 In addition ...
0
votes
0answers
31 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
34 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 ...
7
votes
2answers
2k 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
186 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
138 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 ...
0
votes
0answers
107 views

Assign Host LAN IP from Guest DHCP and get internet working

I am running sophos XG in a VM using kvm libvirt. I have a 4 port NIC (I350-t4) and 1 motherboard NIC. One of the 4 port NIC is PCI passthrough as the WAN interface (connected to modem). The other 3 ...
1
vote
2answers
48 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
967 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
42 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
103 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 ...
0
votes
0answers
203 views

redirect all web trafic from network through proxy server to a specific URL

I have a network env, which has outgoing traffic using proxy only. I want to create some sort of "unproxying GW" for my specific internal network. I am okey to use any Linux based solution for this, ...
2
votes
0answers
403 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
517 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
309 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
71 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 ...
-2
votes
1answer
88 views

Live migration without stopping source VM after migration

Is there any possible way to perform live migration using KVM/QEMU/libvirt without stopping source VM after migration? I want to make full consistent backup of VM under KVM hypervisor without stopping ...
0
votes
1answer
176 views

KVM: guest with FQDN DNS resolution / no bridge

I have a (Hetzner) server with a public IP of eg. 123.123.123.123, and an additional IP of eg. 456.456.456.456. I want to serve some private webspace apps on 123.123.123.123, including a hidden ...