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
16 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 ...
2
votes
0answers
22 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
31 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 ...
0
votes
1answer
74 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
103 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
0answers
85 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 ...
1
vote
1answer
40 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 ...
0
votes
1answer
58 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
114 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 ...
0
votes
2answers
70 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
28 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/...
0
votes
0answers
29 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
2answers
155 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 ...
0
votes
0answers
16 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
133 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
75 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
103 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
41 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
51 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
vote
0answers
37 views

How to change Libvirt Job type from 'Cancelled' to 'None'?

After I abort a live migrate, the Job type has changed to 'Cancelled', which makes me unable to migrate again. So,If some libvirt api (or QMP) can help me to change the Job type from 'Cancelled' to '...
1
vote
0answers
59 views

Connect two bridges only works in one direction

I have a Centos8 host with libvirt (KVM) and podman (1.6) installed. libvirt brought a bridge called "virbr0" and guests will be attached to with an address from range 192.168.122.0/24. ...
0
votes
0answers
13 views

how to limit io with LXC in libvier?

I want to know how to limit lxc io using libvirt? I trid iotune or other ways, but it's not working. <iotune> <total_bytes_sec>10000000</total_bytes_sec> <...
1
vote
1answer
170 views

Libvirt guest hostnames DNS resolution from host and guests

I have set up multiple virtual machines with libvirt and kvm on Ubuntu server 20.04, which work just as expected. The only thing I cannot figure out at this point is how to make their hostnames ...
0
votes
0answers
31 views

Cannot use tftp on a libvirt virtual client

I am running a Centos 8.2 (libvirt) virtual host with a Centos 7.7 client server. <network> <name>default</name> <uuid>312ccbda-b0fa-46c0-b7bd-b403f9ef41cb</uuid> &...
0
votes
0answers
28 views

KVM host crashes after starting application in guest

We ordered a new dedicated server yesterday and I moved some KVM guest machines from the old KVM host to the new server, which will be our new KVM host. The old KVM host is Intel based and the new one ...
0
votes
1answer
213 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 ...
0
votes
1answer
609 views

Is my KVM VM thin provisioned?

I was reading another post here Use Thin LVM Volume for KVM VM trying to understand whether or not KVM is capable of creating thin provisioned VMs. The post from about 8 months ago has both the OP ...
2
votes
0answers
47 views

How to diagnose and fix issues causing libvirt guests to become unbootable after many reboot cycles?

I have encountered a couple of times that a previously functioning Guest simply starts freezing on boot. (I have now reverted my VM to a previous working snapshot, so I cannot directly start up the ...
0
votes
1answer
51 views

libvirt: virtual drives gone after snapshot - VM still running

Edit: see solution to my problem below in Update2. After playing around with some backup script i have the following situation virsh domblklist polar-bear ...
0
votes
1answer
62 views

No IP address for Ubuntu VM constructed on VirtualBox and imported to libvirt/qemu/kvm

I'm trying to install an Ubuntu 18.04 VM created on VirtualBox (not sure which host platform) and exported as a VMDK to libvirt/qemu/KVM under RHEL 7.8. It seems to import and start up OK, but I ...
0
votes
0answers
24 views

Virtual Machine Manager - Make VM believe its running on physical machine

I use Fedora and i have a Windows 10 VM which i want to make believe its running on Hardware, physically, without it knowing its a VM. How can i do this? Background: I try to get WSL2+HyperV running ...
0
votes
1answer
538 views

Error when starting vm on the qemu/kvm network: Failed to write pid file

Libvirt has stopped working altogether on any VM (windows or linux) on the qemu/kvm networt and has the following error each time I try to start something: error: internal error: Failed to start QEMU ...
4
votes
2answers
732 views

Why doesn't libvirt cooperate with iptables on fedora 32

I'm trying to use pretty much the default installation of libvirt / kvm on Fedora 32. After installing libvirt, I'm trying to start up the default network: virsh net-start default. But for some reason,...
1
vote
0answers
77 views

Virsh Console Can't Access to rhel VM (a pty console, instead of serial console)

the pty console: <console type='pty'> <target type='virtio' /> <alias name='console1'/> </console> no output when I exec the command virsh ttyconsole vm_name the log (...
0
votes
1answer
304 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
123 views

How to backup KVM/QUEMU guests with virsh?

I am running some VMs with libvirt and KVM/QEMU. Now I want to backup them and save the backups into object storage where I can restore them from to another host if the harddrive of my host fails. I ...
1
vote
1answer
58 views

Correctly installing / configuring locally built qemu / libvirt

On Ubuntu 18.04, the default installation of qemu is something like version 3, and I needed virtiofs which has built-in support in later versions. So I uninstalled the qemu and related packages, ...
1
vote
0answers
92 views

Libvirt VM using twice it's memory

Running on Ubuntu server, a CentOS 7 VM is eating the memory : Host: # free -m total used free shared buff/cache available Mem: 80140 71676 ...
0
votes
1answer
320 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
120 views

Can't start domain cloned with virt-clone

Final Update at bottom I have a working KVM domain which I've configured and want to use as a 'template' for other guests. So, my process is roughly this: Shut down the 'source' domain (07xQBuild) ...
0
votes
0answers
42 views

Networking with QEMU and libvirt - Unable to reach cerain host from docker within VM

Good Nighttime, I'm running libvirt 6.2 (with KVM/QEMU) on my host that has no enabled IPv6 uplink, since it is not supported by my ISP. I've created a CentOS 6 VM within that host that has a NAT-...
0
votes
1answer
59 views

Exiting Virt-top shows error message in server logs

I see message in /var/log/messages after quitting virt-top command : libvirtd: 2020-07-11 12:36:22.206+0000: 3462: error :virNetSocketReadWire:1806 : End of file while reading data: Input/output ...
3
votes
0answers
1k views

Windows 10 KVM guests cause Ubuntu 20.04 host to crash (revised)

I got extremely confused and decided to re-write the question from scratch, so if some of the comments do not make sense, that is why. Apoplogies to anyone whose time I wasted. I am having a problem ...
1
vote
0answers
351 views

Fedora 32: KVM routed Bridge Network

I'm fighting with the following problem. I got an Hetzner dedicated Server with multiple additional IPs which I want to use for KVM VMs. (MainIP = 1.1.1.1, First additional IP: 2.2.2.2) Before my ...
0
votes
0answers
357 views

Failed to connect socket to 'var/run/libvirt/virtxend-sock': file or directory not found

I want to boot a physical installation of windows 10,so I need to run xen HVM version. Do u have a tutorial that I can follow ? I'm trying to create a new connection inside virt-manager,with xen,on ...
0
votes
0answers
95 views

Qemu Libvirt : unabled to pass all GPUs to vms

Im trying to pass all gpus to different systems , my setup: asus x399 gaming 6 mainboard amd 1950x 32G ram 1 TB intel ssd m.2 gtx970 gtx750 this resources should be passed into 3 systems: vm1 a ...
0
votes
0answers
25 views

libvirt on fedora, qemu/kvm guest, guest can ssh to host, but failed to samba or ftp to host [duplicate]

I am running libvirt/qemu-kvm on Fedora32, guest OS is win10 with spice-guest-tool in use. I use 'nat' mode virtual networking. root@fedora ~]# virsh net-dumpxml default <network connections='1'>...
0
votes
1answer
1k views

Should I use “detect-zeroes” for TRIM/discard support on QEMU guests?

Until now I've enabled discard on my QEMU guests using the libvirt XML command .. <driver name='qemu' type='qcow2' discard='unmap' /> .. And it seems to work fine. Now that I'm about to convert ...
2
votes
1answer
783 views

qemu-kvm guest OS can access host using bridge, but cannot access other devices on same network

I want to run a qemu-kvm guest with Debian 9 as its OS on a Debian 10 host. The host is connected to the local network, and I would like the guest to be "visible" to the local network as if ...

1
2 3 4 5
11