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

NATing through a vpn with libvirt

I installed a server with libvirt, and I've created a test VM. When I use the default network for it's interface, it gets a private IP and the NATing seems to work fine. I installed OpenVPN, so I have ...
1
vote
1answer
1k views

Changing the mac address in a libvirt xml config file breaks network connectivity for the guest

I'm using Xen with libvirt and trying to set it up on a bridged interface. I am able to install an OS and everything works as I would expect. If I save the xml output from "virsh dumpxml guest", edit ...
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/...
1
vote
1answer
942 views

How can I add a usb device to a domain xml from an image file?

I don't (repeat DONT) want to passthrough a physical usb device. I'm making a usb img file like so: dd if=/dev/null bs=1K of=/tmp/test_usb.img seek=2040 mkfs.vfat /tmp/test_usb.img I am then ...
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. ...
5
votes
3answers
11k views

KVM booting off-image kernel and existing partition

I am in the process of switching from Xen to qemu-kvm. My current Xen installation has a number of LVM volumes each with a partition (rather than a full disk image). In Xen, I start each VM with a ...
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 ...
2
votes
2answers
1k views

how to enable L3 cache on kvm guest?

I start a kvm guest(centos6.5) on a Intel machine(centos6.5),use libvirt, the guest's xml as follow <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> <name>...
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: ...
1
vote
1answer
998 views

virt-viewer slower than virt-manager when viewing

I've got a thin client server in which I have a few VM's for users under KVM which I manage through virt-manager. What I've noticed is if I start a VM guest on a thin client using the command 'virt-...
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 ...
1
vote
1answer
1k views

Accessing VirtualBox with libvirt from a guest

I have installed libvirt on OSX, and from outside a virtualbox I can access it using virsh no problem. However, I want to access it from inside a guest, and this is giving me the hopelessly useless ...
0
votes
1answer
1k views

EL6/KVM guest dies with “pthread_create failed: Resource temporarily unavailable”

I've got a CentOS 6.5 x86-64 KVM server with a bunch of guest VMs of different breeds, mostly EL5 and EL6. However one and only one of them keeps crashing every couple of days with: pthread_create ...
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....
0
votes
1answer
1k views

add a cgroup controller into libvirt

libvirt by default has cgroup controllers of ["cpu", "devices", "memory", "blkio", "cpuacct"] as shown in qemu.conf. I want to add one more controller of net_cls. I tried to modify the config file to ...
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 ...
2
votes
2answers
1k views

How to measure boot time of a VM from host machine?

On both Guest machine and host machine, I am using Ubuntu 12.04. As a hypervisor I am using KVM. I want to perform some experiments related to boot-storm and I have created all other scripts to ...
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 ...
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

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 ----------------------------...
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....
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
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 ...
0
votes
1answer
2k 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 ...
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 ...
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 -- --...
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>...
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 ...
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
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
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
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
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).
6
votes
6answers
29k views

libvirt network error - no 'default' network device found

My original purpose is to create centos image for openstack. Although I did directly with kvm, still wondering about error. Was using this manual for my task. After this command: # virt-install --...
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
1answer
1k views

listing of VM's created before libvirt installation or started by any other VM management tool

if my VM's are not created using virt-manager or are created using any other tool, then virsh system list command does not give them in the list of running VM's however they are running perfectly on ...
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 ...
7
votes
3answers
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 ...
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 ...
28
votes
3answers
70k views

KVM/libvirt: How to configure static guest IP addresses on the virtualisation host

What I'd like to do is to set the guests' network configuration (IP address, subnet, gateway, broadcast address) from the host system. The used network setup is in bridge mode. How can I configure the ...
0
votes
1answer
1k views

Give a VM access to a whole disk with the least overhead with qemu-kvm

I'm moving a Windows 10 install from dedicated hardware to a KVM VM. The disk (SSD) is being physically moved from the current machine to the VM host machine. Is there a way to just pass the entire ...
-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
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 ...