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.

1
vote
0answers
44 views

Docker on CoreOS VM behind Corp proxy

I have Docker on a CoreOS VM which runs on top of KVM. VM Networking: $ virsh net-edit libvirt <network ipv6='yes'> <name>libvirt</name> <uuid></uuid> <...
0
votes
1answer
470 views

Using virt-builder to create image

I'm trying to automatically create cloud images using virt-builder. I am using the following command in Centos 7 and it keeps failing. Any idea behind the issue ? # virt-builder debian-9 -o /var/lib/...
1
vote
1answer
165 views

No traffic to the VM

TL;DR (1) Only the first 2 VFs are transferred to the VM and (2) No traffic to the VM. Setup Host is Ubuntu 16.04 Intel 82599 (supports SR-IOV) attached via PCIe Driver ixgbe Guest VM is Ubuntu ...
0
votes
0answers
521 views

How to set default permissions for libvirt VM files

When I create a new virtual machine using virt-manager, a qcow2 file is created with read permission for all: rw-r--r-- 1 libvirt-qemu libvirt-qemu 53695545344 Jan 12 16:24 vm.qcow2 I find it ...
0
votes
0answers
311 views

macvlan containers inside virtual machine

I am trying to accomplish a pretty specific setup with macvlan, containers and virtual machines, but I am not sure it's possible. I'm hoping some of you guys can help! The setup I am trying to ...
2
votes
1answer
1k views

host port forward with qemu through libvirt in user-mode networking

I'm having trouble editing my libvirt's host-xml to make qemu forward TCP connections to the guest. This questions linked to a blog post which recommended adding -redir to the Qemu command line. But ...
0
votes
1answer
106 views

GTK apps no longer render text

I am using virt-manager on Debian Jessie. A few weeks ago, it was working fine for me; however now when I run it, the text does not render correctly. I have tried reinstalling all of the dejavu fonts,...
1
vote
2answers
366 views

Why doesn't libvirt “Usermode Networking” start on boot?

Running Ubuntu 16.04, the default virbr0 interface is not started by default for me on boot, meaning I have to start it manually using the command, $ sudo virsh net-start default Not a big deal ...
0
votes
2answers
535 views

How to add firewall rules at chain start, in CentOS with libvirt and iptables?

With this /etc/sysconfig/iptables: *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -...
0
votes
1answer
161 views

ubuntu iptables libvirt port forwarding

I have been beating my head against the wall for the past few days trying to figure out how to allow incoming connections to a vm machine on ports 443 and 8443. Here is some information on the system....
0
votes
1answer
103 views

Troubleshoot libvirt-managed qemu x86-64 UEFI guest

I have a libvirt/qemu/x64 UEFI guest running Windows 10. The problem is that it starts successfully every other time. When I issue a guest start commmand (any libvirt method) 1st time, the guest ...
0
votes
1answer
600 views

Multiple networks with firewalld and libvirt/KVM

In the past i had a hypervisor set up with libvirt/KVM and IPtables in order to have VMs reachable through NAT on IPv4 (forwarding and masquerading don in iptables) and directly on IPv6 (routed ...
2
votes
0answers
226 views

How to provision DRBD to libvirt storage pool?

I want to expose DRBD replicated storage (2 nodes Active/Passive) to libvirt as a storage pool for qcow2 files. However, I have the following error message: virsh pool-create-as qcow2 --type=logical -...
4
votes
4answers
3k views

How to add virtual storage as SSD in KVM

Being previously a VirtualBox user, I moved to KVM(QEMU/libvirt or whatever it's called) recently. I know that in VirtualBox, when you add a new storage device to the VM, there is a checkbox labeled ...
0
votes
2answers
152 views

Bridged Network with libvirt on centos

I'm trying to configure Bridged Network by creating a network script at /etc/sysconfig/network-scripts/ifcfg-br0: DEVICE="br0" NM_CONTROLLED="no" ONBOOT="yes" TYPE="Bridge" BOOTPROTO="static" IPADDR="...
3
votes
3answers
2k views

Cpu pinning strategy for kvm / centos7

I am migrating from Xen to Kvm. In Xen I was able to easily pin host cpus to guest vms, and also to pin host cpus to the "dom0" . In Kvm I can also easily pin host cpus to guests vms, but, as far as ...
3
votes
0answers
75 views

Convert VM (redhat virtualization 3.5) to a physical server

I have a virtual machine running on red hat virtualization 3.5, i need to convert that VM to a physical server. (mainly due to a performance issue) my volume groups as follows NAME ...
1
vote
0answers
392 views

Centos 7 with libvirt, Kvm and balloon consumes 100% cpu on all versions of windows

Windows works perfectly, but the balloon does not work, after setting the min and max memory and activating the BLNSVR service, windows starts to consume 100% CPU. If put Min and max memory equal the ...
1
vote
2answers
789 views

Is there anyway to do a live qcow2 backup without pausing vm's?

I'm trying to setup a KVM backup solution for our servers that would take live backups without stopping the system. I Found several ready scripts which i have tested, but they all either stop or "...
2
votes
0answers
227 views

How to create my own virtual machine base images? [closed]

I would like to create my own base VM image to allow for faster provisioning of new VMs. Right now, I'm creating a new and empty VM, inserting the distribution's ISO into it, and going through the ...
3
votes
1answer
64 views

centos libvert vm network can't get IP address

I have a host machine running centos 6.2 and it has 2 VM's using libvirt. I had it all working, but then I had a power outage and now the host has connectivity, but the VM's cant get an IP when they ...
1
vote
0answers
679 views

KVM virtual machines won't work in bridge network mode anymore

Something broke on my KVM host (Ubuntu 16.04). I have some virtual machines configured to use br0 so they appear as separate machines on the LAN with their own IP. They get their IP from the router, ...
0
votes
1answer
238 views

How to pass an ignition.json to a Xen CoreOS DOMU when using libvirt or `xl`

I have a baremetal server with Xen, and Debian 9 as DOM0. This server has libvirt, and I can happily create PV domains by using xl, virsh or remotely using virt-manager. I want to streamline coreos ...
0
votes
1answer
205 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
167 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
241 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
868 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 ...
4
votes
2answers
5k 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 ...
0
votes
0answers
48 views

libvirt, How to Connect the Guest direct with the Internet, so no Port forwarding is needed

I'm new to libvirt so I dont know how to manage this. I've installed a Guest on my Server, this guest is win2k12r2. At the Moment I'm Forwarding the Remote Desktop Port like I've seen on this Page ...
3
votes
1answer
2k 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
1k 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
87 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
65 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
2k 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
317 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
43 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
365 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'...
8
votes
3answers
9k 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
1k 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
558 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
69 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
565 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
767 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
462 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
380 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
163 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
3k 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 ...