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.

650 questions
3
votes
1 answer

LibVirt (QEMU) Shutting down from inside guest

I am currently running LibVirt with Qemu on Debian Wheezy: Versions: libvirtd (libvirt) 1.2.4 qemu-x86_64 version 2.0.0 (Debian 2.0.0+dfsg-4~bpo70+1), Copyright (c) 2003-2008 Fabrice Bellard It's all working perfectly, including ACPI: virsh…
md_5
  • 386
  • 3
  • 11
3
votes
1 answer

How to make my linux vm attach to an openvswitch bridge?

I am following this tutorial: http://networkstatic.net/wp-content/uploads/2012/04/openvswitch.openflow.gre_.tutorial1.pdf In brief: br0 is connected to the actual net, br1 is an isolated bridge to whom I attach multiple vms. Now I want to greate a…
Phate
  • 155
  • 2
  • 8
3
votes
1 answer

How to replace QEMU binary with newer version for libvirt live snapshots

This is my first post, so please be gentle. :) My CentOS 6.5 box has a QEMU binary that does not support live external snapshots. This is the command I attempt on the virsh CLI, and its output: virsh # snapshot-create-as myvm snapshot1 "snapshot1…
billyw
  • 1,572
  • 15
  • 26
3
votes
0 answers

qcow2 Disk size much bigger than virtual size

What would cause this? ls shows the qcow2 to be 241G, in the VM it only has ~ 160 GB drive, no unpartitioned space. Win 7 VM, Host = EXT4 2.6 Kernel virsh 0.9.10 file format: qcow2 virtual size: 160G (171798692352 bytes) disk size:…
user160910
3
votes
0 answers

How to config libvirt network setting about disabling dnsmasq "except-interface=lo"?

Here is the thing. My VMs run with libvirt and use default network libvirt-provide, and I've mad each VM registers its hostname to dnsmasq set by libvirt. so I want to look up its hostname for reachable. But the libvirt always enables…
3
votes
1 answer

Allowed cgroup devices for libvirt/lxc container

I want to allow my libvirt/lxc containers to use tun/tap device. In order to do so I for a running container I can add it to the allowed devices by: # echo "c 10:200 rwm" > /sys/fs/cgroup/devices/libvirt/lxc/client-1/devices.allow resulting in: #…
Zabuzzman
  • 733
  • 10
  • 25
3
votes
0 answers

Debian Squeeze Preseed Installation “The current kernel doesn't support the Logical Volume Manager. You may need to load the lvm-mod module.”

I'm attempting to install Debian Squeeze via an instalinux.com image pre-seeded with more or less default settings. (Only notable addition is the openssh server, which is a clickable option in the Instalinux interface) It is however raising the…
Lee Hambley
  • 360
  • 3
  • 12
3
votes
1 answer

Guest system managed by libvirt doesn't start after successful installation

Host system — Ubuntu 12.04. Virtualization — KVM. Disks — LVM. Guest system installation was successful. But after restart: Booting from Hard Disk... Boot failed: could not read the boot disk Booting from Floppy... Boot failed: could not read the…
3
votes
1 answer

2xAMD Opteron 6128 with libvirt, Physical CPU 13 doesn't exist

I need help with libvirt(?) problem. Server specs: ProLiant DL165 G7 2x AMD Opteron(tm) Processor 6128 System: Debian GNU/Linux testing (wheezy) 3.2.0-3-amd64 libvirt 0.9.12-5 kvm 1:1.1.2+dfsg-2 $ grep processor /proc/cpuinfo | wc -l 16 $ virsh…
3
votes
4 answers

Assign KVM VM to a user (KVM user authorization)

I would like to give my friend a VM on my dedicated server, and I want him to be able to restart the VM or change the iso - so basically I would like the same features as a VM hosting provider, e.g. Linode. I guess the easiest solution would be to…
user1320304
  • 125
  • 1
  • 1
  • 5
3
votes
2 answers

KVM/Libvirt bridged/routed networking not working on newer guest kernels

I have a dedicated server running Debian 6, with Libvirt (0.9.11.3) and Qemu-KVM (qemu-kvm-1.0+dfsg-11, Debian). I am having a problem getting bridged/routed networking to work in KVM guests with newer kernels (>2.6.38). NATted networking works…
SharkWipf
  • 361
  • 1
  • 3
  • 11
3
votes
1 answer

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 VM is located. However, when I try to cap the IO,…
vineet
  • 31
  • 2
3
votes
2 answers

Undefine all inactive domains

I have multiple inactive domains in libvirt and I want to delete them all: # virsh list --inactive Id Name State ---------------------------------- - instance-0000000c shut off - instance-0000000f shut off -…
Lorin Hochstein
  • 5,028
  • 15
  • 56
  • 72
3
votes
1 answer

Virt-manager: unable to open a connection to the libvirt management daemon

I'm having a bit of trouble connecting to my virtual machine host, which is an Ubuntu server running KVM/Libvirt. I can connect to the server using an Ubuntu client and I can connect via virsh on a Fedora 16 client. Unfortunately, connecting via…
bshacklett
  • 1,378
  • 4
  • 19
  • 39
3
votes
1 answer

how to install a CentOS 6.0 KVM guest on a CentOS 6.0 host server with virt-install and PXE

The host server (running CentOS 6.0) only has one public IP address and will be hosting many KVM guests so it needs to use a virtual network switch configuration in NAT mode. I have previously used pxelinux for automated installation of physical…
Erik Sjölund
  • 2,115
  • 5
  • 22
  • 27