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.

libvirt is an API and toolkit for developing applications which manage virtual machine hypervisors, the virtual machines running under them, and virtual machine storage.

libvirt runs on Linux, Solaris and Windows.

libvirt supports the following hypervisors: KVM/QEMU, Hyper-V, VMware, Xen, VirtualBox, OpenVZ, LXC, User Mode Linux, and others.

libvirt suports the following storage: local file images, raw disk storage, LVM, FibreChannel, iSCSI, NFS.

650 questions
1
vote
1 answer

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?
Wang
  • 292
  • 1
  • 2
  • 11
1
vote
0 answers

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 server was running Ubuntu 16.04 and acts as a router…
1
vote
0 answers

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 ubuntu 20.04 because I want to create a windows 10…
Marietto
  • 143
  • 1
  • 10
1
vote
1 answer

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 .. .. And it seems to work fine. Now that I'm about to convert my storage from virtio-scsi to virtio-blk because it…
MrCalvin
  • 354
  • 1
  • 6
  • 18
1
vote
3 answers

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 /dev/vda1 98G 2.7G 91G 3% / tmpfs …
1
vote
2 answers

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 activating network: Call to virNetworkCreate failed:…
kolosov
  • 11
  • 2
1
vote
1 answer

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 elements (the one specified in the virt XML) Been looking in…
MrCalvin
  • 354
  • 1
  • 6
  • 18
1
vote
0 answers

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:
felinira
  • 111
  • 1
1
vote
1 answer

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?
user878965
  • 13
  • 1
  • 3
1
vote
2 answers

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 startup . The error is the following: 'kvm2' driver…
Ivan
  • 196
  • 1
  • 8
0
votes
1 answer

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 migrate a guest from one host to the…
Raspbeguy
  • 101
  • 1
0
votes
1 answer

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 virtual network interface a correct solution? and if…
Basur
  • 103
  • 2
0
votes
1 answer

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... almost. setup The server itself is a VM that runs on…
Alexander
  • 111
  • 8
0
votes
1 answer

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 use file, mapped to LVM logical volumes. First I…
Ierus
  • 1
0
votes
1 answer

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 to create vms on it. This command to update repos…
Tuyen Pham
  • 111
  • 5