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
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 ...
3
votes
1answer
2k views

Remote automated provisioning to a XenServer Hypervisor

I'm currently working on a project where I use Vagrant with Ansible provisioning to create local environments in VirtualBox. I'm currently working with a University and we have a XenServer Hypervisor ...
0
votes
1answer
1k 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
1k 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 ...
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 ...
1
vote
1answer
1k views

Debian Jessie Qemu KVM GPU Passthrough to Windows Virtual Machine guest Virt-Manager error Bus PCI not found

I'm having problems with Virt-Manager not wanting to boot a VM and giving error: Error starting domain: internal error: process exited while connecting to monitor: char device redirected to ...
9
votes
4answers
4k views

How to keep time on resumed KVM guest with libvirt?

On my host I am using libvirt and a KVM guest. When the host is shutting down, libvirt suspends the guest. When the host is starting up, libvirt resumes the guest. The problem is, if the guest is ...
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 ...
7
votes
1answer
9k views

Mapping USB drive direct to libvirt KVM virtual machine?

I am searching for information on mapping an existing drive (USB drive) to a KVM virtual machine using libvirt. I have been going over http://libvirt.org/formatstorage.html#StoragePoolTarget. But I ...
1
vote
2answers
1k views

upstart pre-stop script

I have libvirt/KVM set up on my Ubuntu and before shutting down the machine I would like it to attempt shutting down the VM's using an ACPI poweroff (virsh shutdown), then I want it to stop shutdown ...
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 ...
1
vote
3answers
2k views

How can I change Qemu KVM machine architecture from 440fx to q35 with virsh edit or virt-manager

Still trying to get GPU passthrough working and decided to change machine type from older 440fx to q35 ie pc-q35 but if I do virsh edit on the config it refuse to save saying "PCI Bridges not ...
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
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
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
1k views

ERROR Host does not support virtualization type 'hvm'

I have a problem in installing vm on KVM using libvirt virsh install sudo virt-install -n ccnx1 -r 512 --vcpus=1 --os-type=linux --accelerate --nographics -v -l ~/ubuntu-12.04.5-alternate-i386.iso ...
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 ...
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 ...
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 ...
3
votes
2answers
10k views

KVM/libvirt: How to configure static guest IP addresses on the virtualisation host

What I'd like to do is to set the guests' network configuration (IP address, subnet, gateway, broadcast address) from the host system. The used network setup is in bridge mode. How can I configure the ...
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 ...
0
votes
2answers
10k views

virsh: VM console does not show any output

I have a VM which I can start with virsh. According to virsh dumpxml VM1, this is the allocated pty: <serial type='pty'> <source path='/dev/pts/6'/> <target port='0'/> ...
13
votes
2answers
6k 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 ...
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 ...
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
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 ...
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 ...
9
votes
5answers
2k views

libvirt: Change dhcp-setup without restarting

I'm using libvirt and kvm to virtualize my server. I configured libvirt to start a dhcp-server on the bridge-network-interface to give the vm's their ips. Every VM's gets always the same ip based on ...
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
191 views

OpenStack Live-Migration VNC server error

Following these steps to do a live migration results in: 2014-12-08 00:42:38.772 17808 ERROR nova.virt.libvirt.driver [-] [instance: db9d53ac-4a75-4009-a67e-f45abf9d4d32] Live Migration failure: ...
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 ...
11
votes
1answer
5k views

Read/write access for passthrough (9p) filesystems with libvirt/qemu?

I have recently started experimenting with the support for passthrough filesystems in recent versions of KVM/QEMU/libvirt. Making the filesystems available for read access has "just worked", but I'm ...
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
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 ...
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 ...
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
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
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
118 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
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 ...
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 ...
4
votes
1answer
182 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 ...