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
19 views

Redirecting USB device to a virtual machine with virt-manager does not work

I have a Fedora workstation running an Ubuntu 16.04 virtual machine (KVM hypervisor). I'd like to redirect a USB device to the VM, but when selecting "Virtual Machine | Redirect USB device" ...
2
votes
2answers
1k 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
2answers
2k 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
2answers
455 views

Why does my ethernet interface not get added to my openvswitch bridge on startup, with debian 10.5?

I am setting up a kvm/qemu/libvirt host (debian buster 10.5) with two ethernet interfaces: eno1 for the host traffic and eno2 for the VM traffic. eno2 is connected to a trunk switch port carrying the ...
0
votes
0answers
8 views

Virt Block device resizing [duplicate]

I am attempting to expand the size of a virtual disk on an existing image. I was successful to expand the virtual hard disk and partition thanks to this guide, but noticed my virtual disk was still ...
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 ...
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 ...
1
vote
1answer
40 views

Wildcard CNAME record specified by libvirts dnsmasq:options namespace doesn't work, only specific subdomains works

Since v5.6.0, libvirt added a dnsmasq namespace with the element, which allows to specify options directly to the underlying dnsmasq server. I'd like to create a wildcard DNS entry for my applications ...
0
votes
1answer
1k views

SCSI virtual disks not showing up on RHEL 7.X KVM guests

For whatever reason I can't get my virtual disks to show up on any of my RHEL 7.X guests (libvirt + KVM). The XML is configured just like my other guests so I know it isn't an issue on that end. It ...
0
votes
0answers
27 views

How to use virsh attach-device without knowledge of target dev name

Is there a way to use virsh attach-device without using a target? For example, I attach a disk by using an xml file which includes the target "sdc". <disk type='block' device='disk'> ...
17
votes
4answers
40k views

How to change the default Storage Pool from libvirt?

I'm trying to use a different Storage Pool on KVM in order to store the virtual disks of my VMs and also the ISOs from the operating systems which I'm using. For example: I want to use the directory /...
0
votes
1answer
33 views

I want to increase the KVM root file system from 60GB to 160 GB

The KVM image file 3.1GB in the file system on the hypervisor. The file systems are only showing up at 60 GB with df -kh total space. I want to increase the KVM volume space to 120 GB. I tried 'virsh ...
1
vote
1answer
2k 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
2answers
273 views

virsh reporting unknown feature amd-sev-es

I updated my centos and I can no longer start any VM. It says: error: failed to get emulator capabilities error: internal error: unknown feature amd-sev-es But I'm using a Intel CPU (E5-2678v3) so it ...
7
votes
6answers
14k views

How to detect hypervisor host name/IP from inside a KVM virtual machine?

We have a small fleet of KVM/libvirt hosts with a few hundred virtual machines on it, managed by a group of sysadmins in disparate locations. I've run into a problem where I am connected to a virtual ...
0
votes
0answers
25 views

How can I send vm info over snmp?

I have a script I'm using on Fedora 34 to gather basic info about VMs running on a machine such as CPU cores, memory, drive path & size, and disk IO. How can I send this information over snmp ...
0
votes
0answers
13 views

How to write custom SNMP scripts?

I want to send data across SNMP such as VM lv paths, VM disk IO, and VM CPU & memory usage. I've been unable to find proper resources for sending the information I need. Any help is appreciated.
0
votes
1answer
21 views

Libvirt/KVM support for partiitoned memory

Does KVM/Libvirt support partitioned memory? Is it possible to make sure that two VMs do not have memory-mapping that overlaps?
0
votes
1answer
127 views

Libvirt raises permission denied when QEMU is accessing the VM on an external hard drive

I wanted to use an external hard drive as a libvirt storage pool for my VMs. I defined a new pool in /media/wenzel/OSWatcher/vms, and imported my vm win10-ts1-1507.qcow2 there. However, when starting ...
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 Smartcard ...
0
votes
1answer
5k 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
84 views

Getting error “libosinfo: Unexpected file type (0)” when trying to create or open VM in virt-manager

I get the following error when clicking “Open” or “Create a new virtual machine” in virt-manager: Error launching details: libosinfo: Unexpected file type (0) Traceback (most recent call last): ...
0
votes
1answer
432 views

Migrate windows guests from VirtualBox to KVM without re-activation?

The windows check the hardwareuuid of virtualbox VM for activation. Is there a way to use same UUID in KVM to prevent the reactivation?
0
votes
1answer
24 views

Use network bridge as default network in libvirt

I created a network bridge virtbr0 with my NIC enp1s0f1. The bridge gets an ip address from the router via dhcp. i would like to use the bridge as default network in libvirt to also get ip addresses ...
1
vote
1answer
3k 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>...
2
votes
0answers
134 views

how to allow outgoing traffic with firewalld / libvirt on CentOS 8?

I installed a CentOS 8 guest on a CentOS 8 host using libvirt. However firewalld is blocking all outgoing traffic from the guest to the internet unless I use target=ACCEPT for the libvirt zone. The ...
-1
votes
1answer
55 views

Disable libvirt storage pools

It seems every time I create a VM with virt-install a new storage pool is created. But I don't use storage pools at all! I looked in the virt-install manual but could find a way to prevent this from ...
10
votes
4answers
66k views

virsh: VM console does not show any output

I have a VM which I can start with virsh. According to virsh dumpxml VM1, this is the allocated pty: <serial type='pty'> <source path='/dev/pts/6'/> <target port='0'/> <...
0
votes
1answer
277 views

error : virPidFileAcquirePath:422 : Failed to acquire pid file '/run/user/1000/libvirt/libvirtd.pid': Resource temporarily unavailable

Anyone have any ideas how to fix this? It looks like the computer is telling me libvirt has no VM to connect to. I could be off the mark there. I am starting to play with vitrd. I am thinking of ...
1
vote
1answer
3k 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 ...
0
votes
2answers
210 views

How to control start and stop of libvirtd and virtlockd in pacemaker cluster?

Using indirect locks of virtlockd (which is used by libvirtd) requires to use a cluster-wide shared filesystem like OCFS2. In turn this means that virtlockd must be started after the shared filesystem ...
1
vote
1answer
1k 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
1answer
196 views

virt-install error to create instance in qemu-kvm

OS: Debian 10.4 libvirtd version: 5.0.0 Hello! I need to create a instance in qemu-kvm. With this command: virt-install --connect qemu:///system --virt-type kvm --name test01 --ram=2048 --vcpus=2 --...
0
votes
1answer
395 views

Not able to start virtual machine/domain in KVM: Failed to get “write” lock

After host's restart, I'm not able to start virtual machine: user@server-1:~$ virsh start docker-1 error: Failed to start domain docker-1 error: internal error: process exited while connecting to ...
0
votes
1answer
225 views

libvirt Windows 10 VM issue

I am running Manjaro KDE and I have managed to setup a Windows 10 VM with GPU passthrough for Windows things and it was working great until I noticed a weird behavior. When I try to reboot the VM, or ...
1
vote
3answers
2k 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 ...
1
vote
1answer
87 views

Why is my docker registry refusing connections from VMs in my local network but not the host?

For context - I am attempting to deploy OKD in an air-gapped environment, which requires mirroring an image registry. This private, secured registry is then pulled from by other machines in the ...
20
votes
5answers
20k views

How to keep time on resumed KVM guest with libvirt?

On my host I am using libvirt and a KVM guest. When the host is shutting down, libvirt suspends the guest. When the host is starting up, libvirt resumes the guest. The problem is, if the guest is ...
0
votes
2answers
85 views

KVM hosts to be accessible from outside world for server purpose In centos 7

Today i just ran into a problem i just wanted to ask a question to all of you I have just install kvm in my system and i have some how managed to get a node installed and working in the system Now ...
0
votes
1answer
47 views

Tracking down usage of libvirt

I'm familiarizing myself with a server that a previous (no longer available) system admin had set up. He had set up CentOS 7 with a variety of packages. One of those packages seems to be libvirtd, ...
1
vote
0answers
42 views

error: internal error: Child process /sbin/parted - unexpected exit status 1: Error: You requested a partition from

# fdisk -l /dev/sdb Disk /dev/sdb: 447.1 GiB, 480103981056 bytes, 937703088 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/...
17
votes
2answers
13k 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
0answers
48 views

Libvirt VM Networking fails to start up after upgrading host from Ubuntu 18.04 to 20.04

I upgraded a server from 18.04 to 20.04. I am using libvirt/kvm to host a number of VMs. Some of the VMs failed to reconnect to the network after the upgrade. Two VMs in question run Ubuntu 18.04 and ...
0
votes
0answers
19 views

Old KVM Guest not starting after reboot

I have a bunch of Virtual Machines in a Ubuntu 18 Guest machine. Until recently they have all been working without any problem. However after I restartet one of the Guests(also Ubuntu) it is now not ...
0
votes
1answer
211 views

QEMU / KVM - Dedicated 802.1q VLAN for each VM - Communication only via router

I have a Linux firewall router (dedicated machine) with multiple ethN interfaces (my "big firewall"). All forwarded traffic is filtered by a set of iptables rules (default policy DROP). ...
1
vote
1answer
95 views

Raw LVM disk write is four times faster on host than inside KVM guest?

I've got a Debian 10.6 Host, with a Debian 10.6 guest. KVM/Qemu/libvirt. The host has a software RAID 10 array with 6 mechanical disks. LVM is on top of the RAID array. One LV is passed into the guest ...
0
votes
0answers
145 views

How to enable nested virtualization in order to use VirtualBox inside of a KVM virtual machine?

We have a KVM hypervisor (L0, AMD, Kernel: Linux level0kvmhypervisor 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux), which runs a virtual machine that I would like to use as a ...
1
vote
0answers
44 views

Can't see docker ports from external machines when using a veth interface with an OPNSense KVM

Quick summary of the setup: Ubuntu Server 20.04 with 4 network ports OPNsense router running in libvirt KVM One port is WAN, three ports are LAN (bridged) Router works great Server (same one running ...
0
votes
1answer
72 views

Ubuntu KVM - Bridge - Isolate Host from NIC

I have a Ubuntu Server with 4 physical NICs. 2 of them, i want to "hide" from the Host, so the host itself may not access traffic on those 2 nics, just the VM where i pass them into (...

1
2 3 4 5
12