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
1k views

libvirt and network filtering with nat - iptables overrides

At first, I want to say: I know, it was done initially wrong and I want to avoid doing everything again from the scratch because of general downtime. I am running libvirt/KVM on RHEL. I've got VM ...
1
vote
1answer
162 views

libvirt Storage Backend

libvirt supports several storage backends[1] for hosting the image on a different server. We have 6 servers running about 40 VMs. Up to now we use local storage, but to minimize the downtime we want ...
0
votes
1answer
448 views

OpenNebula can't start vm after reboot

I installed a fresh install of Debian-7-opennebula-4.4.0-1.tar.gz on a fresh Debian and got a VM to start via sunstone. The output of libvirt was: 2013-12-26 12:48:12.919+0000: starting up LC_ALL=C ...
1
vote
2answers
2k views

Libvirt: ERROR No domains available for virt type 'hvm', arch 'x86_64', domain type 'kvm'

Installed virt-man like this $ apt-get install virt-manager $ modprobe kvm $ modprobe vhost-net Launching libvirt guest $ virt-install --virt-type kvm \ --name centos-6.5 --ram 1024 \ ...
0
votes
1answer
170 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
3answers
312 views

Interface for accessing to guest OS via libvirt

Is there any possible (not necessary native) ways to get access (e.g., terminal usage is the main purpose for me) to guest OS with *nix using libvirt/LXC(not as libvirt module) capabilities? And I ...
1
vote
1answer
95 views

Prevent hijacking IPs in a bridged network (KVM/libvirt)

Is there a solution to prevent a VM user assign/use IP addresses he doesn't own but are routed over the same bridge like his own addresses? The current setup looks like this with libvirt and KVM: ...
1
vote
1answer
180 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 ...
0
votes
2answers
246 views

KVM XML config file

I have a KVM server that I expanded the LV of then rebooted. However now when booting I get the error: error: Failed to create domain from /home/kvm/kvmx/kvmx.xml error: (domain_definition):1: ...
2
votes
2answers
154 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 - ...
0
votes
3answers
1k views

Guests can't access KVM host server by name although nslookup and dig returns correct record

So I have a KVM host that also runs an apache server with some yum repos. The VM guests are connected to the default virtual network, which is configured to offer DHCP and forwarding with NAT on ...
0
votes
1answer
374 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 ...
-1
votes
1answer
840 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 ...
1
vote
1answer
308 views

Qcow2 backing image and overlay idea

I have 2 KVM servers running Windows Guests. I want to create a Qcow2 image with Windows 7 on it, install the base software needed, and then make that a backing image, read-only, with one qcow2 ...
0
votes
1answer
102 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 ...
1
vote
1answer
1k 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 ...
0
votes
1answer
320 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
0answers
229 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
1answer
158 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 ...
3
votes
4answers
5k views

libvirt network error - no 'default' network device found

My original purpose is to create centos image for openstack. Although I did directly with kvm, still wondering about error. Was using this manual for my task. After this command: # virt-install ...
0
votes
0answers
127 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 ...
4
votes
1answer
452 views

libvirt guest cannot reach outside world

My server connects to the public internet via eth0 (50.131.xxx.xxx). The same server connects to the LAN via eth1 (192.168.138.1 on 192.168.138.0/24) On the same server, I run libvirt, which created ...
2
votes
0answers
752 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 ...
3
votes
1answer
354 views

KVM: Run a script when a guest is shutdown from within?

I am running KVM as virtualization engine. Is there a way to make QEMU/libvirt run a script on the host when a guest is shutdown from within (shutdown -h now)? I want to be able to run some custom ...
1
vote
0answers
360 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 ...
0
votes
1answer
325 views

Enable promiscuous mode on Libvirt vif

Does anyone know how to enable promiscuous mode on a libvirt vif? I have a bridge with 3 vifs connected to it. I need one of these vifs to be able to sniff all the traffic flowing through the bridge. ...
-2
votes
2answers
183 views

VM running perfectly when its disk image is deleted? [closed]

Does anyone has such experience that you accidentally delete the used disk image when virtual machine is running? I would expect that the virtual machine will fail immediate, but, surprisingly, it ...
1
vote
1answer
1k views

Import XML into libvirt without booting virtual machine

Is it possible to import an XML file into libvirt without having libvirt boot the virtual machine? If I do: virsh create centos63.xml Then libvirt will import the XML file and immediately try to ...
2
votes
2answers
1k views

How to detect hypervisor host name/IP from inside a KVM virtual machine?

We have a small fleet of KVM/libvirt hosts with a few hundred virtual machines on it, managed by a group of sysadmins in disparate locations. I've run into a problem where I am connected to a virtual ...
4
votes
1answer
176 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 ...
1
vote
0answers
107 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
1answer
946 views

Kvm Guest Network Unreachable

I have a kvm setup with several guest vms running ubuntu. For some reason I cannot get traffic through port 80 from the guests to the outside anylonger. The other way round works just fine, the ...
0
votes
1answer
249 views

libvirt vm cant connect to smtp

I have a problem with one of my virtual machines. In my Setup the kvm/libvirt hypervisor acts as the firewall and does all the NAT. There is 1 virtual network (virbr2) for all of the virtual machines. ...
0
votes
1answer
1k views

Fastest way to clone KVM VMs to be run simultaneously (create a branch VM)

IF I need to have concurrently running versions of a Windows VM (using KVM 0.10.2 on CentOS), each one configured differently ( a snapshot that will then branch off unto its own VM) what is the best, ...
1
vote
2answers
997 views

Ovirt doesn't create live snapshot

I installed oVirt. If I suspent VM and create snapshot it's ok, but if I try to do live snapshot on the stage "Finalizing" ovirt have fail. Ovirt, VDSM and NFS storages are on the same local server. ...
1
vote
1answer
325 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
2answers
285 views

How to create multiple clones of a VM in KVM/libvirt?

I (will) have a VM in libvirt (using QEMU/KVM) that I will set up and consider the "gold master". I would then like to be able to clone it 'n' times to create multiple systems. What is the best way to ...
1
vote
1answer
340 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
223 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 ...
0
votes
1answer
285 views

php-libvirt installation on centos fails

I am trying to install php-libvirt on centos 6.4 64x and there is an error in ./configure step: checking for LIBVIRT... configure: error: Package requirements (libvirt >= 0.6.2) were not met: ...
2
votes
1answer
672 views

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

Snapshot a KVM guest with non-file storage

I am preparing at least one Windows 7 guest on a KVM Linux (ubuntu) host. I have made an LVM-based storage pool which I would like to use. My main concern is snapshots. The disk-image will be ...
0
votes
1answer
257 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
213 views

lvconvert --merge how to undo?

I have created a script for users who work on KVM virtual machines to be able to perform lvm snapshots on the logical volumes where their VMs are installed. Snapshot restores are performed via ...
0
votes
1answer
220 views

Debian Squeeze KVM - No Matter How I Setup Bridge, No Connectivity on Guest

I'm attempting to setup libvirt KVM guests on my server, and I've been messing around for two days now trying to get the guest networking working. So far, I haven't gotten anywhere. My network is ...
0
votes
1answer
98 views

KVM how to determine which virtual disk files are in use by VMs

I tried lsof|grep *.qcow2 and got no results back (why is that? I definitely have VMs running using that disk format). I also considered grepping qcow2 on *.xml within the config directory, but this ...
1
vote
2answers
1k views

Set startup order for KVM virtual machines via libvirt?

I have some server applications failing because their virtual machine starts up before the database virtual machines. Anyway to configure libvirt to start them up in a certain order and possible ...
1
vote
1answer
976 views

KVM/libvirt host has vnet for each guest?

Totally new to KVM here, so maybe there is nothing wrong with my set up, but I am running 10 guest VMs on my Ubuntu 12.04 server via KVM and I just noticed that ifconfig returned a plethora of ...
1
vote
1answer
521 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 ...
2
votes
0answers
690 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 ...