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.

Filter by
Sorted by
Tagged with
0
votes
1answer
459 views

Restrict users access to particular VM (libvirt)

I have a linux host (SLES12) and bunch of VMs on up of it via libvirt (KVM hypervisor). I assigned one GPU per each VM, and would like to be able to restrict each users access to particular VMs (e.g. ...
1
vote
1answer
1k views

KVM/Libvirt: How to make local DHCP leases available to local DNS server through dnsmasq

On Ubuntu 17.04 with libvirt 3.0.0 I have multiple virtual networks defined on my Server: # virsh net-list --all Name State Autostart Persistent ----------------------------...
0
votes
1answer
194 views

How to enable internet access with address resolution to a libvirt VM inside a custom NAT-based network

I am trying to setup a private network for VMs as prosed on libvirt networking handbook but the VMs are not able to connect to the internet and resolve domain names. As following the handbook linked ...
0
votes
1answer
343 views

Is it possible to migrate a LXC Container from Ubuntu to libvirt-lxc (SLES)

i'm currently investigating a Scenario, where a LXC Container, which was created on Ubuntu, is supposed to be migrated to a Container on SLES. Is there a way to do that? Are there any Tools one could ...
0
votes
1answer
1k views

KVM - Passing USB to guest with virsh/XML fails but works from virt-manager

Running kvm on debian 8.8 jessie. I cannot redirect usb from a host to a guest (tried debian jessie and windows 2012 as guests, same problem) libvirt 1.2.9-9+deb8u4 If I redirect the USB drive ...
6
votes
2answers
8k views

How to repair a broken-resized qcow2 disk image for libvirt/kvm?

Today I wanted to increase the size of a VM, so I did what I always do (have done it before): qemu-img resize diskimage.qcow2 +22GB Then the file broke and the VM does not start any more. I tried ...
3
votes
1answer
3k views

Remove libvirt's dhcp lease entry using virsh

Using: $ virsh version 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 $ $ $ lsb_release -a No LSB modules are available....
0
votes
2answers
2k views

Libvirt: one NIC, multiple VM, all with Bridged mode

I have a question, is it possible to add one host NIC to multiple Virtual machines in libvirt with both of them using it as bridged mode. I've ran out of NIC-s and I still have 2 VM-s who need bridged ...
1
vote
2answers
2k views

Offline migrating KVM guests using virsh?

I want to offline migrate the KVM guest e-devel to another centos73 host using virsh. So I do # virsh -d 0 migrate --offline --persistent e-devel qemu+ssh://kvm2/system migrate: offline(bool): (none) ...
-1
votes
1answer
116 views

Usage of libvirt rpc protocol

Where libvirt rpc protocol is used? Is it used inside remote connection communication? I have read that it used between libvirt library and libvirt daemon.
-1
votes
1answer
121 views

kvm tcp vnc connection

Do someone have correct tcp vnc configuration for kvm? I have tried various ways correcting lines in libvirt.conf, qemu.conf, but they do not help (changing listen address, changing flags, changing ...
2
votes
1answer
3k views

Shut down windows server 2012R2 KVM VM

Question: Does anyone know how I can get the Windows 2012R2 virtual machines to shutdown when sent the signal by the cluster resource manager? Background: I am running Windows 2012R2 servers as ...
0
votes
1answer
375 views

windows guest OS over kvm hypervisor does not preserve disk status after attaching network interface

I have openstack based cloud environment. I have kvm/qemu based hypervisors. I created Windows guest OS vm on one of the hypervisors. And I attached volume(vhd) to vm. I changed disk status to online ...
0
votes
1answer
45 views

openstack: where does nova keep guest devices information in database?

This is openstack specific question. I am using openstack of Juno version. I have kvm/qemu hypervisors with libvirt. I want to know where nova stores information related to my virtual instance's ...
0
votes
1answer
446 views

Decreasing CPU allocation to running Guest Windows server

I have Ubuntu 16.04 as host and windows server 2012 as the guest installed using Virtio drivers in KVM. I am able to increase the CPU while guest is running, however I am not able to decrease the CPU'...
10
votes
3answers
16k 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
3k 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
612 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 ...
3
votes
0answers
89 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 ...
1
vote
2answers
813 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 ...
1
vote
1answer
1k 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
596 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
621 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
190 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
6k 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
225 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
570 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-...
3
votes
1answer
209 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
835 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
941 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
562 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
641 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/...
-1
votes
2answers
90 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
86 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 @...
2
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
1answer
623 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
480 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
666 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
655 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
982 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
1k 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
614 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
225 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
395 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 ...