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
2 answers
9k views

check a vps guest memory usage and CPU usage

I have vps guests that are managed by KVM and libvirt. Using virt-df, I am able to check the real disk usage of each vps guest. #virt-df [--options] -d domname Is there a similar utility tool to ...
Purres's user avatar
  • 239
1 vote
2 answers
5k views

libvirt and network filtering with nat - iptables overrides

At first, I want to say: I know, it was done initially wrong and I want to avoid doing everything again from the scratch because of general downtime. I am running libvirt/KVM on RHEL. I've got VM ...
GioMac's user avatar
  • 4,634
1 vote
1 answer
11k views

Not able to start virtual machine/domain in KVM: Failed to get "write" lock

After host's restart, I'm not able to start virtual machine: user@server-1:~$ virsh start docker-1 error: Failed to start domain docker-1 error: internal error: process exited while connecting to ...
laimison's user avatar
  • 629
1 vote
2 answers
2k views

KVM hosts to be accessible from outside world for server purpose In centos 7

Today i just ran into a problem i just wanted to ask a question to all of you I have just install kvm in my system and i have some how managed to get a node installed and working in the system Now ...
sanjib's user avatar
  • 73
1 vote
1 answer
387 views

Assign ethernet alias to KVM guest

I have a pool of IP addresses and a single ethernet cable. I have set aliases: auto enp2s0:0 iface enp2s0:0 inet static address x.x.x.x netmask x.x.x.x I want to dedicate some of the aliases to ...
Laurent's user avatar
  • 456
1 vote
1 answer
230 views

Limiting access to one libvirt domain via polkit (older .pksa format)

I have a hypervisor running libvirt on a Ubuntu 18.04 system. I need to configure access so that user 'joe' can only manage one domain. Recently, policykit moved from the .pksa configuration files ...
lorenzog's user avatar
  • 2,889
1 vote
2 answers
2k views

libvirt: difference in exposing LVM logical volumes VS libvirt storage pools

I started learning how to create a good virtualization stack with libvirt. I have created a LVM Volume Group that exposes a device block made of a Linux RAID. My idea is to give a Logical Volume to ...
Germano Massullo's user avatar
1 vote
1 answer
1k views

Switching back to libxl from xend without rebooting

I did something dumb: I enabled xend over libxl and started an instance with xend. Now, libxl won't start any instances, even though I got rid of all the xend instances and stopped xend: root@xen1 [~...
Deltik's user avatar
  • 314
1 vote
1 answer
3k views

Why can't I shutdown running kvm instance?

I have running kvm instance: =# virsh list --all Id Name State ---------------------------------------------------- 2 debian-test running When I ...
user195086's user avatar
1 vote
1 answer
422 views

Prevent hijacking IPs in a bridged network (KVM/libvirt)

Is there a solution to prevent a VM user assign/use IP addresses he doesn't own but are routed over the same bridge like his own addresses? The current setup looks like this with libvirt and KVM: ...
nazco's user avatar
  • 397
1 vote
1 answer
5k views

Libvirt / QEmu Machine Fails and Refuses Restart Because of Memory Allocation Errors

I'm having a problem with libvirt. On a system restart all virtual machines (VMs) are started without a problem and keep running. Then at some point in time a set of machines shuts down according to ...
Elmar Weber's user avatar
1 vote
3 answers
15k views

NAT via iptables and virtual interface

I'm trying to implement the following scenario: One VM-host, multiple guest VMs, each one gets its own IP-address (and domain). Our server has only one physical interface, so the intended use is to ...
Alex's user avatar
  • 538
1 vote
1 answer
3k views

Libvirtd start error

I had to remove libvirt manually using kill. Now when I'm trying to start libvirtd it says error: Unable to initialize network sockets. Check /var/log/messages or run without --daemon for more info. ...
bonzi's user avatar
  • 151
1 vote
1 answer
3k views

KVM and libvirt: How to configure a new disc device to an existing VM?

I've got an Ubuntu 9.04 server running two VM's. In /etc/libvirt/qemu/machine1.xml two disk devices are defined like this: <devices> <emulator>/usr/bin/kvm</emulator> <disk ...
initall's user avatar
  • 2,375
1 vote
1 answer
451 views

Raw LVM disk write is four times faster on host than inside KVM guest?

I've got a Debian 10.6 Host, with a Debian 10.6 guest. KVM/Qemu/libvirt. The host has a software RAID 10 array with 6 mechanical disks. LVM is on top of the RAID array. One LV is passed into the guest ...
Nick's user avatar
  • 4,656
1 vote
1 answer
2k views

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's user avatar
  • 322
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 ...
Ivan's user avatar
  • 196
1 vote
1 answer
2k views

Possible to create libvirt network as non-root?

My end goal is to be able to use libvirt.uri = 'qemu:///session' with Vagrant, which means creating machines as non-root, but in order to do that I need to have a default libvirt network as non-root, ...
Sandra's user avatar
  • 10.6k
1 vote
2 answers
4k 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 ...
akira2x3x's user avatar
1 vote
1 answer
20k 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' ...
user490809's user avatar
1 vote
1 answer
2k 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/...
codingfreak's user avatar
1 vote
2 answers
2k views

Why doesn't libvirt "Usermode Networking" start on boot?

Running Ubuntu 16.04, the default virbr0 interface is not started by default for me on boot, meaning I have to start it manually using the command, $ sudo virsh net-start default Not a big deal ...
Chris Steinbach's user avatar
1 vote
2 answers
3k views

Is there anyway to do a live qcow2 backup without pausing vm's?

I'm trying to setup a KVM backup solution for our servers that would take live backups without stopping the system. I Found several ready scripts which i have tested, but they all either stop or "...
Nanoni's user avatar
  • 123
1 vote
2 answers
4k views

Libvirt: one NIC, multiple VM, all with Bridged mode

I have a question, is it possible to add one host NIC to multiple Virtual machines in libvirt with both of them using it as bridged mode. I've ran out of NIC-s and I still have 2 VM-s who need bridged ...
Bert's user avatar
  • 1,066
1 vote
1 answer
9k views

Error when adding network interface to VM on KVM host using virsh

I'm attempting to script adding a network interface to a centos 6 guest. I know the interface can be set up using the virt-manager gui but it's highly desirable for it to be added as part of an ...
robbiedyer's user avatar
1 vote
2 answers
153 views

Foreman: How to test if the deployment is on Bare Matal or in Libvirt?

I write a custom Kickstart as a Foreman provisioning template. One of my problems is that I haven't found a way to determine if the new host will be installed on a bare metal or on a Hypervisor. The @...
Peter's user avatar
  • 842
1 vote
1 answer
415 views

Libvirt with Xen fails to start correctly Ubuntu 14.04

At the moment i'M really feeling a little helpless: I tried to setup Ubuntu 14.04 with Xen and libvirt for management. I created a VM but I did not auto-start (altough autostart is checked). If I do ...
user279118's user avatar
1 vote
1 answer
2k views

Is there any way to lock/unlock a Hosted Engine in oVirt?

I have a weird situation with my Hosted Engine in oVirt. We have an oVirt cluster set up using gluster as the storage for the engines isos and all the information. About a week ago two of the three ...
samaelinfernus's user avatar
1 vote
1 answer
2k views

Revert libvirt external snapshot

Having some issues understanding how to revert snapshots on ubuntu 14.04 using KVM... Until now i have been using internal snapshots, however due to space issues (space not being re-allocated after ...
Onitlikesonic's user avatar
1 vote
2 answers
1k views

routing a second public IP to multiple VM's

myself and a friend have rented a dedicated server and have used KVM and libvirt to create virtual machines for us to use. (we are using debian jessie on the host) we purchased two additional IP ...
STiGYFishh's user avatar
1 vote
2 answers
21k views

How do I configure bridged networking for VMs

I'm setting up a KVM virtualization server in CentOS 6. How do I configure bridged networking? (I think I need network interface eth0 to be accessible to VMs) I have tried to follow this guide: How ...
Nickolai Leschov's user avatar
1 vote
1 answer
2k views

Changing the mac address in a libvirt xml config file breaks network connectivity for the guest

I'm using Xen with libvirt and trying to set it up on a bridged interface. I am able to install an OS and everything works as I would expect. If I save the xml output from "virsh dumpxml guest", edit ...
foob's user avatar
  • 121
1 vote
1 answer
3k views

KVM/libvirt host has vnet for each guest?

Totally new to KVM here, so maybe there is nothing wrong with my set up, but I am running 10 guest VMs on my Ubuntu 12.04 server via KVM and I just noticed that ifconfig returned a plethora of ...
Dave's user avatar
  • 617
1 vote
1 answer
1k views

KVM hypervisor remote access without libvirt

I am a newbie in the area of Linux KVM virtualization. Can anybody help how to connect to my KVM hypervisor from a remote Linux machine without using LibVirt or any other third party library. I have ...
Dr. Death's user avatar
1 vote
1 answer
10k views

CentOS libvirt reboot

I've noticed the following status message after system update (on SL 6.1 - yum update): # /etc/init.d/libvirtd status libvirtd dead but pid file exists one of the updated packages was "libvirt". Is ...
HTF's user avatar
  • 3,198
1 vote
3 answers
4k views

Can't connect to remote Xen libvirt with ssh, using virsh or virt-manager

I'm running Xen 4 on a Debian server running Squeeze (stable). I want to connect remotely over ssh using virt-manager or virsh, because I can do that on a Lenny server (oldstable). Xen is installed ...
daks's user avatar
  • 673
1 vote
3 answers
9k views

Unable to connect Xend with virt-manager

I have installed debian 6.0.1a. I have install all XEN stuff. including xen kernel, libvirtd, ... but when i want to connect xend, virt-manager shows me this: Verify that: A Xen host kernel was ...
Majid Azimi's user avatar
1 vote
1 answer
347 views

Libvirt - UDP not working between host and VM

Host: 192.168.1.144/24 VMs(routed) network: 192.168.122.0/24 I have VMs connected to libvirt's routed network. <network> <name>routed-122</name> <uuid>86ca64a6-7fea-4cf8-...
chupnik's user avatar
  • 165
1 vote
1 answer
1k views

How can the SPICE password of a libvirt+kvm+qemu virtual machine be changed while the machine is running?

I have a virtual machine that is running on a KVM+QEMU stack with libvirt. The VM is using a qxl or virtio display and has a spice graphics listening on a port. I'd like to change the password (in ...
Kalsan's user avatar
  • 131
1 vote
2 answers
4k views

Bind/Unbind PCI device on the Ubuntu host

I have to NIC devices on the host: # list Ethernet PCI devices to find out names lspci -nn | grep Ethernet # 04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI ...
Alexander Borochkin's user avatar
1 vote
1 answer
3k views

Why is my docker registry refusing connections from VMs in my local network but not the host?

For context - I am attempting to deploy OKD in an air-gapped environment, which requires mirroring an image registry. This private, secured registry is then pulled from by other machines in the ...
Blake Simmons's user avatar
1 vote
1 answer
2k views

libvirt Windows 10 VM issue

I am running Manjaro KDE and I have managed to setup a Windows 10 VM with GPU passthrough for Windows things and it was working great until I noticed a weird behavior. When I try to reboot the VM, or ...
lucian's user avatar
  • 131
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 /...
user574429's user avatar
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 ...
kolosov's user avatar
  • 11
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> ...
MrCalvin's user avatar
  • 383
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 ...
wolfgang6444's user avatar
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 ...
Nicolas's user avatar
  • 21
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 ...
SalutAToi's user avatar
1 vote
2 answers
3k views

How do I boot the Debian 10 image with qemu/kvm?

I'm attempting to boot the openstack image of Debian 10 using qemu and encountering an error detecting the harddrive, the end of the boot up sequence is showing: [ 0.989085] Run /init as init ...
BMitch's user avatar
  • 6,319
1 vote
1 answer
1k views

encrypted qemu virtual machines do not start after upgrade to buster: permission denied

I'm running an encrypted qemu virtual machine on a debian host with libvirt. To setup the machine, I took the following steps: Place the encryption key in a file $secretfile placed in /etc/libvirt/...
DoRe's user avatar
  • 41

1
4 5
6
7 8
13