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
votes
0answers
8 views

How do I find any files associated with virsh domains?

I have a VM host running Ubuntu 14.04 that I manage with virsh. I am going to wipe it to install a newer OS, but would prefer not to have to rebuild the guests. How do I find all files associated with ...
0
votes
0answers
8 views

From what file/script libvirt inject rules in iptables when I start service libvirtd?

Everybody know that libvirt have his own list of rules for iptables, that he automatically inject in our iptables, after we start service libvirtd Problem: After standard installation of KVM and ...
0
votes
0answers
19 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
10 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 ...
0
votes
0answers
18 views

KVM - libvirt qemu script make duplicates in iptables

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
14 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
68 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
42 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
24 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
31 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
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 ...
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 ...
0
votes
0answers
25 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 ...
1
vote
2answers
93 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: ...
1
vote
1answer
44 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
36 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
31 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 ...
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 ...
1
vote
1answer
57 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 ...
0
votes
0answers
46 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
34 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 ...
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
77 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 ...
2
votes
1answer
39 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
27 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' ...
1
vote
0answers
101 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 ...
5
votes
1answer
765 views

WARNING KVM acceleration not available, using 'qemu'

Running debian (Linux Rick 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux) Looking at my cpuinfo I can see I have vmx support: flags: fpu vme de pse tsc msr pae mce ...
3
votes
1answer
69 views

kvm snapshot-create-as failed

I have Ubuntu server with qemu/kvm. I'm try to create snapshot (for further backup) using libvirt and get this error: # virsh snapshot-create-as --domain 56 --name copy_snap --no-metadata --disk-only ...
0
votes
1answer
66 views

KVM guest cannot connect to host, but works vice versa

I have debian 7 on my host machine and I run a KVM vm on it. My hosts network configuration is this (the relevant parts): br0 Link encap:Ethernet HWaddr 68:b5:99:ae:8f:11 inet ...
0
votes
1answer
65 views

Libvirt guest destroyed after shutdown

I have created a VM withLibvirt and when I shut it down whether forcefully or with ACPI, it gets deleted. I create it: <domain type='kvm'> <name>deneme2</name> ...
1
vote
1answer
74 views

Enabling Nesting for Xen-in-Xen via Libvirt xml

I'm trying to get nested Xen-In-Xen via libvirt. Can someone confirm that adding hap and nestedhvm to the features element in the domU xml config is what is required to get nesting working? Am I ...
1
vote
1answer
80 views

Backing up Xen Guests from dom0 with disk image file

I have a Xen server dom0 with a number of guests installed and am struggling to find an easy way to manage backups from the dom0 side. Guest scripts: Of course I could run backup scripts on each of ...
2
votes
0answers
105 views

how to enable L3 cache on kvm guest?

I start a kvm guest(centos6.5) on a Intel machine(centos6.5),use libvirt, the guest's xml as follow <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> ...
1
vote
1answer
45 views

Golden image updates in qemu

Consider that there are 100 windows virtual machines coming from a single base image and each vm is added to domain along with minor other machine specific settings which can be done by a script. ...
-1
votes
1answer
39 views

KVM/libvirt: Guest monopolizes bridge

I'm having a problem in which the first guest started on a VM host can send traffic through both of its assigned interfaces, but subsequent guests can only send traffic through one interface. My VM ...
1
vote
1answer
65 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 ...
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
1answer
375 views

dnsmasq on virbr0 (libvirt) and network manager

I want to run dnsmasq on my local machine in order to configure a wildcard to resolve to 127.0.0.1 for testing purposes. However, when I went to start dnsmasq with systemd I got the following error ...
2
votes
1answer
27 views

libvirt lxc container won't use statically assigned address at startup

I have an LXC OS container (CentOS 7) configured via libvirt (CentOS 7): <domain type='lxc'> <name>lxc-test1.example.com</name> ...
2
votes
0answers
70 views

noVNC console on Openstack Dashboard is rendering garbled UI on RHEL7

I am running nova-compute on RHEL7. Openstack dashboard's noVNC console is rendering garbled UI for any instance having a UI console. Can somebody please help out? This is working just fine on RHEL65 ...
0
votes
1answer
69 views

port forwarding with libvirt

I'm trying to get port forwarding working through libvirt on top of QEMU and KVM. I found this article (https://snippets.webaware.com.au/howto/running-qemu-with-port-redirection-through-libvirt/), but ...
1
vote
2answers
184 views

How do I connect to my libvirt/qemu/guests ? (with no ip address)

I have inherited the administration of a trusty ubuntu server with several virtual servers, also ubuntu using libvirt and qemu. I have the problem I cannot connect to these virtual servers/guests. ...