Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
18 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
2answers
29 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 ...
0
votes
1answer
17 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
0answers
5 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
21 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 ...
3
votes
3answers
3k views

Cpu pinning strategy for kvm / centos7

I am migrating from Xen to Kvm. In Xen I was able to easily pin host cpus to guest vms, and also to pin host cpus to the "dom0" . In Kvm I can also easily pin host cpus to guests vms, but, as far as ...
0
votes
0answers
9 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
47 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 ...
2
votes
1answer
1k views

capping VM IO with cgroups

I'm using cgroups to cap disk IO that a VM does by using libvirt's support for cgroups. So, I'm getting the major/minor number of the device from a 'ls -lL' on the drive where the '.img' file for the ...
1
vote
1answer
1k views

Changing qemu/libvirt default gateway IPv4 IP to something other than x.x.x.1/24

General info: I have a KVM-libvirt/qemu running on ArchLinux; 3.18.2-2-ARCH ls | egrep -i 'libvirt|qemu' libvirt-1.2.11-1-x86_64.pkg.tar.xz libvirt-glib-0.2.0-1-x86_64.pkg.tar.xz libvirt-python-1.2....
1
vote
1answer
1k views

KVM/Libvirt: How to make local DHCP leases available to local DNS server through dnsmasq

On Ubuntu 17.04 with libvirt 3.0.0 I have multiple virtual networks defined on my Server: # virsh net-list --all Name State Autostart Persistent ----------------------------...
0
votes
0answers
12 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
13 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,...
14
votes
2answers
9k views

Read/write access for passthrough (9p) filesystems with libvirt/qemu?

I have recently started experimenting with the support for passthrough filesystems in recent versions of KVM/QEMU/libvirt. Making the filesystems available for read access has "just worked", but I'm ...
0
votes
1answer
1k views

How to start a new instance of QEMU based on the same image and snapshot?

I have a QEMU image (qcow2) with a snapshot stored in it. Right now I'm using libvirt to start it. However, I want to be able to run more than one instance of the same image snapshot. I guess I can ...
0
votes
1answer
14 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 ...
4
votes
2answers
208 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. ...
1
vote
1answer
2k views

How to permanently attach USB devices to a KVM vserver?

I run a Server using KVM and virt-manager (over SSH). Currently I have the following devices which I want/need in a KVm virtual machine: +----USB-HUB +- USB Smartcard Reader #1 +- USB ...
3
votes
1answer
2k views

host port forward with qemu through libvirt in user-mode networking

I'm having trouble editing my libvirt's host-xml to make qemu forward TCP connections to the guest. This questions linked to a blog post which recommended adding -redir to the Qemu command line. But ...
1
vote
1answer
2k views

virsh attach-device for serial device

I would like to add a serial device (console) to a guest via the virsh attach-device command. I have a console.xml file containing: <serial type="pty"> <target port="0"/> </serial>...
1
vote
2answers
4k views

libvirt and network filtering with nat - iptables overrides

At first, I want to say: I know, it was done initially wrong and I want to avoid doing everything again from the scratch because of general downtime. I am running libvirt/KVM on RHEL. I've got VM ...
0
votes
1answer
2k views

OpenStack instances power off by itself

Already asked this over on ask.openstack.org but I figured it would get more views here too. I am running OpenStack Mitaka on a 5 node cluster, 1 controller/network node and 4 compute nodes. I am ...
0
votes
0answers
66 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 ...
2
votes
2answers
2k views

Undefine all inactive domains

I have multiple inactive domains in libvirt and I want to delete them all: # virsh list --inactive Id Name State ---------------------------------- - instance-0000000c shut off ...
0
votes
0answers
38 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
86 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
38 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
164 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-...
7
votes
2answers
7k views

WARNING KVM acceleration not available, using 'qemu'

Running debian (Linux Rick 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux) Looking at my cpuinfo I can see I have vmx support: flags: fpu vme de pse tsc msr pae mce ...
5
votes
2answers
6k views

How to repair a broken-resized qcow2 disk image for libvirt/kvm?

Today I wanted to increase the size of a VM, so I did what I always do (have done it before): qemu-img resize diskimage.qcow2 +22GB Then the file broke and the VM does not start any more. I tried ...
0
votes
1answer
34 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
42 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
45 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, ...
3
votes
4answers
5k views

iptables / KVM forward port

I have a server with one external IP address (e.g. 1.2.3.4). On that server I use libvirt to run virtual machines. Now I want to access a virtual server on my host via ssh (port 1234) from the outside....
2
votes
0answers
130 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 ...
0
votes
1answer
144 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 ...
1
vote
0answers
103 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
44 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
58 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 ...
3
votes
3answers
10k views

Pass an USB hub from a KVM host to a guest with libvirt

I have the following USB devices on a Linux server: # lsusb -t /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/6p, 480M |...
0
votes
1answer
102 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 ...
0
votes
1answer
81 views

Disable or change port of dnsmasq service in libvirt

I'm using libvirt to manage my VMs, but I don't need the dnsmasq DNS server that gets automatically started with the service as it conflicts with my acme-dns setup. Is there a way to change disable ...
0
votes
2answers
130 views

Libvirt networking: Set default gateway for guest VMs via DHCP

Is it possible to set a default gateway for the guest VMs via DHCP in libvirt? I have the following config <ip address='192.168.123.1' netmask='255.255.255.0'> <dhcp> <range ...
1
vote
0answers
201 views

libvirt connection as non-root user

I'm trying to configure a libvirt compute resource in Foreman and have both KVM and Foreman installed on the same Centos 7 host. Adding the compute resource with qemu+ssh://root@hypervisor.example....
1
vote
1answer
446 views

How I increase GPU video RAM in virt-manager?

I have this text in my XML <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' ...
0
votes
1answer
136 views

KVM public ip setup with subnet /29

I have a dedicated server from hetzner with one additional /29 subnet i have configured a bridge network which looks fine to me 2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq ...
2
votes
2answers
523 views

Mount URL as cdrom/iso KVM/QEMU

I am looking for a way to mount an ISO as a cd rom, according to libvirt docs (referenced below) it should be possible, additionally in the question referenced below. I am aware of this question, ...
0
votes
0answers
25 views

cannot shutdown virtual domain until connected to it

I have a rather weird problem. I'm going to try and present facts but the truth is that my problem seems so awkward that I don't really know what is happening. I run a Debian 8.11 host with libvirt-1....
0
votes
0answers
71 views

How to list iptables/ebtables rules corresponding to a libvirt network filter?

libvirt network filter webpages says, The network filtering subsystem is currently only available on Linux hosts and only works for QEMU and KVM type of virtual machines. On Linux it builds ...
1
vote
1answer
374 views

kvm/libvirt backup: how to ensure a consistent fs during online blockcommit?

I want to create online backups of a KVM Windows 10 virtual machine that is managed by libvirt. I have the qemu agent setup in the guest. If found this wiki entry that suggests the following: 1. ...