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.

610 questions
3
votes
2 answers

Permission denied error when launching instance ("Could not open backing file")

Working with OpenStack, installed from packages available on Debian testing (buster). When I try to launch an instance, it fails after building with this message in nova-compute.log: Could not open backing file: Could not open…
d3query
  • 61
  • 1
  • 6
3
votes
0 answers

How to provision DRBD to libvirt storage pool?

I want to expose DRBD replicated storage (2 nodes Active/Passive) to libvirt as a storage pool for qcow2 files. However, I have the following error message: virsh pool-create-as qcow2 --type=logical --target=/dev/drbd1 error: Failed to create pool…
Alexander
  • 131
  • 3
3
votes
3 answers

Cpu pinning strategy for kvm / centos7

I am migrating from Xen to Kvm. In Xen I was able to easily pin host cpus to guest vms, and also to pin host cpus to the "dom0" . In Kvm I can also easily pin host cpus to guests vms, but, as far as I can I see, nothing prevents application running…
Olivier S
  • 2,719
  • 1
  • 12
  • 14
3
votes
1 answer

centos libvert vm network can't get IP address

I have a host machine running centos 6.2 and it has 2 VM's using libvirt. I had it all working, but then I had a power outage and now the host has connectivity, but the VM's cant get an IP when they come up and have no network connectivity. I am…
3
votes
2 answers

Is there a way (non network-based) to share host (ubuntu) file system with guest (centos 7) using libvirt?

I am trying to use virsh and domain xml to launch a Centos 7 guest from ubuntu 16.04 LTS host. The "filesystem" node that i am using in domain xml is as below:
Swaru
  • 31
  • 2
3
votes
0 answers

Libvirt LXC leaked processes

I'm trying to run several lxc containers on an ubuntu 16.04 server. (libvirt version is 1.3.1). The nature of my team's use of these containers means that they are constantly booting and then being destroyed, and we manage this lifecycle using the…
SwampDragons
  • 111
  • 1
  • 5
3
votes
0 answers

OpenVSwitch with Libvirt

Here's my situation: I'm running CentOS 7 with Openvswitch and Libvirt/Qemu. My domains are configured to use the virtualport type openvswitch, so when I start a VM it creates a port in the ovs bridge. Nothing too complicated. My problem is if I…
user165222
  • 125
  • 3
  • 9
3
votes
1 answer

Why do I need restart a VM after restarted a bridge to get network working?

I have a VM with an interface on a bridge(e.g. br0). After restarting the bridge(bring down, bring up) VM doesn't see the network and I must do "power cycle"(shutdown and then power on) to get VM see the network. Why it is happening and why reboot…
Disova
  • 53
  • 7
3
votes
1 answer

libvirt: set hostname using dhcp in virtual network

I've configured a host-only (aka private) network for a group of VMs on a CentOS 7 host. I've created static leases in the DHCP section for the virtual network. The IP address is getting set correctly, but the hostname is ignored. Instead, it's…
orodbhen
  • 161
  • 8
3
votes
4 answers

iptables / KVM forward port

I have a server with one external IP address (e.g. 1.2.3.4). On that server I use libvirt to run virtual machines. Now I want to access a virtual server on my host via ssh (port 1234) from the outside. On my host system I got a network interface…
Flatron
  • 298
  • 1
  • 5
  • 18
3
votes
1 answer

Clone KVM virtual machine with snapshots

I've created a virtual machine using virt-manager and saved a snapshot of it's current state. Now I'd like to create an exact duplicate machine with all snapshots from the first machine. How could I accomplish that?
michaelr524
  • 139
  • 1
  • 4
3
votes
1 answer

Install virt-sysprep on Ubuntu 14.04

I'm using vagrant with vagrant-libvirt and I want to create a package via the command-line: vagrant package --output ubuntu14-base.box I've got an error around virt-sysprep being absent (confirm after a search in the system). I tried install those…
3
votes
1 answer

How to create a new domain from an existing base image in virsh

Is there a way of creating a domain with virsh from a base image? I have looked around and found that it is possible using virt-install, however I would prefer it if this was done purely through virsh, as I am using libvirt language bindings just to…
brti
  • 31
  • 1
  • 3
3
votes
1 answer

KVM bad IO sync performance in Linux guest

I'm setting up virtualized Ubuntu 15.10 guest inside Ubuntu 15.04 server using libvirt and KVM. Storage in host system: # mount | grep ext4 /dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered) /dev/sdb1 on /media/hdd type ext4…
dsi
  • 131
  • 3
3
votes
1 answer

Best options for KVM/qemu/libvirt VM migrations without shared storage

My team has recently been tasked with improving the virtualization infrastructure at the company and one thing we're looking into doing is speeding up migrations. We use local storage only on all VM Hosts. One challenge is that we have thousands…
seajoshc
  • 61
  • 1
  • 5