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
1answer
34 views

Best options for KVM/qemu/libvirt VM migrations without shared storage

My team has recently been tasked with improving the virtualization infrastructure at the company and one thing we're looking into doing is speeding up migrations. We use local storage only on all VM ...
0
votes
2answers
61 views

qemu-kvm take 100% cpu during start Win 7

I have Centos 6 with qemu-kvm version: qemu-kvm.x86_64 2:0.12.1.2-2.448.el6_6.4 On Dell Precision with 2x Xeon 5110 When I run VM qemu-kvm process take 100% of CPU and starting Windows on ...
1
vote
0answers
42 views

XFS/EXT4: Why is actual file size on disk larger than apparent size? Clarification

On a CentOS 7.1.1503 (3.10.0-229.el7.x86_64) system running KVM/qemu on an XFS filesystem, I'm attempting to work out what specifically is adding additional space to a VM diskimage file. $ ls -ls ...
0
votes
2answers
47 views

Forward Port on Guest Operating system With Libvirt

I am currently running a Xen Hypervisor underneath Ubuntu 14.04. On the host machine I am running a guest VM. From what I understand, In order to be able to receive incoming connections on the ...
0
votes
0answers
23 views

Host cpu association with numa node not reflected in guest

In host NUMA node 0 has cpus 0-7 and 16-23 NUMA node 1 has cpus 8-15 and 24-31 But in guest NUMA node 0 has cpus 0-7 and 16-31 NUMA node 1 has cpus 8-15 only My Question is why NUMA node cpu ...
0
votes
1answer
29 views

Installed KVM, but Virtual Machine Manager says localhost(QEMU)

My understanding is that KVM uses the CPU virtualization properties and is much faster than QEMU, which is emulation. I used the Virtual Machine Manager to create the virtual machine. I am nearly ...
0
votes
0answers
16 views

No package transfer from host to guest on KVM

I want to assign external static IPs to my KVM guests. I do not prefer a NAT solution. What should be the configuration of network and routing tables? I manually assing a static IP to guest. I can ...
0
votes
1answer
15 views

Can libvirtd be used without kvm?

I wanted to try libvirtd with virt-manager (I wanted to test migration.) on a virtual machine (without nested virtualization support enabled, so no kvm...), and I expected it to work (and use full ...
6
votes
1answer
51 views

Prevent hijacking IPs in KVM/libvirt

How can I prevent a VM user/client from accessing IP addresses he doesn't own but are routed over the same bridge on KVM/Libvirt? IP addresses are routed to a cisco switch vLan consisting of a /24 ...
0
votes
0answers
43 views

Is it possible to passthrough a USB-hub and its devices to a libvirt guest?

Since I am having multiple devices in a libvirt/qemu Windows 8.1 guest I need to plug in and out rather often, I am wondering if it is possible to make life a bit easier. Is it possible to pass ...
0
votes
0answers
15 views

libvirt: can it provision network interfaces where the network backend is running in a domU rather than dom0?

Thanks to a great blog post, only slightly out of date [1] I've managed to configure a dom0 which has no networking at all: physical network interfaces are passed through to dedicated domU guests ...
0
votes
0answers
12 views

Booting grml-iso using libvirt

I'm trying to boot the newest grml live disc iso (https://grml.org/) with a virtual machine using libvirt. For defining the vm, I've tried a whole lot of different commands, my latest try looks ...
1
vote
1answer
71 views

Is there any way to lock/unlock a Hosted Engine in oVirt?

I have a weird situation with my Hosted Engine in oVirt. We have an oVirt cluster set up using gluster as the storage for the engines isos and all the information. About a week ago two of the three ...
0
votes
0answers
25 views

Openstack Icehouse - Hypervisor (KVM) cpu_mode config

I have installed Openstack Icehouse, using the guide located here, and I am trying to find out what 'cpu' is exposed through the hypervisor to a VM. I have found this guide in order to configure the ...
0
votes
1answer
231 views

Installing VM on CentOS 6.6 with virt-install hangs

I'm trying to install a Centos 6.6 VM on a CentOS 6.6 host with the following command. virt-install \ --name vm-queue \ --description "Queue Server" \ --ram 2048 \ --disk ...
3
votes
1answer
158 views

Qemu+libvirt+kvm significant performance lag in VM's

I am troubleshooting poor performance on our new VM host machine which is a Dell PowerEdge R415 with hardware RAID. We've got about 20 VM's running like this: qemu-system-x86_64 \ -enable-kvm \ ...
0
votes
1answer
131 views

Unable to import Ubuntu virtual machine on Centos 7 kvm host

[root@kvm ~]# virsh create /root/ns1.jesse64.xml error: Failed to create domain from /root/ns1.jesse64.xml error: internal error: process exited while connecting to monitor: qemu-kvm: -machine ...
0
votes
1answer
109 views

Switching back to libxl from xend without rebooting

I did something dumb: I enabled xend over libxl and started an instance with xend. Now, libxl won't start any instances, even though I got rid of all the xend instances and stopped xend: root@xen1 ...
1
vote
0answers
32 views

libvirt hook qemu suse12

we have this qemu hook. In suse 11 was working well but in suse 12 it is not working. The hook is setting the ports in openvswitch native-untagged. Do you know if there is some libvirt missing ...
1
vote
0answers
74 views

kvm guest routing with 2 default gateways

I have a kvm guest with two virtual NIC. NIC with internal IP III.III.III.III (eth0) NIC with external IP EEE.EEE.EEE.EEE(eth1) I'm using macvtap. The host has his own external IP. I can ping ...
0
votes
1answer
132 views

Ubuntu Trusty: virt-manager performance over WAN… 40+ secs freezes

I'm using the virt-manager GUI 0.9.5-1ubuntu3 on my laptop running Ubuntu 14.04 against a server located some distance away (same OS) and getting rather unpleasant performance. Laptop-server pings ...
0
votes
0answers
82 views

LXC containers - Duplicate tty on Gentoo guest

I'm trying to run Gentoo inside LXC container on Centos 7 host machine. I have prepared the guest OS on another (Gentoo) machine by following this tutorial https://wiki.gentoo.org/wiki/LXC. On this ...
1
vote
1answer
22 views

libvirt NON TLS connectivity

virsh seems to require TLS even when tls is set to 0 in libvirtd.conf. I would prefer not to use TLS since I am working in an secure environment and as such TLS only adds complication, but doesn't ...
0
votes
1answer
43 views

libvirt management is slow under ubuntu

I've just done a fresh install of KVM/Qemu under Ubuntu 14.04.2 on an older (C2D gen) server with dual quad core xeons and 24 gb of ram. I'm finding that I'm waiting for operations in virsh for around ...
0
votes
0answers
123 views

KVM GPU passthrough working only with cirruslogic vga added, VM goes in paused state if remove cirruslogic and boot with passed-through gpu only

It seems I had this working once but maybe that was when my kernel wasn't trying to load the fglrx kernel module. (I think before it was loading 'radeon' module) Not sure if this was the issue/change ...
0
votes
0answers
26 views

Prevent container from shutting down at console exit

As the manual clearly states, an LXC container automatically destroys (shuts down) itself when you exit the console. However, we're using these machines as servers (sshd, sometimes apache, ...) and I ...
0
votes
0answers
151 views

live-migration failure and unable to launch an instance

I am having a trouble enabling live-migration in Openstack. I followed these steps such as setting vnc_listen = 0.0.0.0 etc. However, I get the following errors: 2015-03-27 17:43:42.336+0000: ...
0
votes
0answers
83 views

Virt-manager internal error: Network default is not active

Virt-manager is not booting up any more guest machines & it says, """Error starting domain: internal error: Network default is not active""". On looking at log file, it says ebtables not ...
0
votes
2answers
219 views

State of VM after 'virsh save'

virsh save vm_name memdump and then virsh restore memdump restores a (running) VM all right. However, a VM is shut off after virsh save. I'm writing a "live" backup and restore script for KVM VMs, so ...
0
votes
1answer
90 views

Revert libvirt external snapshot

Having some issues understanding how to revert snapshots on ubuntu 14.04 using KVM... Until now i have been using internal snapshots, however due to space issues (space not being re-allocated after ...
1
vote
0answers
130 views

Access to equally defined VM in different VLANs

I have a working libvirt cluster and in order to perform some paralellization I have duplicated it. At the moment my scenario looks like this: two clusters whose VM definitions are exactly the same, ...
0
votes
1answer
44 views

libvirt external snapshots: snapshot chain linked through filenames or inodes

If I have the following chain (it was created using external snapshots through virsh): base.qcow2 --> snap1 --> snap2[current] Now if I copy "base.qcow2" to a remote location, del the original ...
0
votes
0answers
320 views

Backup KVM running machine safely

I read some solutions to make backups of running VMs, but all take offline snapshots that seems difficult that will work if the VM has high I/O load. I have tested but i have doubts about the process ...
0
votes
1answer
156 views

9p root filesystem using libvirt and QEMU

I'm attempting to boot a Linux VM with a 9p root file system using libvirt. This works perfectly when QEMU is invoked directly, using the following command: qemu-system-x86_64 -enable-kvm \ -kernel ...
0
votes
1answer
58 views

nova volume-detach fails silently, compute log shows libvirtError: invalid argument: no target device vdb

Using Openstack Havana, I'm trying to detach a cinder volume from a nova instance. Nova volume-list shows it as in-use: | 34b0ea26-f85c-4b62-8ebd-884b0e63e2d5 | in-use | filestore | 256 | None| ...
0
votes
1answer
297 views

How to configure and use qemu-guest-agent in Ubuntu 12.04? My main aim is to get the IP address of guest VM from Host machine

In the documentation it is not very clear that how to install and use qemu-guest-agent in Ubuntu 12.04. So can anyone help me out ? http://wiki.libvirt.org/page/Qemu_guest_agent It is a daemon ...
2
votes
2answers
158 views

How to measure boot time of a VM from host machine?

On both Guest machine and host machine, I am using Ubuntu 12.04. As a hypervisor I am using KVM. I want to perform some experiments related to boot-storm and I have created all other scripts to ...
1
vote
1answer
511 views

Pass an USB hub from a KVM host to a guest with libvirt

I have the following USB devices on a Linux server: # lsusb -t /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/6p, 480M ...
0
votes
1answer
81 views

routing a second public IP to multiple VM's

myself and a friend have rented a dedicated server and have used KVM and libvirt to create virtual machines for us to use. (we are using debian jessie on the host) we purchased two additional IP ...
3
votes
3answers
603 views

attaching usb dongle to KVM VM

I'm struggling to connect a usb device, that gets detected correctly by the host, to a kvm vm. I have a freshly installed Ubuntu Server 14.10 as KVM/QEMU host. I set up an Ubuntu vm using this ...
0
votes
1answer
1k views

Installing a Windows guest with virtio in a single step (Debian)

I am trying to create a Windows 7 (32bits) with virtio disk and network in a single step using virt-manager. I've been trying to follow the step-by-step procedure here. However there is no such ...
1
vote
1answer
383 views

Running Vagrant/libvirt: trying to establish public/private networks

I'm running Vagrant 1.7 (from their official 1.7 packages) on Ubuntu 14.04 LTS and I'm trying to provision several private VMs and one public one. My Ansible provisioning scripts change all the ...
1
vote
0answers
147 views

Force libvirt to pass always the same device number to the guest on USB device reconnection

I have a HP plotter connected with a USB cable to a debian server through a USB hub. On the server there is a virtualized Windows XP. Everytime I reboot the plotter a different device number is ...
0
votes
1answer
55 views

What's a good way to check KVM networking status?

I'm running several KVM with libvirt on a debian wheezy host. I want to check networking (maybe more later on) on the guests and if it is not available, restart the guest in question. Is there ...
0
votes
1answer
185 views

libvirt and host firewall

Hiho! I'm using libvirt with kvm and that works great. My desire is to lock down the host system using a host firewall. Up to today I always used shorewall as my iptables mangement utility of choice. ...
0
votes
1answer
170 views

Changing qemu/libvirt default gateway IPv4 IP to something other than x.x.x.1/24

General info: I have a KVM-libvirt/qemu running on ArchLinux; 3.18.2-2-ARCH ls | egrep -i 'libvirt|qemu' libvirt-1.2.11-1-x86_64.pkg.tar.xz libvirt-glib-0.2.0-1-x86_64.pkg.tar.xz ...
1
vote
2answers
865 views

Xen / libvirt - “End of file while reading data: Input/output error” when attempting to start a domain

I'm getting the following string of errors when I attempt to start a domain using virsh: virsh # start vimes error: Failed to start domain vimes error: End of file while reading data: Input/output ...
1
vote
3answers
153 views

mount a root disk in mnt

How can I mount a root virtual disk from another VM on my CentOS ? In order to change some files on it, not to use it as a real root disk. there are 2 partitions on my virtual disk : /boot (Linux ...
2
votes
1answer
121 views

libvirt - Restart VMs after return from power failure?

Is there any way to make KVM automatically restart any VMs that have been shut down due to power failure? Here is my scenario: I run a small VM tank, mostly with development VMs on it. I now have a VM ...
0
votes
0answers
27 views

mounting logical volume attached to vm while vm is running

i am experimenting lvm2 and qemu-kvm. and I want to share and ask some questions. at the end of there is appendix what i am doing. a logical volume on host is attached on guest host (vm) as vda. this ...