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
401 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 ...
1
vote
2answers
589 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
1answer
2k 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
0answers
32 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
201 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
0answers
361 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
900 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. ...
0
votes
1answer
255 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 ...
0
votes
0answers
527 views

Delayed start for Guests KVM/libvirt

Looking for any pointers anyone may have to introduce a delayed start for KVM guests i.e. 30 seconds between starting each virtual server rather than starting them all at once which thrashes the disks ...
2
votes
2answers
1k 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, ...
1
vote
1answer
1k views

Do not start guest after virt-install

I like to set up a new guest but do not want to start it immediately. I use virt-install with these options: virt-install \ --connect qemu:///system \ --import \ --virt-type kvm \ --...
4
votes
1answer
1k views

KVM/libvirt: how to migrate between 2 hosts with different CPUs

I tried to migrate my KVM host from a host with AMD cpu to a host with Intel CPU but when I run virsh start guest_name I got error: unsupported configuration: CPU model ... is not supported by ...
1
vote
1answer
265 views

libvirt / KVM: forwarding ssl to VM breaks internet on VM

My qemu hook script looks like this: #!/bin/bash # IMPORTANT: Change the "VM NAME" string to match your actual VM Name. # In order to create rules to other VMs, just duplicate the below block and ...
1
vote
0answers
415 views

Setup routing in nested virtualization cluster on vagrant / hyper-v / libvirt

I'm trying to setup a specific VMs cluster using vagrant on my local notebook. I have a Win10 Pro with HyperV as a host. Unfortunately I cannot change it thus I want to create a Linux VM on HyperV (I ...
2
votes
0answers
342 views

KVM: What is stored in var/lib/libvirt/qemu

My Question is "What is stored in the /var/lib/libvirt/qemu folder?" Is this used as somekind of backup folder ? Backgroundinformation: I have a Debian Server with a running KVM installation(+libvirt)...
0
votes
0answers
131 views

Network data/bandwidth accounting on a VM's network from the host/hypervisor side (libvirt/KVM, bridged networking)

On a server a few KVM/libvirt virtual machines are running. Sometimes these use lots of GB in network bandwidth. I would like to do statistics on network transfers (bandwidth usage, ideally by IP ...
0
votes
1answer
186 views

Handling VMCALL with libvirt (qemu-kvm)

I am using libvirt with qemu-kvm to manage virtual machines. The guest makes a vmcall which I want to be notified of, e.g. via a callback function. I know it's possible with 'pure' KVM, but does the ...
6
votes
2answers
1k views

How to Restart Centos 7 KVM Host safely without corrupting guest VMs/data?

I want to have a KVM virtualized server with few VMs (with different Guest OSs) in production. Now when I want to install kernel/package updates for the host machine, how to restart the hypervisor ...
0
votes
1answer
328 views

Does enabling SELinux “enforcing” in KVM host causing problems in the guests?

I've KVM hypervisor with (Software Raid1) and I've few created VMs .. Does Enable "SELinux" IN the host affects badly on Raid1 and The guests (VMs) ? or there is no relation? Is it a recommended ...
0
votes
1answer
82 views

Domain.xml not Updating For Console Directive

Good afternoon, I'm following the instructions here in order to get console access from libvirt The problem I'm having is the domain.xml does not accept the new changes. I have also done the ...
0
votes
0answers
787 views

libvirt cannot boot windows-uefi guest with virtio storage

i have hyper-v gen2 win-guest and need to migrate on kvm with libvirt. I convert one guest from vhdx to qcow2 with qemu-img, start it with qemu-system and hda-drive, install virtio drivers. After that ...
1
vote
2answers
2k views

How to replace of KVM image to other partition?

i have this structure of space of hdd-s: df -h Filesystem Size Used Avail Use% Mounted on udev 16G 0 16G 0% /dev tmpfs 3.2G 8.9M 3.2G 1% /run /dev/md2 ...
0
votes
0answers
2k views

KVM gets stuck at “Booting from ROM”

I created I a ubuntu 16.04 vm with a kickstart file using the following xml <domain type="kvm"> <name>""" + name + """</name> <memory unit='GB'>1</memory> <vcpu>1&...
0
votes
0answers
543 views

Overcommiting Memory with KVM and Libvirt

TL;DR; What is the best practice for overcommiting memory with libvirt and kvm ? Long story - I have a small and underutilized server running multiple VMs (both host and guest running centos 7.4) ...
1
vote
2answers
2k views

Permission denied error when launching instance (“Could not open backing file”)

Working with OpenStack, installed from packages available on Debian testing (buster). When I try to launch an instance, it fails after building with this message in nova-compute.log: Could not open ...
0
votes
1answer
345 views

KVM on a VPS Ubuntu 16.04 LTS (headless) libvirt-sock: No such file

I am trying to create a KVM server on a (remotely hosted) VPS (Ubuntu 16.04 LTS). I have installed these packages sudo apt-get install kvm ubuntu-vm-builder libvirt-bin bridge-utils sudo egrep '(...
1
vote
1answer
48 views

Convert between hypervisor types

My company needs to automate the creation of new VM's with our proprietary solution, for this we would like to ship the product either on a a standardized format (OVA seems to be the only "standard" ...
0
votes
1answer
21 views

Retrieving libvirt-commands to hypervisors

Libvirt is cool, but I need to port a VM from it's configuration to bare QEMU or Xen. To reproduce the setup, I need the commands send to the specific Hypervisors in order reproduce the VM in the ...
1
vote
0answers
56 views

Docker on CoreOS VM behind Corp proxy

I have Docker on a CoreOS VM which runs on top of KVM. VM Networking: $ virsh net-edit libvirt <network ipv6='yes'> <name>libvirt</name> <uuid></uuid> <...
0
votes
1answer
765 views

Using virt-builder to create image

I'm trying to automatically create cloud images using virt-builder. I am using the following command in Centos 7 and it keeps failing. Any idea behind the issue ? # virt-builder debian-9 -o /var/lib/...
1
vote
1answer
261 views

No traffic to the VM

TL;DR (1) Only the first 2 VFs are transferred to the VM and (2) No traffic to the VM. Setup Host is Ubuntu 16.04 Intel 82599 (supports SR-IOV) attached via PCIe Driver ixgbe Guest VM is Ubuntu ...
0
votes
0answers
855 views

How to set default permissions for libvirt VM files

When I create a new virtual machine using virt-manager, a qcow2 file is created with read permission for all: rw-r--r-- 1 libvirt-qemu libvirt-qemu 53695545344 Jan 12 16:24 vm.qcow2 I find it ...
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 ...
0
votes
1answer
133 views

GTK apps no longer render text

I am using virt-manager on Debian Jessie. A few weeks ago, it was working fine for me; however now when I run it, the text does not render correctly. I have tried reinstalling all of the dejavu fonts,...
1
vote
2answers
583 views

Why doesn't libvirt “Usermode Networking” start on boot?

Running Ubuntu 16.04, the default virbr0 interface is not started by default for me on boot, meaning I have to start it manually using the command, $ sudo virsh net-start default Not a big deal ...
0
votes
2answers
784 views

How to add firewall rules at chain start, in CentOS with libvirt and iptables?

With this /etc/sysconfig/iptables: *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -...
0
votes
1answer
227 views

ubuntu iptables libvirt port forwarding

I have been beating my head against the wall for the past few days trying to figure out how to allow incoming connections to a vm machine on ports 443 and 8443. Here is some information on the system....
0
votes
1answer
138 views

Troubleshoot libvirt-managed qemu x86-64 UEFI guest

I have a libvirt/qemu/x64 UEFI guest running Windows 10. The problem is that it starts successfully every other time. When I issue a guest start commmand (any libvirt method) 1st time, the guest ...
0
votes
1answer
879 views

Multiple networks with firewalld and libvirt/KVM

In the past i had a hypervisor set up with libvirt/KVM and IPtables in order to have VMs reachable through NAT on IPv4 (forwarding and masquerading don in iptables) and directly on IPv6 (routed ...
2
votes
0answers
337 views

How to provision DRBD to libvirt storage pool?

I want to expose DRBD replicated storage (2 nodes Active/Passive) to libvirt as a storage pool for qcow2 files. However, I have the following error message: virsh pool-create-as qcow2 --type=logical -...
4
votes
4answers
6k views

How to add virtual storage as SSD in KVM

Being previously a VirtualBox user, I moved to KVM(QEMU/libvirt or whatever it's called) recently. I know that in VirtualBox, when you add a new storage device to the VM, there is a checkbox labeled ...
0
votes
2answers
188 views

Bridged Network with libvirt on centos

I'm trying to configure Bridged Network by creating a network script at /etc/sysconfig/network-scripts/ifcfg-br0: DEVICE="br0" NM_CONTROLLED="no" ONBOOT="yes" TYPE="Bridge" BOOTPROTO="static" IPADDR="...
3
votes
3answers
4k 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 ...
2
votes
0answers
80 views

Convert VM (redhat virtualization 3.5) to a physical server

I have a virtual machine running on red hat virtualization 3.5, i need to convert that VM to a physical server. (mainly due to a performance issue) my volume groups as follows NAME ...
1
vote
0answers
511 views

Centos 7 with libvirt, Kvm and balloon consumes 100% cpu on all versions of windows

Windows works perfectly, but the balloon does not work, after setting the min and max memory and activating the BLNSVR service, windows starts to consume 100% CPU. If put Min and max memory equal the ...
1
vote
2answers
1k views

Is there anyway to do a live qcow2 backup without pausing vm's?

I'm trying to setup a KVM backup solution for our servers that would take live backups without stopping the system. I Found several ready scripts which i have tested, but they all either stop or "...
2
votes
0answers
271 views

How to create my own virtual machine base images? [closed]

I would like to create my own base VM image to allow for faster provisioning of new VMs. Right now, I'm creating a new and empty VM, inserting the distribution's ISO into it, and going through the ...
3
votes
1answer
67 views

centos libvert vm network can't get IP address

I have a host machine running centos 6.2 and it has 2 VM's using libvirt. I had it all working, but then I had a power outage and now the host has connectivity, but the VM's cant get an IP when they ...
1
vote
0answers
1k views

KVM virtual machines won't work in bridge network mode anymore

Something broke on my KVM host (Ubuntu 16.04). I have some virtual machines configured to use br0 so they appear as separate machines on the LAN with their own IP. They get their IP from the router, ...
0
votes
1answer
300 views

How to pass an ignition.json to a Xen CoreOS DOMU when using libvirt or `xl`

I have a baremetal server with Xen, and Debian 9 as DOM0. This server has libvirt, and I can happily create PV domains by using xl, virsh or remotely using virt-manager. I want to streamline coreos ...