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
1
vote
1answer
1k views

How can I add a usb device to a domain xml from an image file?

I don't (repeat DONT) want to passthrough a physical usb device. I'm making a usb img file like so: dd if=/dev/null bs=1K of=/tmp/test_usb.img seek=2040 mkfs.vfat /tmp/test_usb.img I am then ...
0
votes
1answer
41 views

Can't start domain cloned with virt-clone

2020-07-28 17:10 BST 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 ...
3
votes
4answers
6k views

KVM virt-clone while the VM is running

Is it possible to clone a running kvm machine without tools like virt-clone? They already have the original vm in production, I cannot shut it down. If I don't care about temporary data corruption (...
0
votes
1answer
159 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 ...
1
vote
3answers
4k views

How to replace of KVM image to other partition?

i have this structure of space of hdd-s: df -h Filesystem Size Used Avail Use% Mounted on udev 16G 0 16G 0% /dev tmpfs 3.2G 8.9M 3.2G 1% /run /dev/md2 ...
0
votes
0answers
13 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-...
7
votes
5answers
31k views

How can I change Qemu KVM machine architecture from 440fx to q35 with virsh edit or virt-manager

Still trying to get GPU passthrough working and decided to change machine type from older 440fx to q35 ie pc-q35 but if I do virsh edit on the config it refuse to save saying "PCI Bridges not ...
13
votes
3answers
29k views

How to change the default Storage Pool from libvirt?

I'm trying to use a different Storage Pool on KVM in order to store the virtual disks of my VMs and also the ISOs from the operating systems which I'm using. For example: I want to use the directory /...
0
votes
1answer
1k views

Using virt-builder to create image

I'm trying to automatically create cloud images using virt-builder. I am using the following command in Centos 7 and it keeps failing. Any idea behind the issue ? # virt-builder debian-9 -o /var/lib/...
0
votes
1answer
1k views

EL6/KVM guest dies with “pthread_create failed: Resource temporarily unavailable”

I've got a CentOS 6.5 x86-64 KVM server with a bunch of guest VMs of different breeds, mostly EL5 and EL6. However one and only one of them keeps crashing every couple of days with: pthread_create ...
3
votes
0answers
312 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
1answer
12 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
1answer
1k views

Accessing VirtualBox with libvirt from a guest

I have installed libvirt on OSX, and from outside a virtualbox I can access it using virsh no problem. However, I want to access it from inside a guest, and this is giving me the hopelessly useless ...
1
vote
0answers
50 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
3answers
401 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
0answers
54 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
89 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

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 ...
0
votes
1answer
111 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
53 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
1answer
213 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
1answer
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 ...
1
vote
1answer
2k views

KVM/Libvirt: How to make local DHCP leases available to local DNS server through dnsmasq

On Ubuntu 17.04 with libvirt 3.0.0 I have multiple virtual networks defined on my Server: # virsh net-list --all Name State Autostart Persistent ----------------------------...
0
votes
3answers
3k 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 ...
0
votes
1answer
71 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 ...
2
votes
2answers
10k 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 ...
0
votes
1answer
1k views

KVM/QEMU: Windows Guest (WindowsServer) add new drive with attach disk SSD

I would like to add a new drive to my Windows Guest (Windows Server 2016). Let's say D: I can not use network share(SAMBA,etc...). It is why I am trying to add new storage device. add in myVM.xml ...
0
votes
0answers
68 views

libguestfs: guestfs_launch fails — but i didn't even ask it to try

i recently started with Qemu/KVM and libvirtd/virt-manager/virsh etc. One the many cryptc "guides" for installation told me to install libguestfs, and so I did. I note that ...
0
votes
0answers
13 views

Vagrant libvirt management interface isolation

I'm trying to set up a CTF box, and have settle upon vagrant for managing my VMs. However, I seem to be unable to isolate the machines from each other, as the libvirt management interface is allowing ...
0
votes
1answer
2k views

How to start a new instance of QEMU based on the same image and snapshot?

I have a QEMU image (qcow2) with a snapshot stored in it. Right now I'm using libvirt to start it. However, I want to be able to run more than one instance of the same image snapshot. I guess I can ...
1
vote
3answers
146 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 /...
1
vote
1answer
2k views

How to permanently attach USB devices to a KVM vserver?

I run a Server using KVM and virt-manager (over SSH). Currently I have the following devices which I want/need in a KVm virtual machine: +----USB-HUB +- USB Smartcard Reader #1 +- USB Smartcard ...
1
vote
1answer
3k views

virsh attach-device for serial device

I would like to add a serial device (console) to a guest via the virsh attach-device command. I have a console.xml file containing: <serial type="pty"> <target port="0"/> </serial>...
1
vote
1answer
6k views

How I increase GPU video RAM in virt-manager?

I have this text in my XML <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' ...
0
votes
1answer
45 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
75 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
20 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/...
8
votes
3answers
6k 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. ...
0
votes
1answer
4k views

OpenStack instances power off by itself

Already asked this over on ask.openstack.org but I figured it would get more views here too. I am running OpenStack Mitaka on a 5 node cluster, 1 controller/network node and 4 compute nodes. I am ...
1
vote
1answer
36 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 ...
0
votes
0answers
13 views

KVM/Libvirt and TLS CA file

I need to setup TLS for our KVM based hypervisors (a mix of CentOS7 and CentOS 8). I have a server/client certificate set for each server, signed from our Intermediate CA. On each server the CA's ...
2
votes
0answers
75 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 ...
6
votes
5answers
9k 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 ...
0
votes
0answers
115 views

Connect from docker container to KVM Virtual Machine

I have one host with docker and KVM, and I would like to connect from a docker container to a KVM Virtual Machine. I was able to connect from KVM Virtual Machine to docker container, but not the ...
0
votes
2answers
122 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
25 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
52 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
2k views

Do not start guest after virt-install

I like to set up a new guest but do not want to start it immediately. I use virt-install with these options: virt-install \ --connect qemu:///system \ --import \ --virt-type kvm \ --...
0
votes
0answers
19 views

Can´t get GlusterFS unix Socket working with libvirt

I playing around to build an HA KVM-Cluster on CentOS 7.7. I build a 3 node setup and installed GlusterFS. The Glusterfs is working properly if i use the TCP protocol. But if i try to switch to unix ...

1
2 3 4 5
11