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
145 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
1answer
72 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
376 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 ...
1
vote
0answers
388 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
98 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
2k 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
1k 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 ...
0
votes
1answer
1k views

libvirt cannot create default network

I can't start the default network for libvirt. I get the error in journalctl: Jun 06 15:22:43 jenia libvirtd[889326]: Unable to create bridge virbr0: Package not installed I did installed the ...
1
vote
3answers
429 views

How to reduce KVM qcow2 disk size?

When I boot in my guest Debian it says it size is 2.7G. df -h Filesystem Size Used Avail Use% Mounted on udev 718M 0 718M 0% /dev tmpfs 147M 6.2M 141M 5% /run /...
0
votes
1answer
238 views

Libvirt: “The CPU is incompatible with host CPU”

I'm exporting a domain from 'old pc' to 'new pc' # Export domain (from old pc) ssh user@"$REMOTE_IP" "virsh --connect qemu:///system suspend --domain magento-base > /dev/null 2>&1" ...
4
votes
1answer
322 views

Where are libvirt “saved states/snapshots” stored?

I have a .qcow2 image, and I can port it easily to a different computer. But I'd also like to port its saved state. Where are they stored? I'm on Manjaro/Arch.
0
votes
1answer
39 views

libvirt: ERROR Host does not support any virtualization

That's when I run the command 'virt-install' virt-install --connect=qemu:///system --name=mymachine --ram=4096 --vcpus=2 --check-cpu --os-type=ubuntu --vnc --accelerate --disk=/home/myuser/mymachine/...
2
votes
1answer
82 views

libvirt KVM virtualisation - define some guests to use one NIC, others to use a different NIC?

I am running 30 libvirt-defined KVM VMs on a server with two physical NICs (1Gbps). Currently I'm using NATted virtual networks, defining the VMs' interfaces (as part of a full VM definition, not a ...
2
votes
0answers
132 views

Virtual machine network issue with host and ping service checks (within Nagios Core and from command line)

I have got a Ubuntu server guest virtual machine (installed via virt-install) which runs Nagios Core monitoring but there is a major issue with the monitoring (i.e. ping packet loss / RTA or ...
0
votes
1answer
208 views

Unable to access console or SSH on Amazon Linux 2 KVM image

I am trying to create a KVM guest instance running Amazon Linux 2 in an on-premises environment, on a CentOS 7 host. I am doing this over SSH (e.g. my local machine -> SSH to the CentOS host). I know ...
1
vote
2answers
784 views

libvirt uses ipv6, ipv6 disabled on host

This question was the same I have found to my issue. It has no answer. I am running vagrant on my Ubuntu and have ipv6 disabled. When I create an image with vagrant, libvirt returns: Error while ...
1
vote
1answer
752 views

Where are the OS specific properties located used by virt-install --os-variant

Using virt-install ... --os-variant win10 ... virt-install create a new VM optimized for Windows 10. But where are those OS specific properties located? E.g. machine-type and the <hyperv> ...
0
votes
1answer
503 views

iptables port forward not working with libvirtd VM

For some reason, I'm unable to connect to my server inside a VM from the outside world, but I can definitely connect to my server from the hypervisor. The server application runs on ports 27500 and ...
2
votes
2answers
212 views

Terraform Libvirt - How to use local qcow2 file in the hypervisor instead of cloud images?

It seems like the libvirt provider only takes pre-defined cloud images. I create my own base qcow2 image that is local to the hypervisor and wish to use it as source file with terraform libvirtd. Is ...
1
vote
0answers
90 views

libvirt qemu AppArmor 9p hard links

I am using libvirt with qemu on a debian host. One virtual machine has a 9p mount point defined: <filesystem type='mount' accessmode='mapped'> <source dir='/mnt/pool/share'/> <...
0
votes
1answer
181 views

KVM, libvirt, and LVs inside LVs

I have a Debian server running KVM+libvirt. The VMs disks are LVs on the host. The trouble is that if I create LVs inside the guests, they are recursively detected on the host and that creates all ...
1
vote
1answer
2k views

Use Thin LVM Volume for KVM VM

I now we cannot use thin LVM volumes with libvirt. Is there any other alternative allowing use of LVM thin provisioning in KVM/QEMU virtual machines?
0
votes
1answer
83 views

How to setup port forward

I have a VM that I manage with libvirt and it has a service running on port 9100. I want to forward the VM's port to the host, so that if I go to localhost:9100, I will be redirected to the VM. I ...
0
votes
1answer
73 views

Enabling DHCP on Linux Host for libvirt VMs

This is a follow up question from here: How to disable default DHCP on virbr0 and obtain IP from DHCP on host I have a Ubuntu server 18.04, with Libvirt based Virtual Machines setup over virbr0 ...
0
votes
1answer
2k views

How to disable default DHCP on virbr0 and obtain IP from DHCP on host

I have a Ubuntu Desktop, with Libvirt based Virtual Machines setup over virbr0 bridge. Currently libvirt's default DHCP server (dnsmasq) provides IP address assignments. root@ngadre-Inspiron-3542:/...
0
votes
1answer
945 views

how libvirt cputune config goes to qemu-kvm

I am porting xml libvirt config to qemu executable arguments. Simply I have .xml vm config from virsh edit vm-name and I want to run the same vm machine by executing qemu-system-x86_64 with special ...
4
votes
2answers
5k views

Libvirt has no KVM capabilities even though qemu-kvm works

I've learned that CirrusCI offers nested virtualization in their free package for public repos and I am trying to make use of it for testing my Ansible playbooks. Unfortunately, libvirt is insisting ...
1
vote
1answer
554 views

libvirt NAT configuration - DHCP does not work

I want to use libvirt network NAT configuration. libvirt says https://wiki.libvirt.org/page/Virtual_network_%22default%22_has_not_been_started: "1) If you're not actually using dnsmasq on the ...
1
vote
2answers
2k views

virsh: failed to connect to hypervisor as user

I'm currently running a RHEL 7.7 operating system. I was trying to setup minkube environment using kvm2 driver, so what happens is that minikube starts pretty, but with some errors during the ...
0
votes
1answer
109 views

Libvirt migration hostname

I've set up two libvirt nodes with the following hostnames: mycompany-hv-01.example.tld mycompany-hv-02.example.tld The names are declared in a public DNS and resolvable (public IPs). When I try to ...
2
votes
1answer
1k views

How can I make my libvirt/KVM guest see all IPv4/UDP multicast traffic?

I have an issue with IPv4/UDP multicast traffic not being fully visible from within a KVM guest. The guest has a dedicated NIC which is attached using MacVTap. Both the host OS and the OS in the ...
0
votes
1answer
50 views

Host How to filter network access for a windows 10 guest

Ive setup a VM containing windows 10 Pro, but i would like to blacklist centrain dns entries and ip v4/v6 addresses. ive searched for bridged networks but did not found any matching solution. is a ...
1
vote
1answer
1k views

problems with bridge-networking libvirt on centos 8

I am running a centos 8 as virt-host with libvirt an kvm/qemu. Networking is set to bridge-mode with virbr0. Suddenly and over-night this stops working: The clients don't connect anymore, and if I try ...
1
vote
1answer
1k views

libvirt & openvswitch VLAN tagging on the fly

I'm working on a project using libvirt with qemu and openvswitch on Debian 10. I would like to be able to modify the configuration of a network card of a domain in bash with the update-device command ...
1
vote
2answers
1k views

Libvirt and macvtap issue on Arch Linux [closed]

I'm using Arch Linux (up to date) with QEMU-KVM, libvirt and virt-manager as a front. I have several VMs, but only one running at a time so far. The VM I'm trying to get to work is on Debian 10, but I ...
2
votes
0answers
2k views

Migrating from libvirt + iptables to libvirt + nftables

I'm about to migrate a Debian Stretch host using qemu-kvm to Debian Buster. I've seen people complaining on the Internet about issues due to nftables becoming default in place of iptables and libvirt ...
1
vote
1answer
677 views

QEMU/KVM/libvirt macvtap VEPA not working - ARP request not forward

Hi I've been struggling to get guest networking working when using a macvtap in VEPA mode between two VMs on a host. I've spent hours (days) googling with no joy. Does this network configuration ...
0
votes
1answer
620 views

postfix server on VM - mail relay

I've setup a mail server according to this setup: https://thomas-leister.de/en/mailserver-debian-stretch/ The documentation itself looks quite good to me - is well explained and seems to work... ...
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
1answer
278 views

virt-sysprep doesn't change hostname

I use KVM-based virtualization on my fedora 30 OS to run 3 virtual machines, runnung Ubuntu 18.04 LTS with a mini Hadoop cluster for test purposes. The storage for virtual machines in configured to ...
0
votes
1answer
325 views

customize qcow2 ubuntu image fail

I download qcow2 ubuntu 18.04 img from here: https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img I want to add some packages into qcow2 image before use it as a base img ...
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 ...
0
votes
1answer
618 views

Possible to create libvirt network as non-root?

My end goal is to be able to use libvirt.uri = 'qemu:///session' with Vagrant, which means creating machines as non-root, but in order to do that I need to have a default libvirt network as non-root, ...
0
votes
1answer
54 views

Why libvirt bhyve guests does not reboot?

I have libvirt with bhyve driver on FreeBSD 12. I have FreeBSD guests and Linux guests with UEFI. Both are not able to reboot, just stops when a reboot command issued inside the guest.
1
vote
1answer
375 views

How to build a virtual machine in an encrypted container with virsh

I would like to use the volume encryption mechanism of libvirt. However, I was unable to find information about how to use this feature when running virt-install. How do I pass the related options? ...
0
votes
1answer
95 views

libvirt hot unplug cpu

I'm currently working with libvirt. after i reduce the number of vcpu cores with below command, the operation will be completed successfully. i should also mention that my current and max vcpus is 4, ...
1
vote
0answers
452 views

libvirt “default” network not adding correct IP address ranges to bridge “virbr0”

I'm running libvirt on ArchLinux using its default network with manually created nftables rules. I noticed that libvirt's DHCP server wasn't assigning IP addresses to VMs: journalctl -u libvirtd ...
0
votes
1answer
47 views

virsh: networkGetBridgeName error

I'm trying to configure foreman. So far I connected foreman to one of our KVM hosts. Specifically, this is a libvirt and we are using virsh for managing it. When I try to create VM in foreman I'm ...

1
2
3 4 5
12