Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [libvirt]

The tag has no usage guidance.

0
votes
0answers
7 views

Create libvirt vm with a default network bridge

I'm currently trying to use a generic xml file to create virtual machines. My problem is that I cannot tell which adapter is present in the host system but I need a network bridge using the "default" ...
0
votes
0answers
15 views

Is there a security issue running libvirt-qemu as root to set rights on mounted host folder?

I'm trying to set up a server with 2 vms, which should be in productive mode later. I want to access some folders on the host, like log files and the webserver data folder, but the data on the host is ...
3
votes
1answer
44 views

Running an X11 application on a KVM guest so it displays on the host system

Is there an easy way of running an X11 application on a KVM guest system the way that it is displayed on the host system? I know I can ssh to a guest with X11 forwarding, but I am wondering if there ...
-1
votes
0answers
22 views

I want to run libvirt on a old PPC machine on X86, but libvirt exits with cpu error

I want to play some retrocomputing. And I know Qemu can run without problem under MacOS9. With this command line the vm starts OK: qemu-system-ppc -boot d -M mac99,via=pmu -m 512M -cpu G3 -prom-env '...
0
votes
1answer
34 views

Network Bridge for VM not working after reboot

I have a CentOS 7 host with a network bridge set up for guest VM's to use. All was well until a recent reboot. After the reboot, the guest VM does not have internet access, nor can it ping other local ...
0
votes
0answers
65 views

CentOS 7: Unable to complete install: internal error: libxenlight failed to create new domain

I have a problem with the installation XEN on CentOS. I did everything through virt-manager, I did not try through the commands, but there should be the same error as I understand it. Worth the ...
0
votes
1answer
193 views

How to change default text edior for virsh edit? (setting EDITOR env variable didn't work)

I recently installed virt-manager on an Arch Linux install, and unlike under Ubuntu, I was not prompted to choose a text editor on the first launch of virsh-edit. Instead, the XML file was opened in ...
0
votes
1answer
98 views

virsh: Connected to domain <name> Escape character is ^]

I'm having an issue with viewing output from a virtual machine installed via virt-install. I first used this method, but it left me with the following immediately after running: Starting install... ...
0
votes
0answers
48 views

Running libvirt with VirtualBox driver doens't work on 4 different distributions

I'm trying to run libvirt with VirtualBox driver without luck. We are planning to use libvirt for running out software tests in virtual machines on CI servers. Now we are testing our testing framework ...
0
votes
0answers
58 views

bind to vfio-pci or pci-stub at startup

I'm trying to bind a NIC to pci-stub or vfio-pci at startup so my libvirt-managed VM can use it on autostart, but the NIC keeps being claimed by ixgbe. I tried inserting into /etc/initramfs-tools/...
0
votes
1answer
203 views

QEMU USB passthrough broken after Ubuntu 18.04 upgrade

For the past 2 years I've been running a Windows VM to which I passed through USB devices. The devices were attached while the VM was running, using virsh attach-device vm_name config_file.xml, where ...
0
votes
1answer
155 views

Libvirt Ubuntu VM: files created on guest in shared folder given root-only access on host

I have created a Ubuntu VM on a server running Ubuntu Server 16.04.5 LTS using the following command: sudo virt-install \ --name TEST \ --memory 2048 \ --vcpus 2 \ --location 'http://archive....
2
votes
0answers
31 views

how to fix the devices name ordering in guest vm (devices name ordering changed after reboot vm by virsh)

my devices xml define: first vm only has a root volume, <disk type='file' device='disk' snapshot='external'> <driver name='qemu' type='qcow2' cache='none'/> <source file='/dev/...
2
votes
1answer
482 views

What's the difference between KVM, QEMU and libvirt?

I'm trying to understand how all the components of the VM ecosystem fit together. What's the difference between: KVM QEMU libvirt Which is controlled by virsh and virt-install? This comment says ...
2
votes
0answers
41 views

Nested Virtualization [closed]

I want to deploy openstack with nested virtualization enabled. Here is the scenario, on physical machine (Ubuntu 16.04) I have 2 VMs running, 1. kvm01 and, 2. cmp001 Kvm01: has 7 VMs up and running ...
0
votes
1answer
487 views

How to install latest virt-manager in Debian?

I'm using Debian stable and in debian stable virt-manager version is 1.4.0, but I need to use version 1.5.1 because 1.4.0 has one bug. I went to https://virt-manager.org/download/ and downloaded ...
1
vote
0answers
567 views

Changing libvirt emulator: Permission denied

I'm trying to use a binary of Qemu that I compiled using this tutorial, since the version of Qemu that's packaged with my OS, Debian, doesn't seem to support OpenGL acceleration with Spice. After a ...
3
votes
1answer
356 views

provision a serial console on a VM for virtual appliance using virt-install

I have a virtual appliance(qcow2 image) which requires serial console on a VM. In other words, I do not need to install anything. I simply need to boot up the VM from this qcow2 disk and access the ...
0
votes
0answers
110 views

libvirt and kvm/qemu, password on console redirection/serial doesn't work

I have added a serial,and a console to connect my vm without X using this command. virsh console myvm Unfortunately my vm has a luks encrypted root and..I can put the password only from graphical ...
0
votes
0answers
29 views

Why serial of libvirt using pts/* is avaliable only to root?

I have a old vm,no networking(sic!) so I use the old good serial for comunicate from host. On libvirt/qemu is possible to setup a pseudotty pts like a real serial port. Serial is ok on guest,on host ...
0
votes
1answer
363 views

libvirt and virt-manager - Unable to complete install: 'internal error: unsupported input bus usb'

I'm following the steps below to create a virtual machine using Xen as hypervisor and virt-manager (libvirt) as the management module. When trying to create the virtual machine I am getting the ...
2
votes
0answers
180 views

Files written in QEMU guest via VirtIO / 9p belong to user libvirt-qemu

I have this QEMU virtual machine running Debian Stretch, inside a host also running Debian Stretch. The guest mounts a host directory via VirtIO and 9p: Virtual Machine Manager, Filesystem settings: ...
0
votes
1answer
188 views

Slackware and libvirt with qemu, why vm run as root?

I configure libvirt to use "users" group to run vm's grep -w users /etc/libvirt/qemu.conf # unix socket. This prevents unprivileged access from users on the # unix socket. This prevents unprivileged ...
1
vote
1answer
422 views

Kernel panic in KVM guest after Fedora 27 - libvirt update

After recent Fedora 27 update, my KVM VM guest ended up in the kernel panic during boot process. The system was updated to libvirt-3.7.0-4.fc27.x86_64 (and many other packages during this update) and ...
0
votes
0answers
28 views

Guest VM GUI foreground when boots up

I am creating Guest VM Rhel 7.2 ( in my case) through Vagrant and provider is Vagrant-libvirt. Command used to boot up :- Vagrant up VM boots up correctly but Guest VM boots up shows in virt-manager ...
2
votes
0answers
335 views

Rename qcow2 internal snapshots created with virsh snapshot-create-as

Background I have a QEMU/KVM virtual machine whose virtual disk is a qcow2 file. To create snapshots, I have been using sudo virsh snapshot-create-as <vm_name> <snapshot_name> and now I ...
0
votes
1answer
102 views

kvm Spice graphics error: failed to get_drawable

I'm running KVM on an Ubuntu server 16.04. I'm trying to change the resolution of a vm running a desktop environment. to do so I use virt-viewer from remote to connect to the vm: virt-viewer --...
0
votes
0answers
37 views

How to find the tree of schedulable entities in Linux?

I am trying to set the nice values of my VMs (KVM + QEMU). I do this by: ps -u libvirt-qemu # get pid of qemu-system-x86_64 process. ls /proc/${PID}/task/ # get pid of the CPU 0/KVM thread. renice -n ...
0
votes
0answers
283 views

Change default qemu VNC port range

I have changed the default VNC port range inside the qemu configuration file like the following: remote_display_port_min = 59900 remote_display_port_max = 59920 So based on the above, when I have a '...
2
votes
1answer
414 views

Corsair K95 keyboard qemu passthrough to Windows 10. Not working

I cannot get my keyboard to pass through to the virtual machine. It disconnects from my host machine like it is going to work, but does not. Interestingly, in order to reuse my keyboard on my host ...
0
votes
1answer
347 views

Cannot access the libvirt URI

I have a legacy VM I need to take apart and it is running a couple of boxes and using libvirt/qemu/kvm. When I run virsh -c qemu:///system list it gives me all the running instances. However ...
0
votes
1answer
244 views

Custom vagrant box for libvirt and ssh

I have followed this instruction and tried to prepare my own vagrant box: how to create custom vagrant box from libvirt/kvm instance? Unfortunately I am facing one issue. Vagrant up hangs on: ==> ...
3
votes
1answer
2k views

qcow2 actual size

I am little bit confused with the real size of qcow2 files. ls -alh VMs/ubuntu-mini.qcow2 -rw------- 1 root root 21G mar 31 23:15 VMs/ubuntu-mini.qcow2 du -h VMs/ubuntu-mini.qcow2 2,7G VMs/ubuntu-...
1
vote
2answers
2k views

libvirt / kvm - how to get the ip address of virtual machines on a bridged network? [closed]

From the libvirt / KVM host, I want to get the IP address of running virtual machines that are connected to the network via a bridged adapter. Important: I know how to get the IP address when the ...
0
votes
0answers
177 views

Allow unprivileged LXC container to shutdown the host

I am running a KVM-QEMU VM inside an unprivileged LXC container. The customer requested that when a user shuts down the VM, the entire host shuts down. I am using a libvirt hook to shutdown the LXC ...
0
votes
1answer
2k views

Spice for graphic, pulseaudio for sound

When we use Spice in a virtual machine under KVM/qemu/libvirt, the QEMU_AUDIO_DRV is set to spice by default. My host (debian-Stretch) use a good sound card (Xonar DX) and a better sound driver (...
-1
votes
1answer
173 views

Getting the error “getopt.h:85:29: fatal error: getopt-pfx-core.h: No such file or directory” while trying to compile libvirt [closed]

In trying to compile an old version of libvirt (to see if I can get some old patches up to date, see https://www.redhat.com/archives/libvir-list/2014-March/msg00106.html), I get the error: getopt.h:...
0
votes
1answer
931 views

KVM: Can not destroy VM (Permission denied) - AppArmor blocking Libvirt

Every time I run virsh destroy ${KVM} as root I get the following error (virsh shutdown ${KVM} is showing absolutely no reaction, nothing happens): error: Failed to destroy domain ${KVM} error: ...
2
votes
0answers
47 views

How to troublehsoot randmonly hanging libvirt vms?

I am frequently (maybe every other night) finding that 1 or more of my libvirt guests going into some sort of hung state overnight. basically, they seem to work fine when I quit work in the evening, ...
1
vote
1answer
1k views

How can I manually trigger the virtio balloon driver on a guest?

I would like a certain Linux guest running in QEMU to release memory before the host is under memory pressure. How can I manually trigger the virtio balloon driver on a guest so that it releases as ...
1
vote
1answer
321 views

Cannot start domain after adding Filesystem shared dir Fedora 27

I created a fedora 27 guest on my fedora 27 host, added 2 Filesystem shares, added entries in the guest/s fstab, booted, and all works fine. However, when i try to add another drive/mount from the ...
2
votes
0answers
630 views

Building a box with packer that runs on vagrant-libvirt

I would like to build a debian stretch to run on vagrant with the libvirt provider. I have tried building from scratch and also with packer and the best I get is a OS not found error on the reboot or ...
1
vote
0answers
506 views

Passing USB controller to VFIO Virtual Machine

Im running a Windows 10 VM using qemu version 2.10.1 on kernel 4.14.1 with a GPU passed through. I can also pass through an Intel-based USB controller. So far so good. My Intel USB controller does ...
0
votes
2answers
770 views

virt-install --disk size=10 does what?

How can I get read/write permissions to browse the guest filesystem from the host? (Presumably it's only safe when the guest is shutdown.) Where is the default path, as below, for the guest ...
1
vote
1answer
1k views

Make available a physical disk to existing Windows VM

Problem: I have a new SATA drive I wish to sysprep with a Windows installation. I only have Windows virtualised on my PC. My Solution: Attach (passthrough) the entire drive to the Windows VM and ...
0
votes
0answers
1k views

Assign public IP address to KVM VMs with DHCP and routed networking

I have a physical VM host with multiple VMs in qemu-kvm and a set of public 8 IPv4 addresses and an IPv6 subnet that I easily want to assign to the VMs. It equals this chart from Configure public IP ...
0
votes
1answer
118 views

libvirtd: symbol lookup error: /lib64/libvirt.so.0: undefined symbol: ssh_get_publickey [closed]

I have a lite problem with libvirtd . I do not use kvm by few mouth and after upgrade from fedora 25 to 26 . Re-installation all packages libvirt does not help #libvirtd -d ...
1
vote
2answers
485 views

KVM Static Public IP CentOS 7

Hi I have a physical server running CentOS 7.3 with one interface connected to the Internet eno1(with one public IP address 217.33.44.17). I also have a block of IPs I would like to add so when i ...
1
vote
1answer
2k views

What is the actual default networking type in gnome-boxes using qemu:///session?

According to the author of this post : http://blog.wikichoon.com/2016/01/qemusystem-vs-qemusession.html "gnome-boxes originally used usermode networking, but switched around Fedora 21 timeframe to ...
1
vote
0answers
350 views

VM: how to virsh managedsave-remove from the libvirt QEMU hook?

I need to do "virsh managedsave-remove VMname" from a libvirt QEMU hook. https://www.libvirt.org/hooks.html says: "Calling libvirt functions from within a hook script - DO NOT DO THIS!: A hook script ...