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

0
votes
0answers
10 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 ...
2
votes
1answer
59 views

Persistent Network Configuration using KVM and libvirt

Our environment will have a KVM host setup dynamically using kickstart (easy enough). The hard part is dealing with network configuration and keeping VLAN configuration (and possibly bridge/host ...
0
votes
1answer
25 views

Live migration: is it possible to store image disks on a single iscsi target?

From redhat documentation: A guest virtual machine installed on shared storage using one of the following protocols: Fibre Channel-based LUNs iSCSI FCoE NFS SCSI RDMA protocols (SCSI RCP): the ...
1
vote
2answers
82 views

How do I configure bridged networking for VMs

I'm setting up a KVM virtualization server in CentOS 6. How do I configure bridged networking? (I think I need network interface eth0 to be accessible to VMs) I have tried to follow this guide: How ...
0
votes
1answer
30 views

How to mount a URL as a CD-ROM on QEMU?

I'm wondering if it's possible to specify a URL for the cdrom option on QEMU, and if so how would I go about doing that? Normally I'd mount an iso like this: <disk type='file' device='cdrom'> ...
0
votes
0answers
32 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 ...
-1
votes
1answer
27 views

Live migration (kvm) not working if any I/O operation is in progress [closed]

I did this experiment: on VM I started watching a video on youtube. While video was in progress I started migration. Migration did not complete until video was not finished. I did another experiment: ...
0
votes
1answer
19 views

Is there any complete tutorial for setting up a full QEMU-KVM from hypervisor to host through command line ?

I've found parts about how to use virt-install from scratch or almost like http://virt-tools.org/learning/install-with-command-line/ However I'm stuck at connecting to the VM through virsh once the ...
2
votes
1answer
74 views

Ubuntu/KVM Bridge Interface IP Assignment

I have a Ubuntu 12.04 LTS machine running KVM/libvirt. It has two physical ethernet interfaces. I have dedicated eth0 as the primary interface and configured bridging on eth1 for my VMs. The KVM host ...
1
vote
0answers
57 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 ...
0
votes
1answer
45 views

<virtualport type='openvswitch'/> is NOT recognized

In order to make my vm use the openvswitch interface I have to add the following lines to a vm xml config file: <source bridge='ovsbr'/> <virtualport type='openvswitch'/> I edit the ...
0
votes
1answer
23 views

cpu cache size in KVM vm differs from real cpu cache size

Although I'm running KVM/qemu with the <cpu mode='host-passthrough'/> option, the guest machine has only 4096 KB of cpu cache, while the host cpu has 8192 KB (i just verified the output of ...
0
votes
3answers
80 views

Why I can't save network changes with virsh?

I am trying to add fixed address to specific virtual host, therefor I closed virtual machine and used sudo virsh net-edit somenet. After adding line <host mac='52:54:00:26:61:22' ...
1
vote
2answers
44 views

KVM Disk Formats: Portability

I have recently begun experimenting with the KVM virtualization infrastructure. After deployment, I used virt-manager running on a management computer to build my first guest. I notice that, by ...
0
votes
1answer
62 views

assign public IPs to vm guests

I have a set of public IPs for virtual machines. Each unique public IP is to be assigned to a unique guest. With bridged networking I share eth0 with KVM machines. The ifcfg-eth0 file has ...
1
vote
0answers
42 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
66 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
1answer
186 views

Why can't I shutdown running kvm instance?

I have running kvm instance: =# virsh list --all Id Name State ---------------------------------------------------- 2 debian-test running When ...
1
vote
1answer
46 views

virt-install ignoring vnc port/listen?

I'm trying to create kvm machine on remote host. The host is running debian testing. Did use this command: virt-install --name debian-test \ --os-type=linux \ --os-variant=debianwheezy \ ...
3
votes
1answer
216 views

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: ...
2
votes
1answer
300 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
68 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
157 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 ...
0
votes
1answer
302 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
59 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
105 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 ...
0
votes
0answers
106 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 ...
0
votes
0answers
72 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 ...
1
vote
1answer
57 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
64 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
78 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
86 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
242 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
84 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
103 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 ...
0
votes
1answer
138 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
60 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
344 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
125 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
84 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
84 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 ...
2
votes
4answers
769 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
47 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
80 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
125 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 ...
1
vote
0answers
302 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
173 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 ...
0
votes
0answers
25 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 ...
1
vote
0answers
177 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
125 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. ...