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

1
vote
2answers
1k views

Accessing guests on virtual network when connected to host via PPTP

I'm setting up a development machine which runs Ubuntu 12.04 and KVM for virtualization. I have a guest running Ubuntu 12.04 which can be accessed from the host via its IP address which is assigned by ...
1
vote
1answer
29 views

List all files with specified selinux context

How do I list all the files with specific selinux context such as - 'system_u:object_r:svirt_image_t:s0:c332,c575' etc ??
1
vote
2answers
199 views

Measure the migration time

I am using KVM through virt-manager to test the performance in terms of migration speed on different types of network. However, I can't find any documents detailing on measuring the migration time. ...
2
votes
1answer
367 views

xen and libvirt bridge configuration

I have a Centos 5.5 server with Xen 3.2 and libvirt for virt-manager installed. Before installed libvirt I have the bridge configuration just like the documentation on Xen says: xenbr0, eth0 and ...
2
votes
4answers
250 views

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. ...
1
vote
3answers
3k views

KVM booting off-image kernel and existing partition

I am in the process of switching from Xen to qemu-kvm. My current Xen installation has a number of LVM volumes each with a partition (rather than a full disk image). In Xen, I start each VM with a ...
2
votes
2answers
4k views

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 ...
0
votes
1answer
850 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". ...
1
vote
1answer
2k views

Libvirt: Can't shutdown or reboot virtual guest

I can't reboot or shutdown the guest vm from the host machine virsh -c qemu:///system reboot vm1 Domain vm1 is being rebooted After executing this, nothing happens. The guest vm keeps working. ...
0
votes
1answer
3k 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 ...
1
vote
0answers
321 views

Libvirt/KVM in NAT: can't access from host (and can't forward)

I'm trying to set up a port forward to a KVM guest, managed through Libvirt on Debian 6. The VM is running in NAT, through the "default" network. This all runs fine, the VM has full internet ...
7
votes
1answer
2k views

How do I make a persistent domain with virsh?

virsh create somefile.xml creates my machine just fine but when I shut the machine down the whole thing disappears. Machines I made with the virt-manager GUI are persistent (stick around after ...
4
votes
2answers
6k views

optimal settings for win7 64 guest on kvm 64 host managed with libvirt

I am using libvirt to control kvm on a fairly new (core i3) host running Debian Squeeze amd64. The Host as well as Linux guests work and feel fast and responsive. Simply installing Win7 with ...
1
vote
1answer
2k views

Where should CentOS users get /usr/share/virtio-win/drivers for virt-v2v?

I need to migrate a number of virtual machines from VMware ESX to CentOS 6 KVM hypervisors. Ultimately, I wrote an RPM spec file that solved my problem at ...
1
vote
4answers
4k views

KVM slow guest i/o

Host: Debian 6.0 (squeeze) with qemu-kvm and libvirt from squeeze-backports ii qemu-kvm 1.0+dfsg-8~bpo60+1 ii libvirt-bin 0.9.8-2~bpo60+2 Has ...
0
votes
3answers
3k 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 ...
2
votes
3answers
364 views

Recovering running KVM guest disk image

I am running several KVM guests on an Ubuntu 10.04 host. Due to carelessness, the qcow2 images of the running hosts have been deleted. They are still running and responding properly as well as ...
1
vote
0answers
244 views

libvirt timing out. parted blocked messages in kern.log

I'm using Ubuntu 10.04.4 LTS to host KVM virtual machines. I'm using eucalyptus to manage them and having a lot of issues with libvirt not being able to interface with the KVM components and timing ...
2
votes
1answer
648 views

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 ...
7
votes
2answers
5k views

Monitor VM's resources (CPU, RAM etc)

I'm testing Openstack and i'd like to know how can i find out about resource utilization inside instances (Virtual Machines). Openstack uses kvm, qemu and libvirt in my testing environment. Is there ...
0
votes
1answer
466 views

Routing table with two NIC adapters in libvirt/KVM

I created a virtual NAT network (192.168.100.0/24 network) in my libvirt and new guest with two interfaces - one in this network, one as bridged (10.34.1.0/24 network) to the local LAN. The reason for ...
3
votes
1answer
6k views

virt-manager can't open the display

My virt-manager was working just fine and all of a sudden stopped working, throwing in error: RuntimeError: could not open display root@rakcal ~]# echo $DISPLAY localhost:10.0 [root@rakcal ~]# ...
1
vote
3answers
512 views

CLI-Based monitoring tool for KVM

I am developing a scheduler for running VMs on KVM. The scheduling has over-commitment of resources like memory and CPU. For this, I need a CLI-based monitoring tool that keeps me giving information ...
0
votes
1answer
290 views

Slow performance by PHP directory operations on virtual machine (Ubuntu libvirt)

Some days ago I installed an Ubuntu server and two running virtual machines with libvirt. Everything works fine except one performance problem. Everytime when I call a PHP script with directory ...
8
votes
2answers
245 views

Can i pause VM's while power-cycling iscsi storage array

Unfortunately I may have to power-cycle my storage array. In the context of using KVM with libvirt managing the Virtual Machines where i need to power-cycle the storage array, is it possible or even ...
0
votes
1answer
7k views

virsh: VM console does not show any output

I have a VM which I can start with virsh. According to virsh dumpxml VM1, this is the allocated pty: <serial type='pty'> <source path='/dev/pts/6'/> <target port='0'/> ...
2
votes
1answer
366 views

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 ...
1
vote
3answers
4k views

libvirtError that domain already exists, but virsh list doesn't show it

When I try to launch an instance with OpenStack, I get the following error in nova-compute.log: (nova.rpc): TRACE: libvirtError: operation failed: domain 'instance-0000000a' already exists with uuid ...
1
vote
1answer
1k 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. ...
4
votes
2answers
8k views

kvm low io performance

performance of my setup is quite good (geekbench, how it 'feels', ...) even disc throughput (libvirt on raw lvm-partition) is very close to the raw performance on the server) but IOP/s are as low as ...
2
votes
1answer
3k views

error: internal error process exited while connecting to monitor: Supported machines are:

I'm moving Ubuntu Server guest machines from an Ubuntu Server Host to a CentOS 6 Host machine. My intent is to keep the guests as Ubuntu Servers and just change the OS of the Host. I've moved the ...
0
votes
1answer
686 views

How to permanently attach USB devices to a KVM vserver?

I run a Server using KVM and virt-manager (over SSH). Currently I have the following devices which I want/need in a KVm virtual machine: +----USB-HUB +- USB Smartcard Reader #1 +- USB ...
1
vote
1answer
2k views

Convert libvirt Xen configuration to native

I've configured some virtual machine under Xen on Debian Squeeze using libvirt with virsh. Now I want to get rid of the libvirt layer, because I need to configure some specific parameters on the DomUs ...
6
votes
1answer
7k views

Mapping USB drive direct to libvirt KVM virtual machine?

I am searching for information on mapping an existing drive (USB drive) to a KVM virtual machine using libvirt. I have been going over http://libvirt.org/formatstorage.html#StoragePoolTarget. But I ...
0
votes
1answer
5k views

How to increase video memory in libvirt/KVM gui?

In the 'Virtual Hardware details', it lists the model as 'cirrus' with 9MB of RAM. The RAM field cannot be changed, but how to increate the video RAM? My host OS is RH6 and gust OS is Fedora16. EDIT: ...
10
votes
1answer
4k views

Read/write access for passthrough (9p) filesystems with libvirt/qemu?

I have recently started experimenting with the support for passthrough filesystems in recent versions of KVM/QEMU/libvirt. Making the filesystems available for read access has "just worked", but I'm ...
1
vote
2answers
366 views

Downloads stuck from a VM run by libvirt (kvm) on Ubuntu 10.04 LTS

I first wrote my problem on stackoverflow thinking it was a Maven proxy software problem. But I realised it was more a problem with my virtualization stack (libvirt 0.7.5-5ubuntu27.19 / kvm ...
1
vote
1answer
443 views

virsh slow execution

I'm using libvirt with Xen 4. Every time I use the virsh tool, it takes a long time until it's started. I start virsh on the same machine where the Xen hypervisor resides. Example: root@xen1:~#: ...
0
votes
1answer
1k views

apt-get update can not connect

i run a dedicated ubuntu 10.04 server. i use kvm/libvirt/virsh to run a virtual machine that's also ubuntu 10.04. i bridged the network (1 of 2 IPs is routed via NAT to the LAN, where my VM ...
1
vote
1answer
3k views

Libvirt: Cannot access CA certificate '/etc/pki/CA/cacert.pem': No such file or directory

Debian 6, all libvirt packages are installed. The /etc/pki/ directory is missing. What package is responsible for it?
4
votes
2answers
3k views

How to keep time on resumed KVM guest with libvirt?

On my host I am using libvirt and a KVM guest. When the host is shutting down, libvirt suspends the guest. When the host is starting up, libvirt resumes the guest. The problem is, if the guest is ...
2
votes
2answers
3k views

qemu-kvm/virsh: No network connectivity whilst using bridged networking

I'm having an issue with performing virtualisation via libvirt/qemu-kvm, in which my set up for bridged networking doesn't appear to be working correctly. I've followed every tutorial I can find and ...
1
vote
1answer
242 views

freebsd iso install on KVM - timer freezes

Trying to boot freebsd iso on KVM/libvirt [debian host] Timer shows: 10 sometimes is 9 or even 7. and that's it, count down stops.. Found some information that it's a bug with newest qemu and my ...
0
votes
2answers
444 views

libvirtError: operation failed: could not query memory balloon allocation

Trying to install kvm vm with virt-manager and I've got this error. This machine has 16gb of memory and I entered 4096MB. What's the problem in here? Unable to complete install '<class ...
1
vote
3answers
2k 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 ...
1
vote
1answer
314 views

Libvirt: create a network bridged to the LAN (eth0)

I have a Xen-enabled host and Libvirtd running on a machine. The LAN (on eth0) is 192.168.1.0/24, and the host has 192.168.1.174 as its main IP address. Now what I want to do is to create a domU ...
3
votes
1answer
1k views

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 ...
0
votes
1answer
76 views

Sporadic routing(?) issues

We are running several virtual machines using KVM with libvirtd with a routed network (the host systems routes an extra subnet for the virtual machines). Host and Guest OS is Gentoo (host on amd64, ...
5
votes
2answers
8k views

Changing boot device for a QEMU-KVM virtual machine

I am trying to change the boot device for a VM. I go to the VM's XML file in /etc/libvirt/qemu and set <boot dev='cdrom' />. Still, it attempts to boot from the harddrive instead of the cdrom. ...
2
votes
1answer
561 views

can't ping/ssh new libvirt instance

I have a working virtual host that was Ubuntu-Server Lucid (10.4). I've been using it for a while and has several functional guests created on Lucid. Today I upgraded to Maverick, then to Natty ...