Questions tagged [libvirt]

daemon and clients to manage virtual machines and containers

0
votes
0answers
5 views

Kiosk mode in virt-viewer shows white screen

I am running on Arch Linux 5.1.14 with DWM as WM. I have an instance of Windows 10 running in KVM. I see it with virt-viewer and would love to be able to utilize kiosk mode to let the user ...
0
votes
0answers
6 views

Qemu-kvm using virt-viewer vs remote-viewer

Host: Ubuntu 18.04 Guest: Ubuntu 10.04 I started a virtual machine with the following command line: qemu-system-x86_64 G.qcow2 -m 4096 -smp 4 -no-acpi -enable-kvm \ -name system76 -device ...
1
vote
1answer
36 views

Nothing happened when trying to add new vm on virt-manager

I try to create new vm or see connection details with virt-manager but nothing append, no popup, no error message, nothing. see here: i click but nothing append i use arch with kde libvirtd is ...
0
votes
1answer
16 views

Centos7 libvirt permission issues qcow2 images

This is all on a clean install of Centos7. Installed from minimal image, updated and then the following guide followed. Following this guide: https://www.cyberciti.biz/faq/how-to-install-kvm-on-...
0
votes
0answers
15 views

libvirt will not start VMs with “error: Invalid value '+cpu' for 'cgroup.subtree_control': Invalid argument”

On one workstation I have, libvirt has stopped working; it'll no longer start VMs: $ virsh --connect qemu:///system 'start westerley-pool' error: Failed to start domain westerley-pool error: Invalid ...
0
votes
1answer
25 views

What's the function of `virbr0` and `virbr0-nic`?

In my CentOS 7.2, I installed the below packages: yum install -y epel-release qemu-kvm libvirt virt-install bridge-utils then when I show ip a: [root@localhost ~]# ip a 1: lo: <LOOPBACK,UP,...
0
votes
0answers
32 views

Failed to start LSB: daemon for libvirt virtualization API

I am trying to install cobber(https://cobbler.github.io/) in centos VM. when I tried to start cobbler , libvirtd fails to start message thrown. [root@dev cobbler]# systemctl start cobblerd Job for ...
1
vote
0answers
66 views

How to update libvirt to passthrough md-clear?

There are new 4 CVE CVE-2018-12130 CVE-2018-12126 CVE-2018-12127 CVE-2019-11091 Debian stretch kernel is vulnerable https://security-tracker.debian.org/tracker/CVE-2018-12130 Even if you get a ...
0
votes
0answers
46 views

libvirt: Permission denied for disk volume file

I'm trying to create a qcow2 volume with libvirt+qemu in a custom volume pool, then consuming that volume in a new domain. When trying to create the volume, I get an error from qemu-system-x86_64: ...
3
votes
1answer
163 views

Does VirtIO storage support discard (fstrim)?

$ uname -r 5.0.9-301.fc30.x86_64 $ findmnt / TARGET SOURCE FSTYPE OPTIONS / /dev/vda3 ext4 rw,relatime,seclabel $ sudo fstrim -v / fstrim: /: the discard operation is not supported Same VM, ...
0
votes
2answers
35 views

Can't install windows guest on virt-manager

I can't seem get a windows guest installed on virt-manager. When I start the machine before the install cd loads I get a blue screen with code SYSTEM THREAD EXCEPTION NOT HANDLED. Here's the logfile ...
0
votes
0answers
24 views

virt-customize modifications not present in guest VM

I am trying to make some changes in the Ubuntu cloud image. For start, i am trying to copy a file from the host to the guest vm or create a dir via --run-command. However, none of the modifications ...
2
votes
1answer
79 views

Understanding how virt-install connects the Ethernet interface in host machine with the Ethernet interface in the quest?

I installed Debian virtual machine with virt-install in a way that guest got one Ethernet interface named vnet0: $ virsh domiflist git-server Interface Type Source Model MAC ---------...
1
vote
1answer
72 views

`cat` behaves strangely on a mounted virtio directory

When I'm in a mounted directory (9p) on my gentoo-guest and do the following: TMPDIR='./foo' # The directory './foo' exists and the name 'TMPDIR' is important cat <<EOF hello world EOF I get ...
0
votes
1answer
52 views

qemu-system-x86 --enable-kvm Windows 2k12 R2 stuck at windows logo

I am having an issue with kvm-qemu. Host: Ubuntu Guest OS is win2k12 R2. When the VM is booted, some times it get stuck at windows log or it pass the windows log & get stuck at a black screen. I ...
0
votes
2answers
47 views

virsh preboot script

I am running a virtual machine that requires vfio access to a PCI card. Using this script I am able to successfully bind the PCI device and its iommu group to vfio-pci, which then lets me boot up the ...
0
votes
0answers
28 views

Windows 10 guest under libvirt can't use network

I have a libvirt (libvirtd 3.0.0) install with several guest VMs all under kvm. I'm using bridged networking on the host to allow them full access to the networks. The host OS is Debian (stretch). ...
0
votes
0answers
12 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
43 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
105 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 ...
0
votes
1answer
59 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 ...
2
votes
0answers
19 views

Why is the wrong number of vCPUs assigned to the VM unless the topology is declared?

I'm running kvm on a MPU system with two Xeon E5-2680v2 @ 2.8GHz CPUs. All my VMs are Windows boxes, predominantly version 10. libvirtd is in version 5 though I experienced the described issues also ...
0
votes
0answers
112 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
632 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
314 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... ...
1
vote
1answer
208 views

Command Line equivalent to virt-manager GUI VM creation

I have been using virt-manager to create KVM VMs on my Ubuntu 18.04.1 host. I would like to now create the same VMs from the command line. I customize the VMs before beginning installation - ie ...
0
votes
0answers
102 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
109 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
493 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
0answers
121 views

Show iptables, ebtables etc rules created by libvirt

I'm using libvirt with qemu on a ubuntu bionic system. I'd like to inspect what network filtering rules are actually created in the system for the nwfilter rules when I run a qemu/kvm guest with ...
0
votes
1answer
291 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
34 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
1k 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
48 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
618 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
1answer
766 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
486 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
122 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
63 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
547 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 ...
5
votes
0answers
750 views

virNetSocketReadWire:1801 : End of file while reading data: Input/output error

Every time I start/stop a KVM, the libvirtd 3.0.0-4 throws the following error in syslog: libvirtd[3145]: 2018-08-07 21:00:19.699+0000: 3145: \ error : qemuMonitorIO:710 : internal error: \ ...
2
votes
0answers
243 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
246 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
524 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 ...
1
vote
0answers
297 views

connect qemu/kvm(managed by virsh) VM to an existing tap device

I'm using virsh to manage my qemu/kvm VMs. Problematic VM has the following interface configuration: <interface type='bridge'> <mac address='52:54:00:92:f7:f8'/> <source bridge='br-...
2
votes
0answers
398 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
115 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
325 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
457 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
365 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 ...