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
1 answer
145 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.
6 votes
3 answers
18k views

Routing networking on kvm

There are a lot of configuration used for Kvm-networking. But i'm not able to get to the guest from the host or outside. I'm working on Ubuntu 11.04. On the guest i've a WindowsXp with dhcp. I want ...
1 vote
0 answers
595 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 ...
1 vote
1 answer
549 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, ...
0 votes
1 answer
959 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
1 answer
907 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 ...
3 votes
0 answers
2k 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 ...
0 votes
1 answer
417 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 ...
1 vote
0 answers
563 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
0 answers
1k 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
0 answers
133 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
0 answers
26 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
1 answer
2k 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
1 answer
5k 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 ...
3 votes
1 answer
5k 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 ...
2 votes
1 answer
3k 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 ...
3 votes
1 answer
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 ...
0 votes
3 answers
4k views

Guests can't access KVM host server by name although nslookup and dig returns correct record

So I have a KVM host that also runs an apache server with some yum repos. The VM guests are connected to the default virtual network, which is configured to offer DHCP and forwarding with NAT on ...
2 votes
2 answers
12k views

Adding Virtio block devices at runtime in Libvirt KVM

I'm running Debian Wheezy Beta 4 with KVM based guest systems which run the same operating system. I'm using LibVirt to manage the virtualisation. What I would like to do is to attach an LVM based ...
1 vote
3 answers
2k 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
1 answer
2k 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
1 answer
1k 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
1 answer
219 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/...
11 votes
3 answers
19k views

Networking between KVM VM and docker container on same host

On a Debian-Stretch host (connected to physical LAN) I have a new docker installation (v18.09) with one database container (port mapped to the host) and I run KVM/libvirt with some Debian-Stretch VMs. ...
2 votes
1 answer
267 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
0 answers
434 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 ...
11 votes
5 answers
24k views

How to add virtual storage as SSD in KVM

Being previously a VirtualBox user, I moved to KVM(QEMU/libvirt or whatever it's called) recently. I know that in VirtualBox, when you add a new storage device to the VM, there is a checkbox labeled ...
1 vote
2 answers
2k 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
1 answer
3k 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
1 answer
571 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 ...
2 votes
1 answer
2k 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-...
1 vote
0 answers
212 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'/> <...
10 votes
4 answers
28k views

virt-install cannot use ISO file as location

I am using the following script to install a new Fedora Server virtual machine virt-install \ --name theta-1 \ --ram 8000 \ --disk path=/dev/vg/t1.img \ --vcpus 8 \ --os-type linux \ --os-variant ...
0 votes
1 answer
369 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 ...
2 votes
3 answers
9k views

Set startup order for KVM virtual machines via libvirt?

I have some server applications failing because their virtual machine starts up before the database virtual machines. Anyway to configure libvirt to start them up in a certain order and possible ...
1 vote
1 answer
4k 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
1 answer
155 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
1 answer
562 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
1 answer
2k 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 ...
0 votes
1 answer
6k 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:/...
1 vote
1 answer
3k 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 ...
6 votes
1 answer
11k views

host port forward with qemu through libvirt in user-mode networking

I'm having trouble editing my libvirt's host-xml to make qemu forward TCP connections to the guest. This questions linked to a blog post which recommended adding -redir to the Qemu command line. But ...
1 vote
2 answers
5k 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
1 answer
404 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 ...
0 votes
1 answer
236 views

Domain.xml not Updating For Console Directive

Good afternoon, I'm following the instructions here in order to get console access from libvirt The problem I'm having is the domain.xml does not accept the new changes. I have also done the ...
0 votes
1 answer
109 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
1 answer
1k 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 ...
1 vote
1 answer
3k 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
2 answers
2k 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 ...
0 votes
1 answer
1k 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... ...

1
3 4
5
6 7
13