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

Virsh domain has space in it, can not remove

I'm having trouble starting, or destroying a domain: virsh # list --all Id Name State ---------------------------------------------------- 1 pxe ...
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
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
2answers
94 views

Force an LXC container to use its own IP address

Sorry if this question has already been asked. I could not find it, I have this setup : +---------------------------------------------------------------------------------------------+ |HOST ...
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> ...
10
votes
2answers
1k views

Linux containers (LXC) on Red Hat/CentOS EL6 - lxc-create versus libvirt?

It's tricky trying to stay within the good graces of Red Hat and still plan for system longevity... I've been a proponent of Linux Containers (LXC) for over a year. My initial installations were ...
2
votes
1answer
52 views

Any way to increase the libvirt guest network response time?

We are running a number of Debian Wheezy VMs on top of Ubuntu Servers 12.04.4 / Libvirt 0.9.8-2ubuntu17.17 The host is connected to the network through a trunk. It then split the VLANs and create a ...
0
votes
1answer
61 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
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 ...
2
votes
1answer
140 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
41 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
125 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
49 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
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 ...
-1
votes
1answer
39 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
51 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
191 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
147 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
58 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
39 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
298 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
62 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
98 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
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
142 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
244 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
118 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
487 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
546 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
87 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
215 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
1answer
627 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
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
3answers
144 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
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 ...
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 ...
1
vote
1answer
66 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
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 ...
0
votes
2answers
101 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
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 - ...
0
votes
3answers
435 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
130 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
164 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
177 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
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 ...
1
vote
1answer
527 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
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
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: ...