libvirt is an API and toolkit for developing applications which manage virtual machine hypervisors, the virtual machines running under them, and virtual machine storage.

learn more… | top users | synonyms

2
votes
1answer
916 views

kvm snapshot (libvirt)

Iam managing kvm by libvirt and using qcow2 file format. I can create snapshots of running wm with snapshot-create command, but if I transfer my qcow2 image to another host and define transfered host ...
1
vote
2answers
726 views

upstart pre-stop script

I have libvirt/KVM set up on my Ubuntu and before shutting down the machine I would like it to attempt shutting down the VM's using an ACPI poweroff (virsh shutdown), then I want it to stop shutdown ...
3
votes
1answer
11k views

how to delete a guest after creating it with virt-install

I created a KVM guest from the command line with virt-install where I used the command line options --disk pool=vg0,size=20 and --name virt1.example.com. How can I delete this KVM guest from the ...
2
votes
1answer
4k views

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 ...
2
votes
1answer
429 views

Libvirt installation - Centos

I am currently using Centos 6. I want to use the latest version of libvirt (libvirt 0.9.4). The machine already has libvirt 0.8.1 installed . I did yum remove libvirt to remove the existing libvirt ...
3
votes
1answer
2k views

Bandwidth monitoring on KVM

Is it possible to monitor/limit bandwidth for KVM guests? I'd like to give people VMs on my server but I want to be careful not to go over my monthly bandwidth limit. The only places I can find that ...
2
votes
4answers
568 views

physical to virtual (kvm) migration with saving IP of guest and reusing it at host

I want to do a physical-to-virtual migration of BSD server, saving the IP address. The destination virtual host is Linux/KVM. The current setup: I had a BSD server with failed Hardware. I have just ...
1
vote
3answers
2k views

libvirt: how can I make a domain start when the host starts?

I would like some of my domains to start automatically when my host starts (I'm using libvirt+KVM on ubuntu). I guess I could put some "virsh start..." statements in rc.local, but is there a way to ...
0
votes
1answer
1k views

Libvirt command line arguments using xml config file

I am trying something similar to http://wiki.libvirt.org/page/QEMUSwitchToLibvirt#-s . This is my xml file : <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> ...
1
vote
1answer
680 views

Snapshot/rollback in Kvm using DRBD

I want to use the HA on a virtual machine on two server using KVM/libvirt. I placed the image on a partition using DRBD. I'm using the qcow2 format and i'm taking the snapshot, using virsh ...
0
votes
1answer
846 views

Using qemu-kvm images with Mac OS X?

i am a big fan of qemu-kvm, i've several instances running on servers running ubuntu linux. I now wonder if it's anyhow possible to use a virtual server image on an Mac OS X machine. Either by running ...
2
votes
1answer
8k views

virt-convert OVF to KVM

I use a Red Hat Enterprise Virtualization system and need to get a VM off the system an onto a standalone box running KVM. Red Hat don't seem to support a way to do this, but commented that the ...
4
votes
2answers
5k views

Routing networking on kvm

There are a lot of configuration used for Kvm-networking. But i'm not able to get to the guest from the host or outside. I'm working on Ubuntu 11.04. On the guest i've a WindowsXp with dhcp. I want ...
1
vote
3answers
4k 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 ...
0
votes
1answer
2k views

Setting up libvirt with remote access on gentoo: not listening tls port

I'm trying to set up libvirtd on my headless gentoo server. I'd like to have remote control via tls. I've followed libvirt remote access guide, but it don't work for me: client virt-manager shows ...
0
votes
1answer
1k 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 ...
3
votes
3answers
662 views

libvirt + ESX (HTTP response code 400 for call to 'Login')

I'm trying to connect to a vSphere cluster using the information from the libvirt documentation. $ virsh -c "vpx://root@10.51.4.11/dc1/dc1-cluster-e01/dc1-vsphere-e04/?no_verify=1" Enter root's ...
1
vote
1answer
724 views

Migration of Xen domains using libvirt API and perl failing

I am trying to get work offline migration using libvirt API in perl. I have 2 servers (on both is): - debian squeeze - xen-hypervisor-4.0-i386 - libvirt (1st server - 0.8.7 and 2nd server - 0.8.3) In ...
9
votes
4answers
4k views

Port Forwarding from Host to Guest with libvirt 0.8.3 Using KVM on Ubuntu

The host has a single external IP available, so I set my KVM guests up with NAT. How do I set up a port forwarding to forward some of the requests from the outside to the guests? I couldn't find ...
1
vote
2answers
654 views

LibVirt: Disk image has wrong size inside guest

I'm creating a new virtual disk using the following command*: $ virsh vol-create-as --format=qcow2 guest-disks disk_instid.24_diskid.30 8192M Vol disk_instid.24_diskid.30 created The "guest-disks" ...
3
votes
4answers
4k views

KVM-Guest does not boot: qemudParsePCIDeviceStrs

I have a Server running Ubuntu 10.10 Server-Edition kvm, and libvirt (both ubuntu-native packages) HDD-Partitioning was done with LVM. Then I created some VMs with Virt-Manager and assigned ...
0
votes
1answer
186 views

Virsh: Different XML with edit than dumpxml. Why?

I'm trying to fetch the VNC access data from a virtual machine managed by libVirt. However, when I run virsh dumpxml $machine, the vnc passwd is missing: <graphics type='vnc' port='-1' ...
12
votes
4answers
7k views

how to rename a VM using libvirt+KVM

How can I rename a VM on KVM+libvirt? I would like it to change the name in the 'inventory' as well as change the name of the storage etc.
0
votes
3answers
7k views

Enable Intel-VT inside of VMware Workstation

I'm testing Nova Compute from OpenStack project inside of a VMware Workstation v7 virtual machine, and I get this error: libvirtError: internal error no supported architecture for os type 'hvm' ...
0
votes
2answers
526 views

Question about libvirt autostart and virtual manager

I'm running Ubuntu 10.04 I installed kvm and virtual manager and created a guest OS. Everything worked fine until I rebooted my pc. After reboot libvirt was not running despite of init script inside ...
7
votes
4answers
1k views

Using virt-install and http preseed to do unattended ubuntu 10.04 install

The virt-install command line I used is below sudo virt-install kvm ubuntu -v sudo virt-install -v -n golden-egg -r 256 --disk path=/var/lib/libvirt/images/golden-egg.qcow2,size=5 --os-type ...
2
votes
3answers
2k views

Monitoring and statistics through libvirt

Is it possible to monitor and gather statistics in realtime (CPU, memory, HDD, network, ... - something like dstat) of guest systems with libvirt through console from host system (KVM based)? If yes, ...
2
votes
1answer
720 views

libvirt, qemu, reboot hook

Is it possible to detect that the guest VM has rebooted and perform an action using libvirt / qemu? The hooks here only support the "start" and "stop" events. I would like to detect if my VM has ...
11
votes
3answers
16k views

Forwarding ports to guests in libvirt / KVM

How can I forward ports on a server running libvirt/KVM to specified ports on VM's, when using NAT? For example, the host has a public IP of 1.2.3.4. I want to forward port 80 to 10.0.0.1 and port 22 ...
0
votes
1answer
182 views

Booting ubuntu with libvirt pass in custom script to be run from rc.local

I have an ubuntu image that I start under libvirt/qemu. I'd like to pass in a custom script at boot time that can be executed from rc.local. I can do this with Amazon EC2 instances via their ...
3
votes
2answers
1k views

Network freezes with KVM/libvirt and ip_forward = 1

I'm using KVM and libvirt and experience small network freezes on the host and the guests every 2-3 minutes or so. The freezes last 1-2 seconds. The used OS is Ubuntu 10 LTS server edition. I'm ...
3
votes
2answers
1k views

How do I run a stable Windows XP kvm guest on Ubuntu 10.04?

I have three Windows XP guests running on a recently upgraded 64-bit Ubuntu 10.04 system. Occasionally (on the order of once every few days), one of the guests will become non-responsive and the kvm ...
2
votes
1answer
1k views

How do I create a bridged virtual network for libvirt+KVM+ubuntu-server the easy way?

I see lots of documentation on how to manually set up a network bridge and then manually add vm's tun devices to these bridges and then write a shell script that glues it all together. lots of work, ...
3
votes
1answer
15k views

How to convert a raw disk image to a copy-on-write image based on another image for use with kvm and virt-manager?

I have a virtual Windows machine running on kvm. Presently it has a 90GB raw disk image. I would like to clone this VM without having to keep two copies of the 90GB raw disk image around. It seems ...
1
vote
1answer
528 views

Any non-custom way to manage iptables with fail2ban and libvirt+kvm?

I have an Ubuntu 9.04 server running libvirt/kvm and fail2ban (for SSH attacks). Both libvirt and fail2ban integrate with iptables in different ways. Libvirt uses (I think) some XML config and ...
3
votes
3answers
959 views

KVM “live migration finished” detection

I'm using KVM (through libvirt actually) for a research project. We're live-migrating a virtual machine between different subnets, so after the migration the IP address and routing tables have to be ...
2
votes
3answers
5k views

libvirt and qemu/kvm -snapshot option

Using libvirt, I want to use QEMU's '-snapshot' option. That way, when the machine shuts down, all of the disk changes that were made get destroyed. Here is the manual for the -snapshot option: ...
2
votes
1answer
579 views

two physical kvm hosts with multiple guests, private network

I have two physical hosts which run debian lenny with kvm. They have one nic which connects to the internet and another nic which is a cross-link to each other, for a faster private net. On this kvm ...
6
votes
6answers
6k views

Get list of DHCP clients with KVM+libvirt?

I have several VMs running on Ubuntu 9.10 via KVM+libvirt. I want to be able to find out the IP address that has been assigned to each host without physically opening a physical "console" to each ...
6
votes
4answers
2k views

libvirt: Change dhcp-setup without restarting

I'm using libvirt and kvm to virtualize my server. I configured libvirt to start a dhcp-server on the bridge-network-interface to give the vm's their ips. Every VM's gets always the same ip based on ...
3
votes
1answer
488 views

libvirtd kvm networking on Centos5.4

I've got KVM installed on CentOS 5.4, and am attempting to set up a virtual network to allow each VM to communicate with services on the host, namely DHCP to allow PXE boot installations. I'm having ...
0
votes
1answer
785 views

Set host firewall so VMs obtain dynamic IP from dnsmasq

Virtual machines (KVM/libvirt) fail to obtain a dynamic IP address from the libvirt-launched dnsmasq running on a CentOS host when the firewall is running. When I turn off the firewall (CSF), the ...
4
votes
5answers
2k views

Web-Based Virtual Machine Manager

I am looking for a web-based virtual machine manager, which will work on our Ubuntu server. Ideally, I need something that our team can use to create a VM, test builds and packaging and then either ...
0
votes
1answer
518 views

How do I extend the virsh/qemu/libvirt Timeout?

There's a known issue with starting virtual machines with large hard drive images. Apparently, the time-out is 3 seconds, but in reality, it can take up to 15 seconds for a machine to start. I've read ...
0
votes
2answers
503 views

Strange libvirt/KVM issue, destroying instances?

I have a libvirt/KVM server running on Ubuntu 9.04 with a variety of instances I use for testing. I was destroying instances via virsh and occassionally, destroying one instance would take out ...