Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [libvirt]

libvirt is an API and toolkit for developing applications which manage virtual machine hypervisors, the virtual machines running under them, and virtual machine storage.

0
votes
0answers
176 views

OpenVSwitch Libvirt Persistence

I'm trying to integrate openvswitch into my libvirt/qemu setup on Centos7. Everything is actually working very well aside from the fact that when I restart my network services I lose the vnet ports ...
0
votes
1answer
2k views

How to find out ip address of new virtual machine using libvirt 0.10.0+ (routed network)

My goal is to find out ip address of new virtual machine by using libvirt api only (>=0.10). Currently I am using libvirt's net-update command: before start a new machine I set static dhcp entry for ...
0
votes
1answer
441 views

Proxmox: Access web server's guest

I explain you my configuration : a server with Debian 8 and Proxmox installed. It has a local address (eth0 : 10.0.0.100) and access Internet via a proxy ; a guest with Centos 7, with an address in ...
1
vote
2answers
2k views

libvirt cpu-mode='host-model' confuses while mapping cpu models?

I have physical host which has cpu model 'Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz' and it has 'avx2' flag in cpuinfo. The host has kvm/qemu hypervisor and libvirt configured. I set cpu mode as host-...
4
votes
1answer
132 views

Why do I need restart a VM after restarted a bridge to get network working?

I have a VM with an interface on a bridge(e.g. br0). After restarting the bridge(bring down, bring up) VM doesn't see the network and I must do "power cycle"(shutdown and then power on) to get VM see ...
0
votes
1answer
573 views

Is “MaxMemory” safe to over commit with kvm/libvirt?

Using Libvirt / KVM on Ubuntu 16.04 Compiled against library: libvirt 1.3.1 Using library: libvirt 1.3.1 Using API: QEMU 1.3.1 Running hypervisor: QEMU 2.5.0 # dpkg -s qemu-kvm | grep Version ...
0
votes
2answers
773 views

KVM/Libvirt/Btrfs Filesystem speed improvements

i wanted to install a windows terminal server on a kvm hypervisor. On the host i am using btrfs, i have read that there are some speed problems if i use btrfs whit libvirt. I wanted to use the btrfs ...
1
vote
2answers
401 views

libvirt: difference in exposing LVM logical volumes VS libvirt storage pools

I started learning how to create a good virtualization stack with libvirt. I have created a LVM Volume Group that exposes a device block made of a Linux RAID. My idea is to give a Logical Volume to ...
1
vote
1answer
3k views

Error when adding network interface to VM on KVM host using virsh

I'm attempting to script adding a network interface to a centos 6 guest. I know the interface can be set up using the virt-manager gui but it's highly desirable for it to be added as part of an ...
2
votes
1answer
514 views

Getting Intel SR-IOV Virtual Function counters

After some research on Intel SR-IOV, I've realized that there is no convenient way to get the VF counters while VF interface is being attached to a VM (for example to a QEMU/KVM VM with a Libvirt ...
0
votes
0answers
1k views

systemv libvirtd fails to start on Debian Jessie

After a reboot, libvirtd refuses to start using systemv without producing any useful errors: systemctl status libvirtd.service ● libvirtd.service - Virtualization daemon Loaded: loaded (/lib/...
0
votes
0answers
193 views

libvirt custom NAT network

I have been following this guide on how to setup a custom NAT network for my virtual guests, but after days of trying have been unable to achieve everything. I have a host with 2 physical adapters (...
-1
votes
2answers
77 views

libvirt: guest performance during backup

Here is a simplified version of my backup script that runs in the host: # shutdown the guest to ensure its filesystem is in a stable state virsh shutdown web --mode=acpi sleep 20s # the real script ...
0
votes
2answers
69 views

Foreman: How to test if the deployment is on Bare Matal or in Libvirt?

I write a custom Kickstart as a Foreman provisioning template. One of my problems is that I haven't found a way to determine if the new host will be installed on a bare metal or on a Hypervisor. The @...
3
votes
1answer
2k views

How can I check how much ram available to add to guest OS on libvirt?

I have a server with 32 gb ram and there is libvirt. There are 12 gb of ram is used. When I try to add ram to my guest OS it is not possible to add more than 12gb ram. How can I check how much ram ...
0
votes
0answers
165 views

Monitoring network stats through libvirt

I am trying to monitor and gather network statistics in realtime of guest system with libvirt through console from host system (kvm). I received such strange results: Inside host system: $ ifconfig ...
0
votes
1answer
455 views

How to use libvirt's polkit?

I just saw the polkit reference page for libvirt and created the following rule //content of /etc/polkit-1/rules.d/50-libvirt.rules polkit.addRule(function(action, subject) { if (action.id == "org....
4
votes
4answers
339 views

How to create a environment where each user's vm is isolated

I want to know if it is possible to create a multi user environment using KVM libvirt that is each user can create there own vm but that must not be accessible by others saw this Multiuser use of virt-...
2
votes
1answer
557 views

(KVM on Centos 7) Cannot ping to Guest or vice versa with single NIC Host

I have single NIC Host on Centos 7, which I want to make virtualization using KVM-Qemu. HOST The Host IP is 192.168.1.110 and the interface is enp0s31f6 I have deleted the "default" NAT ...
2
votes
2answers
507 views

Access to Guest VM via additional public IP

I have a CentOS dedicated server (Hetzner): IP: aa.bb.cc.16 Gateway: aa.bb.cc.1 Netmask: 255.255.255.255 and additional IP (guest VM (libvirt) with Debian installed): IP: aa.bb.cc.61 Gateway: aa.bb....
0
votes
0answers
660 views

Disadvantages of creating a volume with lvm instead of with libvirt? Storage pool present

When creating the virtual machine on server A, virt-install created a libvirt-volume "VM" in the libvirt storage-pool "POOL". virsh-install --disk pool=POOL,size=$HDDSIZE,$DISKOPT -n VM As expected,...
1
vote
0answers
935 views

Ubuntu 16 KVM create bridge for multiple guests

RESOLVED IT, SEE EDIT AT BOTTOM I am running Ubuntu server 16.04.1 on a bare metal with multiple NIC's. At the Ubuntu I am running KVM and on it I have some VM's running Ubuntu server 16. I wish to ...
0
votes
0answers
458 views

qemu-kvm ovmf block device passthru

I'm trying to create a new VM (using virt-manager) that boots from an existing block device. I want to pass through the entire device to the VM. Apparently this is easy if you're using BIOS, but I'm ...
0
votes
1answer
1k views

Give a VM access to a whole disk with the least overhead with qemu-kvm

I'm moving a Windows 10 install from dedicated hardware to a KVM VM. The disk (SSD) is being physically moved from the current machine to the VM host machine. Is there a way to just pass the entire ...
0
votes
1answer
143 views

Block certain ports on certain VMs running on KVM

I have 2 VMs Running on KVM hosts. I run a web server on one and use the other for experimental stuff - basically just use ssh on it. I want to block all incoming connections on all ports except on ...
0
votes
0answers
295 views

oVirt v4 network connectivity within VM's

I'm running 2 instances of oVirt. the first is oVirt 3.5 and everything is great. I recently set up Version 4.0.1.1-1.el7.centos and I'm having issues within VM's. I spun up a VM from the Glance ...
4
votes
3answers
3k views

Restrict access to KVM virtual machines to specific users

On my server I have a KVM virtual machine called "cards2". It was created by executing (as root): # virt-install --connect qemu:///system --virt-type kvm --name cards2 --ram 2048 --disk /var/kvm/...
1
vote
1answer
133 views

libvirt TCP tunneled network only works for 2 VMs

I'm setting up some VMs with libvirt (qemu driver). One VM is meant to be the gateway and is thus configured with two network interfaces. One interface is bridging into my real LAN and the other uses ...
0
votes
1answer
579 views

SCSI virtual disks not showing up on RHEL 7.X KVM guests

For whatever reason I can't get my virtual disks to show up on any of my RHEL 7.X guests (libvirt + KVM). The XML is configured just like my other guests so I know it isn't an issue on that end. It ...
0
votes
1answer
2k views

OpenStack instances power off by itself

Already asked this over on ask.openstack.org but I figured it would get more views here too. I am running OpenStack Mitaka on a 5 node cluster, 1 controller/network node and 4 compute nodes. I am ...
1
vote
0answers
301 views

KVM/libvirt: NAT forwarding virtual bridge to host bridge

I currently have a VM setup where only a few 'special' VMs are allowed to have outward facing IP addresses and the rest aren't. All of them are configured with two interfaces attached to a virtual ...
1
vote
1answer
907 views

libvirt: set hostname using dhcp in virtual network

I've configured a host-only (aka private) network for a group of VMs on a CentOS 7 host. I've created static leases in the DHCP section for the virtual network. The IP address is getting set ...
2
votes
1answer
458 views

OpenStack Juno Live-Migration never completes for instances with high load and size >64GB

I have run into situations where live migrations never seem to complete or error out. Here is how I have been able to reproduce the problem. Here is the instance I am migrating: [root@osc1-mgmt-001 ...
1
vote
0answers
227 views

Gentoo virt-manager IO throttling

I have a problem with virt-manager (or qemu/libvirt) installed on gentoo. Here is My virt-manager installed on Debian Jessie: There I have IO throttling but not on my Gentoo: I tried to search in ...
0
votes
0answers
130 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: http://wiki.libvirt.org/page/Networking#...
0
votes
1answer
111 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 openstack-nova-...
3
votes
4answers
5k 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 outside....
3
votes
1answer
3k 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
1k 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
1k 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
518 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 bus=...
1
vote
2answers
940 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
650 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
4k 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 ...
1
vote
1answer
633 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 the ...
1
vote
1answer
75 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
284 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 ...
3
votes
0answers
899 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
481 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
1answer
218 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 ...