Questions tagged [libvirt]

libvirt is an open source API, daemon and management tool for managing platform virtualization.[1] It can be used to manage Linux KVM, Xen, VMware ESX,qemu and other virtualization technologies. These APIs are widely used in Orchestration Layer for Hypervisors in the development of a cloud based solution.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

Nvidia vGpu mdev device doesn't autostart after reboot

After reboot mdev device nvidia vgpu doesn't autostart but this option is enabled using mdevctl and virsh nodedev-autostart, the device information also says that autostart is enabled. If I start the ...
0 votes
0 answers
8 views

where add its=off in libvirt xml

qemu-kvm add -machine virt,gic-version=3,its=off, but don't know its=off where add in libvirt xml. not work, The available features can't be found by asking for the domain capabilities XML
  • 1
0 votes
0 answers
24 views

How do I start libvirtd in WSL2

I tried to start libvirt in WSL2 for libvirt development and testing, but I couldn't start libvirtd correctly.My computer already supports kvm, qemu, etc root@ccfuncy ~ base ❯ dmesg | grep kvm [ 0....
0 votes
0 answers
28 views

Modifying multiple interfaces model types in virsh using a startup script, reboot restores original types

I am attempting to create a startup script that will modify the model of the following interfaces in virsh: </interface> <interface type='bridge'> <mac address='52:54:00:df:9a:65'/> ...
0 votes
1 answer
18 views

Setting tokenised IPv6 identifiers with libvirt network config

I'd like to set user provided lower 64 bits tacked onto the existing /64 prefix with libvirt but I cannot find a way to do this. Is it even possible ? If not, it would be great to add this ...
0 votes
1 answer
70 views

iotedge not starting after fresh deployment

I'm trying to start iotedge on Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-158-generic x86_64) The OS runs on kubevirt on a kubernetes cluster. 45 kubelets hosting iotedge 1.4.2 are humming along nicely. I'm ...
  • 1
0 votes
0 answers
21 views

VM shut down after created by virt-install for aarch64

I'm creating virtual machine inside an ARM64 machine that has Ubuntu 22.10 (Kinetic) as OS, by downloading the ARM64 Ubuntu cloud image: wget "https://cloud-images.ubuntu.com/jammy/20230217/jammy-...
-1 votes
1 answer
24 views

KVM Default Network Gives Same IP to Different Machines

I'm trying to create VMs using KVM. I am using libvirt to create the VMs, with following packages bridge-utils libvirt-daemon-system virt-manager virt-viewer qemu-kvm qemu-efi And the command to ...
0 votes
0 answers
35 views

libvirt qemu hook is not running

I am following what's suggested in this article to change the iptables rules in order to allow incoming connections. For some reason, the qemu hooks does not run. I simply tried to write into a file ...
  • 441
0 votes
0 answers
66 views

firewalld blocks libvirt zone and guest vm accessing host lan in default network with nat forwarding

I am testing libvirt/qemu/kvm based linux guest vm on an arch linux pc where firewalld is running. The simple linux guest is using default libvirt network with nat forwarding. According libvirt ...
0 votes
0 answers
16 views

Why is virt-viewer on Ubuntu 20.04/GNOME forgetting my grab key?

I originally had an issue where using virsh to launch a virtual machine directly from the command line and connecting to it would start virt-viewer under a different user account. It was not able to ...
  • 1
1 vote
1 answer
51 views

openstack using hugepages for instance

I am tring to config openstack and libvirt to use hugepages for instance, here is my config: GRUB vim /etc/default/grub GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-...
  • 737
0 votes
0 answers
31 views

ERROR setting up vagrant within an AWS instance

I am trying to get Vagrant up and running in an Ubuntu AWS EC2 instance. I have Vagrant installed, i have a dummy vagrant box installed, I have vagrant libvirt plugin installed as well as libvirt ...
0 votes
1 answer
71 views

How to get actual disk size from libvirt-python (3 questions!)

I've been working with virt-manager and am now moving into some custom code using python and libvirt. I have noticed that some of my VMs show "unknown" in regard to the disk "Storage ...
0 votes
0 answers
198 views

virt-install and qemu-system-aarch64: cannot create vmnet interface: general failure (possibly not enough privileges)

I'm trying to virt-install the following: sudo virt-install \ 1 --name host1 \ --memory 2048 \ --vcpus 2 \ --disk size=30 \ --cdrom ./box.img \ --os-variant ubuntu22.04 \ --...
  • 2,340
0 votes
1 answer
126 views

virt-install fails to connect to socket

I'm following this guide to run multiple VMs on mac os with apple m1. I got the following error: sudo virt-install \ --name host1 \ --memory 2048 \ --vcpus 2 \ --disk size=30 \ --cdrom ./box.img \ --...
  • 2,340
0 votes
1 answer
45 views

Libvirt-python package install VS Code Win10/11

Is there anyone who successfully install libvirt-python package under Win10/11. PS C:\> pip install libvirt-python Collecting libvirt-python Using cached libvirt-python-8.10.0.tar.gz (240 kB) ...
  • 1
0 votes
0 answers
29 views

How to hotplug interface by libvirtd?

I'm trying to hotplug a interface to a running domain by the following command : bash-4.4# virsh attach-interface 1 --type network --source net1 --model virtio-non-transitional --target /sys/devices/...
  • 1,607
0 votes
0 answers
50 views

Libvirt error when trying to pass through radeon graphics to kvm

guestslibvirt.libvirtError: internal error: Non-endpoint PCI devices cannot be assigned to guests Have tried multiple different things to try and assign Radeon graphics to me but nothing has seemed to ...
-1 votes
1 answer
137 views

How to backup kvm volumes using incremental disk backup using "push" and "pull" mode in libvirt

I am working on a task to be able to backup VM image volumes in another server and location, the problem is, I don't want to copy the whole image file each time I want to start a backup job, I want to ...
1 vote
0 answers
162 views

Virt-manager, GPU passthrough "Preparing host device" freeze

I'm trying to do a macos vm with gpu passthrough with virt-manager, but everytime I run my vm with my GPU, libvirtd totally freeze. If anyone got an idea about this topic, that could be nice :) I ...
  • 13
0 votes
1 answer
98 views

QEMU doesn't support the virtualization of two CPUs

My computer host machine has two phyiscal CPUs.The mode of mother board is WS C621E SAGE Manual. root@ubuntu:~# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address ...
1 vote
1 answer
92 views

Golang libvirt guest-agent not available

I've tried to communicate with the guest agent on a qemu instance through the libvirt golang API. However, it always reject my connections with 2022-12-02T00:10:43.799+0100 DPANIC test/main.go:335 ...
0 votes
2 answers
141 views

Installing ruby gems ruby-libvirt, vagrant-libvirt, fog-libvirt… failure missing « libvirt » library

When trying to install ruby gems to enable libvirt management for vagrant, the installation fails with a undocumented message « it depends on a library which is not currently installed : libvirt ». ...
0 votes
0 answers
98 views

error : virPidFileAcquirePath:422 : Failed to acquire pid file '/var/run/libvirtd

Dears, i'm facing an issue with libvirtd process in with virtualization packages, the command "libvirtd" is always having the below error: libvirtd 2022-11-14 15:00:53.981+0000: 315583: info ...
  • 1
0 votes
0 answers
19 views

esxi and libvirt: all works but..no graphic console

I have a running esxi hypervisor. I want to control it via virt-manager (libvirt). The vm start, this is the xml <domain xmlns:vmware="http://libvirt.org/schemas/domain/vmware/1.0" type=&...
  • 587
0 votes
0 answers
79 views

error : virNetSocketReadWire:1793 : Cannot recv data: Connection reset by peer

im getting the following error "error : virNetSocketReadWire:1793 : Cannot recv data: Connection reset by peer"for libvirtd and wandering is the same can lead to a crash for the hypervisor, ...
  • 1
1 vote
0 answers
59 views

OpenStack-Devstack: Can't create instances using KVM on host

I have a Dockerize installation from Devstack all-in-one on Ubuntu 20.04. The goal for me is to connect to the host's KVM and create instances there. Nova was configured as follows for this purpose. #/...
1 vote
0 answers
136 views

How to memory map address space on host from KVM/QEMU guest

I have an embedded application running on a Xilinx ZynqMp SoC. The application running on the PS (processor) memory maps the PL (FPGA) of the SoC over an AXI bus via /dev/mem at some base physical ...
  • 21
0 votes
1 answer
32 views

Multiple VMs Accessing a single device over PCIE

I am using the libvirt/QEMU/KVM stack to run some VMs on an Ubuntu 20.04 host. I am using the virsh CLI tool for VM management. I'd like to allow multiple VMs to access the same device (FPGA) over ...
0 votes
0 answers
172 views

libvirtd Enable firmware auto-selection

Creating new domain with virsh failing with error: no loader path specified and firmware auto selection disabled How can I enable that option ! OS: centos9
-3 votes
2 answers
244 views

How to take xml file of running instances in openstack?

Im trying to edit xml file of running instances in openstack but couldn't able to find out where it is placed . When i tried with #virsh list -all Which is listing some vms which is not created via ...
0 votes
0 answers
65 views

need help in enabling qemu/libvirt traces, to debug live migration failure(load of migration failed: Input/output error)

I am debugging a migration issue(migration fails with message: "load of migration failed: Input/output error"). Before attempting live migration I 've added below two lines in /etc/libvirt/...
0 votes
1 answer
90 views

Why does libvirt create multiple PCIs?

I ran libvirt in the parameters of the qemu-system-x86_64 command and found that it created multiple PCIs: /usr/bin/qemu-system-x86_64 \ ... -device '{"driver":"pcie-root-port&...
  • 587
0 votes
1 answer
33 views

What Does The <path> of <blkiotune> meaning?

the screenshot of libvirt official document What does the of meaning? Is it meaning that the block device of host, or guest?
1 vote
0 answers
66 views

Modifying parent internal snapshot in QCOW2

Spent some time trying to cope with next problem I faced. I'm using internal QCOW2 snapshots for my VM and it has next tree: parent | +- child1 | +- child2 which was gotten by taking parent ...
  • 11
0 votes
1 answer
473 views

virsh domifaddr <domain-name> does not show KVM IPs

I created a virtual machine on my centos server machine by using the virt-manager. While the installation, I have set a static IP address on the KVM. When I tried to get the IP address of KVM from my ...
  • 1
0 votes
0 answers
39 views

command systemctl start libvirtd.service openstack-nova-compute.service doesn't finished

I am trying to install opnenstack-nova and after i confing /etc/nova/nova.conf and run command: systemctl start libvirtd.service openstack-nova-compute.service it doesn't finish and show anything. how ...
0 votes
0 answers
55 views

Is there any "terraform way" to shutdown a domain?

Instead of doing a "virsh undefine " on the host to power-off a VM, is there a way I can do it using terraform? I tried editing the terraform.tfstate file and trying to do a "terraform ...
0 votes
0 answers
657 views

libvirt cannot start qemu-system-x86_64 for Unknown Error on m1 mac

This is the error I got from running virsh define ubuntu.xml on a m1 mac. error: Failed to define domain from ubuntu.xml error: internal error: Failed to start QEMU binary /usr/local/bin/qemu-system-...
0 votes
0 answers
80 views

Terraform-apply throws an error, but VM gets created successfully

I'm trying to create a Ubuntu VM using terraform and libvirt. The VM comes up successfully and I can also ssh into the VM by it's ens3 IP. But I see this error: Error: couldn't retrieve IP address of ...
0 votes
1 answer
527 views

virt-install is looking for iso image, when I want to use a qcow2 image

I'm absolutely new to stackoverflow, so I'm extremely sorry if my question has formatting issues. I created a VM using virt-install: virt-install \ --name guest \ --memory 2048 \ --vcpus 2 \ --disk ...
0 votes
1 answer
681 views

How to alert anomalies on network traffic jump with prometheus?

We want to detect if a VM in our IaaS infra is under DDOS attack or not. And We have several symptoms and metrics like: node_nf_conntrack_entries, node_network_receive_packets_total and also ...
1 vote
1 answer
1k views

libvirt doesn't create virtqemud-sock on macos

I've installed qemu and libvirt on macos big sur with m1 using macports. When i've tried install libvirt with homebrew, it was broken (asked /proc/cpuinfo, lol). Libvirt started as daemon, i've got ...
0 votes
0 answers
131 views

KVM vm machine is not booting up after image size increased

KVM vm is not booting up after I have made the below changes. Environment:- qemu-img version 2.1.3 ubuntu VM 1. Stop the VM 2. qemu-img resize vm1.img +50G 3. start the VM vm1 is not booting up &...
  • 11
0 votes
1 answer
575 views

libvirtd not enabled after install and shuts down after 2 mins

I have a brand new Fedora Server 36 minimal install and all it will run is KVM. Did the install with dnf group install "Headless Virtualization" and restarted the server. systemctl status ...
-1 votes
1 answer
469 views

Boot QEMU KVM with libvirt/sVirt but without using virt-install tool in command line

Can anyone help me on how to boot QEMU KVM with libvirt/sVirt but without using virt-install tool in command line. or using virsh tool
-1 votes
1 answer
2k views

VirtManager libvirt.libvirtError: internal error: process exited while connecting to monitor

I am using Archlinux with virt-manager and kvm. When I conifgured like this and I got these errors below. Can somebody help me solve it? Thank you a lot! Configration of Display Spice Configration of ...
0 votes
1 answer
383 views

SASL Error connecting to remote libvirt over SSH: No worthy mechs found

I have a server running Ovirt Node that I'm trying to manage remotely using libvirt. I have an SSH keypair installed and can ssh user@server -i ssh-privkey successfully. When I try to connect to qemu+...
  • 6,479
0 votes
0 answers
493 views

How to use the QEMU that I compiled with my libvirt? qxl error

I've been trying to run a QEMU that I compiled by myself. I could run it if I use plain qemu commands, but it gets wrong when I substitute the system QEMU with the one I compiled. If you use the virus ...

1
2 3 4 5
11