Stack Exchange Network

Stack Exchange network consists of 175 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.

8
votes
3answers
11k views

How to change the default Storage Pool from libvirt?

I'm trying to use a different Storage Pool on KVM in order to store the virtual disks of my VMs and also the ISOs from the operating systems which I'm using. For example: I want to use the directory /...
0
votes
2answers
2k views

custom dnsmasq (or custom options) with libvrt?

Currently only two options related to network boot are available in libvirt via bootp options: server and file So for config like this: <bootp file='test.ipx' server='10.10.10.2'/> this code ...
3
votes
2answers
1k views

Is there a way (non network-based) to share host (ubuntu) file system with guest (centos 7) using libvirt?

I am trying to use virsh and domain xml to launch a Centos 7 guest from ubuntu 16.04 LTS host. The "filesystem" node that i am using in domain xml is as below: <filesystem type='mount' accessmode='...
0
votes
2answers
580 views

Libvirt host to virtual network

Environment: CentOS 7 + libvirt (with virt-manager) 6 NIC Multiple internal private networks Task: Create a virtual firewall and assign all NIC to it Problem: How can I connect the host system to ...
4
votes
0answers
75 views

Libvirt LXC leaked processes

I'm trying to run several lxc containers on an ubuntu 16.04 server. (libvirt version is 1.3.1). The nature of my team's use of these containers means that they are constantly booting and then being ...
2
votes
2answers
650 views

IP Alias/Virtual Interface for ESXi on KVM/libvirt [closed]

I need to run two ESXi hosts on KVM and assign them distinct, external IPs visible to the external network. Desired topology: ESXI ESXI ↓ ↓ KVM KVM ↓ ↓ vIF ...
0
votes
1answer
883 views

NATing through a vpn with libvirt

I installed a server with libvirt, and I've created a test VM. When I use the default network for it's interface, it gets a private IP and the NATing seems to work fine. I installed OpenVPN, so I have ...
3
votes
0answers
499 views

OpenVSwitch with Libvirt

Here's my situation: I'm running CentOS 7 with Openvswitch and Libvirt/Qemu. My domains are configured to use the virtualport type openvswitch, so when I start a VM it creates a port in the ovs bridge....
1
vote
1answer
434 views

KVM/qemu/libvirt VM PCI Domain/Bus/Slot/Function assignment using virt-install

I am trying to create a VM using the virt-install utility and while that is easy enough to do what I would like to be able to do is proving quite difficult. I would like to be able to specify the ...
1
vote
0answers
171 views

Unable to access vm guest running apache using macvtap behind router

Setup Host OS is Centos7 running libvirt. I have multiple guests running using macvtap as an interface to a bridged bonded interface (br0). br0 is a bridge of bond0, which includes two ethernet ...
1
vote
2answers
4k views

virt-install cannot use ISO file as location

I am using the following script to install a new Fedora Server virtual machine virt-install \ --name theta-1 \ --ram 8000 \ --disk path=/dev/vg/t1.img \ --vcpus 8 \ --os-type linux \ --os-variant ...
0
votes
0answers
188 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
494 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
139 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
646 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 ...
1
vote
2answers
828 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
448 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
562 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
2k 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
212 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
80 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
72 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
3k 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
177 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
530 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
375 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
598 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
556 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
782 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
961 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
496 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
171 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
324 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
146 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
625 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
341 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
980 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
473 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
237 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
131 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
117 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 ...