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
6 views

CentOS KVM. iptables have dublicates in rules because of libvirt script

OS: CentOS 7 Firewall: iptables libvirt: 1.2.17 Problem: I used guide to make port forwarding from host to gues machines. Link to guide: ...
0
votes
0answers
15 views

How to boot livecd linux distro under kvm virtualization with virt-install or virsh?

I am trying spin up a small livecd linux distro with virt-install under KVM and got access to it via virsh console. And I am kinda loss with --location, --livecd and --cdrom parameters. How should I ...
0
votes
0answers
8 views

KVM virt-install pxe options

I want to boot my vm up to the PXE server, but I need a way for my dhcp server to recognize that it is a virtual machine and set the next-server to a specific IP. Are there any other options I can ...
4
votes
3answers
2k 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 ...
1
vote
1answer
2k 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 ...
0
votes
0answers
13 views

Foreman Error creating compute resource

I'm using Ubuntu 14.04. I'm trying to make a compute resource in foreman using libvirt. I followed the instructions, but I keep getting the following error when I enter my url: "Unable to save ...
0
votes
1answer
44 views

Nova Computer Service WIll Not Start: libvirtError: XML error: Missing CPU model name

I am having a problem with the Nova compute service not starting. I found tons of other people with this question, but nobody seems to have figured out the problem: systemctl status ...
2
votes
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 ...
2
votes
2answers
53 views

iptables / KVM forward port

I have a server with one external IP address (e.g. 1.2.3.4). On that server I use libvirt to run virtual machines. Now I want to access a virtual server on my host via ssh (port 1234) from the ...
1
vote
1answer
37 views

Clone KVM virtual machine with snapshots

I've created a virtual machine using virt-manager and saved a snapshot of it's current state. Now I'd like to create an exact duplicate machine with all snapshots from the first machine. How could I ...
0
votes
1answer
21 views

QEMU, Virsh and SMBIOS tables edit

I am currently running qemu-kvm on an Ubuntu server box and I use libvirt with Virsh to create, manage, start and stop VMs. I edited VM's XML configuration through virsh edit command to change CPU ...
1
vote
1answer
27 views

Install virt-sysprep on Ubuntu 14.04

I'm using vagrant with vagrant-libvirt and I want to create a package via the command-line: vagrant package --output ubuntu14-base.box I've got an error around virt-sysprep being absent (confirm ...
0
votes
1answer
57 views

How can I add a usb device to a domain xml from an image file?

I don't (repeat DONT) want to passthrough a physical usb device. I'm making a usb img file like so: dd if=/dev/null bs=1K of=/tmp/test_usb.img seek=2040 mkfs.vfat /tmp/test_usb.img I am then ...
0
votes
0answers
8 views

Start KVM with readonly CD image from libvirt on Debian jessie

I have a Debian jessie machine that has a network share containing ISO images mounted from another server, with the share being readonly. Now I'd like to start a new VM, using an image from the share ...
0
votes
0answers
6 views

Creating a new libvirt VM based on existing snapshots

I have a libvirt/qemu-VM with multiple snapshots. (I can for example use virt-manager to see those snapshots.) Is there a way to clone this VM completely keeping all the snapshots? Is it otherwise ...
1
vote
1answer
473 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
2answers
84 views

Accessing linux guest OS filesystem in qcow2 image

I'm attaching VM qcow2 image to get access to files which inside: modprobe nbd max_part=63 qemu-nbd -n -c /dev/nbd0 /var/lib/libvirt/images/vm-image.qcow2 scanning for volume groups vgscan: ...
0
votes
0answers
8 views

Unable to access VM after DHCPACK libvirt

The installation of a particular software makes my VM lose its connectivity. The point where it hangs is 2016-04-05 16:49:11.996 | Listening on LPF/o-hm0/fa:16:3e:b2:43:4c 2016-04-05 ...
2
votes
2answers
2k views

Wake-on-lan to trigger virtual-machine with kvm and libvirt

I'm doing virtualization with KVM and managing it via the Libvirt daemon. How do I configure Libvirt or KVM to listen for Wake-On-Lan packets sent the the Virtual Machine's NIC's MAC address and to ...
1
vote
1answer
2k 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
0answers
24 views

KVM/libvirt: Using virtio disk driver in Debian installer

I try to install Debian in a KVM-based VM using the virtio disk driver/bus and virt-install to run the installer. However, it seems that the installer lacks the virtio driver. Once I switch to ...
0
votes
1answer
2k 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 ...
0
votes
2answers
32 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 ...
3
votes
2answers
557 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 \ ...
1
vote
1answer
55 views

virsh net-define for CoreOS cluster

I have a kvm/qemu/libvirt host with several VMs running happily on br0 with IP addresses that are in the same network as the host they run inside, 192.168.10.0/24. So I'm playing with CoreOS and ...
1
vote
1answer
39 views

CentOS 7.2.1511 libvirt firewall configuration

I have a few CentOS7 setups in which I use iptables to forward ports from host to guests. Recently, i updated to 7.2.1511 and it seems libvirt insists firewalld to be active vs using iptables command ...
0
votes
2answers
35 views

virsh qemu kvm editing xml has no effect

When I try to add a network section to a kvm/qemu xml, the xml wont update with the information. When I edit the uuid, or make a mistake, i get an error. if i change the memory amount, it reverts to ...
0
votes
0answers
8 views

libvirt-Can I use 'virsh save' this command only get 'vm physical memory'?

I use 'virsh save ' to create an image,but I only want to get 'vm physical memory'.I don't know how to do it now.If you know the answer please tell me.Thanks!
1
vote
1answer
64 views

Libvirt with Xen fails to start correctly Ubuntu 14.04

At the moment i'M really feeling a little helpless: I tried to setup Ubuntu 14.04 with Xen and libvirt for management. I created a VM but I did not auto-start (altough autostart is checked). If I do ...
1
vote
2answers
14k 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'/> ...
1
vote
1answer
30 views

Modifying libvirt firewall rules between virtual networks

On my my VM host, I have two libvirt virtual networks: virbr0: 192.168.122.1/255.255.255.0 virbr1: 192.168.130.1/255.255.255.0 I have a VM behind each of those virtual networks. Machines can see ...
3
votes
4answers
2k views

Monitoring and statistics through libvirt

Is it possible to monitor and gather statistics in realtime (CPU, memory, HDD, network, ... - something like dstat) of guest systems with libvirt through console from host system (KVM based)? If yes, ...
1
vote
2answers
285 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. To minimize the downtime we want to ...
2
votes
1answer
37 views

How to create a new domain from an existing base image in virsh

Is there a way of creating a domain with virsh from a base image? I have looked around and found that it is possible using virt-install, however I would prefer it if this was done purely through ...
0
votes
0answers
16 views

how to change or modify libvirt xml domain definition?

first of all excuse my bad english. I would like to know if it is possible to modify default xml domain definition location (/etc/libvirt/qemu). I would like to change this default path. tanks your ...
1
vote
1answer
17 views

Creating libvirt “mcast” networks using virt-install?

I would like to create virtual machines with mast network interfaces. This is possible to by first creating a guest using virt-install, then modifying the domain XML. Is there a way to do this from ...
0
votes
0answers
43 views

Libvirt & USB Hub Passthrough

I have a virtual machine which I wish to have a USB Hub and all of its devices allocated to a virtual machine. The Hub in question is a USB hub which itself is plugged into one of the ports on the ...
1
vote
0answers
66 views

VNC not working on XEN/libvirt domU - debian jessie

Hi recently configured a brand new server for testing purpose: debian jessie (8.3) xen 4.4 (xl toolstack) virtinst I created and started a new domU through virt-install: virt-install \ ...
0
votes
0answers
16 views

Xen+Libvirt: How to use PVH mode with Libvirt?

PVH mode is an hybrid of PVHVM and PV modes, where you use both virtualization and paravirtualization techniques for improved guest performance. It's been introduced around Xen 4.4. I'm using Xen 4.6 ...
0
votes
1answer
32 views

Creating a new domain in libvirt from a base domain

TL;DR at bottom I am building a web interface for libvirt as a project. I am using libvirt-php as the language binding to libvirt and everything is working, except for domain creation, sort of. The ...
0
votes
1answer
34 views

same libvirt config, one machine boots, the other does not

I am migrating a bunch of vms from an old machine to a new one. The old one was using some in-house scripts and lvm logical volumes, the new one uses libvirt and plain files. The configs are rather ...
4
votes
2answers
3k 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 ...
1
vote
0answers
24 views

Libvirt does not see updated LVM volume

All VMs run off an LVM pool. I resized one of the LVM volumes to increase VMs drive copacity. Resized it with lvextend as usual. Everything is successful and lvs shows the new size. Libvirt does not ...
1
vote
0answers
33 views

How does Qemu handle memory?

I'm having a real hard time understanding something and I was wondering if anybody has any experience with this and is able to help. I have two KVM VMHosts, one running qemu 2.4.1 and the other ...
0
votes
1answer
71 views

Correct virtio setup on Ubuntu 14.04 64-bit host

At the present moment, my guest is running inside qemu and host is kvm intel, running Ubuntu 14.04, kernel is 4.3.0 stable. From within the guest, when I run "hdparm -i /dev/sdb" on the guest, I ...
0
votes
1answer
2k 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> ...
7
votes
3answers
8k views

libvirt: how can I make a domain start when the host starts?

I would like some of my domains to start automatically when my host starts (I'm using libvirt+KVM on ubuntu). I guess I could put some "virsh start..." statements in rc.local, but is there a way to ...
1
vote
0answers
98 views

KVM bad IO sync performance in Linux guest

I'm setting up virtualized Ubuntu 15.10 guest inside Ubuntu 15.04 server using libvirt and KVM. Storage in host system: # mount | grep ext4 /dev/sda1 on / type ext4 ...
0
votes
0answers
26 views

Virtual Machine Manager libvirtError: End of file while reading data: nc: invalid option — 'U'

When connecting to one of our KVM (libvirt + qemu) servers using the Virtual Machine Manager (virt-manager) we got the error: libvirtError: End of file while reading data: nc: invalid option -- 'U' ...
0
votes
1answer
2k 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 ...