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
2answers
100 views

libvirt (KVM) inventory application?

I've got a bunch of LibVirt-managed (locally using virsh) KVM VMs on standalone Linux hosts (local KVM, local storage). Is there any web-based application out there that will track the inventory - ...
2
votes
1answer
567 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 ...
2
votes
1answer
507 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 ...
2
votes
1answer
378 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 ...
1
vote
1answer
91 views

virt-viewer slower than virt-manager when viewing

I've got a thin client server in which I have a few VM's for users under KVM which I manage through virt-manager. What I've noticed is if I start a VM guest on a thin client using the command ...
1
vote
1answer
525 views

How to fix a frozen qemu VM?

I have a qemu hypervisor on RHEL 6.4 that hosts VMs that will quite often lose their connection to the network. When the VM has lost its connection I can view and interact with the it using ...
1
vote
1answer
193 views

Cannot start XML defined Linux Container, faulty cgroup mount

Using ubuntu 13.04 latest; i've installed lxc and various other tools Here's my XML definition: <domain type='lxc'> <name>vm1</name> <memory>500000</memory> ...
1
vote
1answer
142 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 ...
1
vote
1answer
134 views

Network traffic is not being forwarded from a VM to the network using a bridged interface with Xen + libvirt

I'm having trouble getting network access from a VM that I'm running using Xen and libvirt. I've been trying different things and reading similar posts online for a couple of days but I'm really stuck ...
1
vote
1answer
231 views

Increasing the maximum amount of open files for libvirt

For an experiment I'm trying to start as many VM's as possible through libvirt, however with a little over 1000 VM's running I get an error saying: "Failed to create pipe: Too many open files". Any ...
1
vote
1answer
128 views

Apply libvirt nwfilter without editing of XML

Is it possible to apply libvirt's network filter to a KVM guest without manually editing the XML (for use in scripts)? Or is there any easy way of pushing the network filter configuration into ...
0
votes
1answer
60 views

Accessing VirtualBox with libvirt from a guest

I have installed libvirt on OSX, and from outside a virtualbox I can access it using virsh no problem. However, I want to access it from inside a guest, and this is giving me the hopelessly useless ...
0
votes
1answer
31 views

How to start a new instance of QEMU based on the same image and snapshot?

I have a QEMU image (qcow2) with a snapshot stored in it. Right now I'm using libvirt to start it. However, I want to be able to run more than one instance of the same image+snapshot. I guess I can ...
0
votes
1answer
107 views

dnsmasq(as DHCP server) isn't working in KVM+libvirt envirmont

I'm using dnsmasq as DHCP server in VM environment. But It didn't working. I disabled basic DHCP feature in libvirt. <network> <name>default</name> ...
0
votes
1answer
60 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 ...
0
votes
1answer
82 views

libvirt on amazon linux?

I'm trying to setup LXC on Amazon Linux based ec2-instance. Libvirt is missing on amzn1 if I install with "yum install libvirt". However to compile them seems non trivial work. but before that, have I ...
0
votes
1answer
129 views

add a cgroup controller into libvirt

libvirt by default has cgroup controllers of ["cpu", "devices", "memory", "blkio", "cpuacct"] as shown in qemu.conf. I want to add one more controller of net_cls. I tried to modify the config file to ...
0
votes
1answer
65 views

Keep guest time after shutdown using KVM/libvirt

I use KVM/libvirt based virtualization. Some of vm guests have set date far in future (2-3 years, different month, day, etc) After each guest shutdown down, the date is being set to host date ...
0
votes
1answer
164 views

kvm/qemu via libvirt on CentOS - pass string or key/value or file to guest

I have a sizeable deployment of qemu/KVM VMs already, managed through libvirt. They're all CentOS 5 or 6 hosts and guests (the kernel lacks the 9p filesystem flags, so the "mount" shared filesystem ...
0
votes
1answer
102 views

virsh snapshot-create persistent through reboot/ domain destroy-start

If i take a snapshot of a qcow2 image backed domain via virsh snapshot-create domainID and I shutdown the machine (and probably destroy the domain if virsh list still shows it running), will that ...
0
votes
1answer
516 views

CentOS/KVM-libvirt: Public IP on VMs

I'm trying to set up a working vm with public ip adress, but I can't get it working. Here's my config : Network: range: 101.110.22.41 - 45 netmask: 255.255.255.248 gateway: ...
0
votes
1answer
121 views

virsh attach-device for serial device

I would like to add a serial device (console) to a guest via the virsh attach-device command. I have a console.xml file containing: <serial type="pty"> <target port="0"/> ...
0
votes
1answer
134 views

listing of VM's created before libvirt installation or started by any other VM management tool

if my VM's are not created using virt-manager or are created using any other tool, then virsh system list command does not give them in the list of running VM's however they are running perfectly on ...
0
votes
1answer
615 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 ...
0
votes
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 ...
0
votes
1answer
949 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 ...
0
votes
1answer
173 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 ...
-1
votes
1answer
161 views

Import virtualBox appliance to KVM

Im new using KVM as a virtualization solution. Currently I'm using VirtualBox to manage my virtual machines in my personal computer, but I'm moving my virtualization to a Server, so I set up a Linux ...
3
votes
0answers
137 views

Network filtering with libvirt + xen + bridge + nat?

How can I properly add basic network filters (clean-traffic or, at least, ip-spoofing prevention) to XEN (xend) guests managed by libvirt? Or, in particular, can I manually execute libvirt's ...
2
votes
0answers
435 views

virtualbox to qemu but results in no bootable device qemu

I use vagrant to create my development vm. I exported the vmdk to vdi, and then convert the vdi to img. cd virtualbox_dir/test_vm VBoxManage clonehd test_vm.vmdk raw.vdi 0% ..... 100% qemu-img ...
2
votes
0answers
375 views

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 ...
1
vote
0answers
35 views

Change sender-IP for VM in libvirt behind NAT

I have a server with my own public /28 IPv4 Network. On this server I have some vServers, done with KVM/libvirt. These vServers are connected with a virtual network, NATed to the internet. Every ...
1
vote
0answers
146 views

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 ...
1
vote
0answers
60 views

Bridging Adapter in Ubuntu 12.04 LTS for KVM

Fresh install of Ubuntu 12.04 LTS with libvert/KVM installed. I have 2 virtual machines that I need need to be on the same LAN as the host. The host has two physical interfaces eth0 and eth1. eth1 is ...
1
vote
0answers
141 views

Libvirt providing bootp options without being configured to do so

I have a virtual network configured in libvirt and configured to provide DHCP (via dnsmasq) but not configured to provide bootp information (see below), but when I boot an iPXE ISO and look at the ...
1
vote
0answers
143 views

KVM/QEMU virsh blkdeviotune error

when trying to limit guest disk IO i get an error: virsh blkdeviotune DOMAIN hda error: Unable to get block I/O throttle parameters error: internal error cannot read total_bytes_sec Im using ...
1
vote
0answers
430 views

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 ...
1
vote
0answers
211 views

nwfilter: Generated firewall rules don't make any sense

I'm trying to configure nwfilter for KVM, but so far I haven't managed to figure out a working configuration. Network setup: The dom0 (Debian 7.1, kernel 3.2.46-1, libvirt 0.9.12) is connected via ...
1
vote
0answers
79 views

KVM .img can not boot after resized by virt-resize

I have a CentOS 6.4 image install by KVM on Ubuntu 12.04 amd64 host. Here is the disk layout of centos.img # virt-filesystems --long -h --all -a centos.img Name Type VFS ...
1
vote
0answers
53 views

Domus Memory Used Issue With Xen On CentOS

Anyone know why I'm receiving this error? I compiled latest libvirt from source, I also tried with various rpm. I would like to get memory used by domus and it looks like it's not working with Xen 3 ...
1
vote
0answers
293 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 ...
1
vote
0answers
211 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 ...
0
votes
0answers
27 views

virsh XML interface allocation

I am trying to launch VM using a XML. This VM will be having 5 interfaces each connected to certain bridge. Issue here is allocation of these interfaces is random. My XML <interface ...
0
votes
0answers
36 views

Cannot add any virtio discs in virt-manager, how to fix?

I’ve just freshly installed virt-manager and libvirt-bin (and related packages) on a Debian sid system, and have a strange problem I’ve not yet seen on another similar installation: When creating a ...
0
votes
0answers
57 views

Fail to install libvirt from source code

I am trying to install libvirt from source codes, my workflow is shown below, #!/bin/sh apt-get install gnutls-bin libgnutls-dev -y apt-get install libxml++2.6-2 libxml++2.6-dev -y apt-get install ...
0
votes
0answers
86 views

LIBVIRT Bridge using VLAN basics

hello I read many posts but all are assuming single NIC, in my case my guest has 2 nic, eth1 is getting IP from libvirt default NAT 192.168.122.x range I want eth0 192.168.0.x subnet, I have created ...
0
votes
0answers
105 views

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: ...
0
votes
0answers
52 views

virsh-snapshot delete behavior in libvirt

What happens to the data after performing a virsh-snapshot delete of the most current snapshot for a domain? Does it merge the data into the existing qcow2 file? Will any new data as of the snapshot ...
0
votes
0answers
88 views

LinuxBridge Plugin configuration seems broken in my OpenStack Grizzly set-up, but how to debug it and fix it?

I used theses scripts (OpenStackGeek) to install a Single-node OpenStack Grizzly on an Ubuntu 13.04. Everything seemed to work quite fine until I tried to reach one VM. Unfortunately, no VM was ...
0
votes
0answers
29 views

How to disable logging in libvirt?

I'm using python-libvirt 0.9.12 (the one in wheezy) to check if a given domU is running or no. In the code I do a conn.lookupByName(domname) and handle the libvirtError exception. When I run the ...