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
1 vote
0 answers
175 views

how to design network for virtual machines with just one nic

for the past week or so i've been recovering from the shock that i have literally no idea how my isp's network works, by getting a new box and trying to do a sensible design from scratch. our design ...
Mina Galić's user avatar
1 vote
2 answers
322 views

Any suggestions on setting a vswitch to allow a kvm guest to pxe install from an external boot server?

Any suggestions on setting a vSwitch to allow a kvm guest to pxe install from an external boot server? I'm trying to configure a vSwitch, in Fedora 20, so that I would be able to do a net-install, of ...
Henk's user avatar
  • 59
1 vote
1 answer
2k views

Accessing VirtualBox with libvirt from a guest

I have installed libvirt on OSX, and from outside a virtualbox I can access it using virsh no problem. However, I want to access it from inside a guest, and this is giving me the hopelessly useless ...
Walter Heck's user avatar
1 vote
0 answers
115 views

Bridging Adapter in Ubuntu 12.04 LTS for KVM

Fresh install of Ubuntu 12.04 LTS with libvert/KVM installed. I have 2 virtual machines that I need need to be on the same LAN as the host. The host has two physical interfaces eth0 and eth1. eth1 is ...
sardean's user avatar
  • 843
1 vote
1 answer
1k views

Libvirt providing bootp options without being configured to do so

I have a virtual network configured in libvirt and configured to provide DHCP (via dnsmasq) but not configured to provide bootp information (see below), but when I boot an iPXE ISO and look at the ...
Gestellen's user avatar
1 vote
1 answer
2k views

Qcow2 backing image and overlay idea

I have 2 KVM servers running Windows Guests. I want to create a Qcow2 image with Windows 7 on it, install the base software needed, and then make that a backing image, read-only, with one qcow2 ...
user avatar
1 vote
1 answer
1k views

kvm/qemu via libvirt on CentOS - pass string or key/value or file to guest

I have a sizeable deployment of qemu/KVM VMs already, managed through libvirt. They're all CentOS 5 or 6 hosts and guests (the kernel lacks the 9p filesystem flags, so the "mount" shared filesystem ...
Jason Antman's user avatar
  • 1,536
1 vote
0 answers
1k views

nwfilter: Generated firewall rules don't make any sense

I'm trying to configure nwfilter for KVM, but so far I haven't managed to figure out a working configuration. Network setup: The dom0 (Debian 7.1, kernel 3.2.46-1, libvirt 0.9.12) is connected via ...
Creshal's user avatar
  • 259
1 vote
1 answer
729 views

Cannot start XML defined Linux Container, faulty cgroup mount

Using ubuntu 13.04 latest; i've installed lxc and various other tools Here's my XML definition: <domain type='lxc'> <name>vm1</name> <memory>500000</memory> <...
Disco's user avatar
  • 1,451
1 vote
1 answer
809 views

Network traffic is not being forwarded from a VM to the network using a bridged interface with Xen + libvirt

I'm having trouble getting network access from a VM that I'm running using Xen and libvirt. I've been trying different things and reading similar posts online for a couple of days but I'm really stuck ...
foob's user avatar
  • 121
1 vote
1 answer
3k views

Increasing the maximum amount of open files for libvirt [duplicate]

For an experiment I'm trying to start as many VM's as possible through libvirt, however with a little over 1000 VM's running I get an error saying: "Failed to create pipe: Too many open files". Any ...
Jon's user avatar
  • 11
1 vote
1 answer
1k views

Apply libvirt nwfilter without editing of XML

Is it possible to apply libvirt's network filter to a KVM guest without manually editing the XML (for use in scripts)? Or is there any easy way of pushing the network filter configuration into ...
Dave's user avatar
  • 51
1 vote
0 answers
121 views

Domus Memory Used Issue With Xen On CentOS

Anyone know why I'm receiving this error? I compiled latest libvirt from source, I also tried with various rpm. I would like to get memory used by domus and it looks like it's not working with Xen 3 ...
Julio Fong's user avatar
1 vote
1 answer
2k views

libvirt : Host - Guest can't get the correct route to make both pingable

I'am runing A Ubuntu server as a Host, and I've a CentOS guest hosting an oracle database. Everything was working just fine, until someone init 6 the server (What a great idea!). So I've to ...
BaNz's user avatar
  • 11
1 vote
2 answers
2k views

Accessing guests on virtual network when connected to host via PPTP

I'm setting up a development machine which runs Ubuntu 12.04 and KVM for virtualization. I have a guest running Ubuntu 12.04 which can be accessed from the host via its IP address which is assigned by ...
Viktor Elofsson's user avatar
1 vote
0 answers
346 views

libvirt timing out. parted blocked messages in kern.log

I'm using Ubuntu 10.04.4 LTS to host KVM virtual machines. I'm using eucalyptus to manage them and having a lot of issues with libvirt not being able to interface with the KVM components and timing ...
wjimenez5271's user avatar
1 vote
1 answer
2k views

How to permanently attach USB devices to a KVM vserver?

I run a Server using KVM and virt-manager (over SSH). Currently I have the following devices which I want/need in a KVm virtual machine: +----USB-HUB +- USB Smartcard Reader #1 +- USB Smartcard ...
Peter Meyer's user avatar
1 vote
2 answers
504 views

Downloads stuck from a VM run by libvirt (kvm) on Ubuntu 10.04 LTS

I first wrote my problem on stackoverflow thinking it was a Maven proxy software problem. But I realised it was more a problem with my virtualization stack (libvirt 0.7.5-5ubuntu27.19 / kvm 1:84+dfsg-...
Anthony O.'s user avatar
1 vote
1 answer
905 views

Migration of Xen domains using libvirt API and perl failing

I am trying to get work offline migration using libvirt API in perl. I have 2 servers (on both is): - debian squeeze - xen-hypervisor-4.0-i386 - libvirt (1st server - 0.8.7 and 2nd server - 0.8.3) In ...
panaroik's user avatar
  • 832
1 vote
1 answer
5k views

How to fix a frozen qemu VM?

I have a qemu hypervisor on RHEL 6.4 that hosts VMs that will quite often lose their connection to the network. When the VM has lost its connection I can view and interact with the it using virt-...
Phyxx's user avatar
  • 455
1 vote
2 answers
1k views

Ovirt doesn't create live snapshot

I installed oVirt. If I suspent VM and create snapshot it's ok, but if I try to do live snapshot on the stage "Finalizing" ovirt have fail. Ovirt, VDSM and NFS storages are on the same local server. ...
Abdus's user avatar
  • 115
1 vote
1 answer
4k views

virsh attach-device for serial device

I would like to add a serial device (console) to a guest via the virsh attach-device command. I have a console.xml file containing: <serial type="pty"> <target port="0"/> </serial>...
D.Mill's user avatar
  • 379
1 vote
1 answer
3k 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 ...
boo9's user avatar
  • 11
0 votes
1 answer
368 views

KVM, libvirt, and LVs inside LVs

I have a Debian server running KVM+libvirt. The VMs disks are LVs on the host. The trouble is that if I create LVs inside the guests, they are recursively detected on the host and that creates all ...
wazoox's user avatar
  • 6,998
0 votes
3 answers
1k views

Virsh command hangs when script runs in the background

I have a bash script which runs as a cronjob. This script runs several commands and one of them is the following virsh command: /usr/bin/virsh list --all When I run this script in the terminal (as ...
Esteban's user avatar
  • 35
0 votes
2 answers
289 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="...
kirill fedorov's user avatar
0 votes
1 answer
2k 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 ...
GoldenNewby's user avatar
0 votes
1 answer
361 views

live migration of a virtual machine to a different machine

I am trying to do live-migration using KVM (libvirt). VM is called host1 and dest. IP address is 10.81.1.9. However, running the following command gives me an error that I am not sure what this ...
user3237784's user avatar
0 votes
2 answers
2k views

KVM XML config file

I have a KVM server that I expanded the LV of then rebooted. However now when booting I get the error: error: Failed to create domain from /home/kvm/kvmx/kvmx.xml error: (domain_definition):1: ...
awmusic12635's user avatar
0 votes
3 answers
4k views

Guests can't access KVM host server by name although nslookup and dig returns correct record

So I have a KVM host that also runs an apache server with some yum repos. The VM guests are connected to the default virtual network, which is configured to offer DHCP and forwarding with NAT on ...
Gestellen's user avatar
0 votes
2 answers
620 views

Strange libvirt/KVM issue, destroying instances?

I have a libvirt/KVM server running on Ubuntu 9.04 with a variety of instances I use for testing. I was destroying instances via virsh and occassionally, destroying one instance would take out another....
jtimberman's user avatar
  • 7,597
0 votes
1 answer
37 views

Which piece of software touches network configuration files of a VM in a vagrant-libvirt setup with kvm/qemu?

Which element in a vagrant-libvirt-qemu/kvm-chain is responsible to actually configure the VM? Like editing the network configuration files. Wouldn't that totally depend on the details of the OS of ...
Robert Siemer's user avatar
0 votes
1 answer
592 views

XML for Qemu `-nic user,model=virtio-net-pci` Network

How do I specify a network interface in libvirt XML that is equivalent to the qemu-system-* argument -nic user,model=virtio-net-pci. I have a variety of qemu machines (without KVM) that happily boot ...
infinitesteps's user avatar
0 votes
2 answers
1k views

virsh reporting unknown feature amd-sev-es

I updated my centos and I can no longer start any VM. It says: error: failed to get emulator capabilities error: internal error: unknown feature amd-sev-es But I'm using a Intel CPU (E5-2678v3) so it ...
wtywtykk's user avatar
0 votes
1 answer
85 views

Libvirt/KVM support for partiitoned memory

Does KVM/Libvirt support partitioned memory? Is it possible to make sure that two VMs do not have memory-mapping that overlaps?
Anton9988's user avatar
  • 101
0 votes
1 answer
495 views

Getting error “libosinfo: Unexpected file type (0)” when trying to create or open VM in virt-manager

I get the following error when clicking “Open” or “Create a new virtual machine” in virt-manager: Error launching details: libosinfo: Unexpected file type (0) Traceback (most recent call last): ...
aaronk6's user avatar
  • 456
0 votes
1 answer
53 views

Tracking down usage of libvirt

I'm familiarizing myself with a server that a previous (no longer available) system admin had set up. He had set up CentOS 7 with a variety of packages. One of those packages seems to be libvirtd, ...
jhilgeman's user avatar
  • 113
0 votes
1 answer
800 views

Ubuntu KVM - Bridge - Isolate Host from NIC

I have a Ubuntu Server with 4 physical NICs. 2 of them, i want to "hide" from the Host, so the host itself may not access traffic on those 2 nics, just the VM where i pass them into (...
user654789384's user avatar
0 votes
3 answers
8k views

libvirt cannot create default network

I can't start the default network for libvirt. I get the error in journalctl: Jun 06 15:22:43 jenia libvirtd[889326]: Unable to create bridge virbr0: Package not installed I did installed the ...
Jenia Ivanov's user avatar
0 votes
1 answer
1k 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 get:...
Peter Teoh's user avatar
0 votes
3 answers
1k views

Interface for accessing to guest OS via libvirt

Is there any possible (not necessary native) ways to get access (e.g., terminal usage is the main purpose for me) to guest OS with *nix using libvirt/LXC(not as libvirt module) capabilities? And I don'...
zerospiel's user avatar
  • 467
0 votes
1 answer
588 views

php-libvirt installation on centos fails

I am trying to install php-libvirt on centos 6.4 64x and there is an error in ./configure step: checking for LIBVIRT... configure: error: Package requirements (libvirt >= 0.6.2) were not met: ...
Soroush Khosravi's user avatar
0 votes
1 answer
677 views

Using virsh to control KVM and openvz

On different servers I'm using virsh to manage openvz containers or KVM guests. No I have a server with both, KVM and openvz installed and would like to controll both with virsh. I can't figure out ...
Jens's user avatar
  • 362
0 votes
1 answer
1k views

Set host firewall so VMs obtain dynamic IP from dnsmasq

Virtual machines (KVM/libvirt) fail to obtain a dynamic IP address from the libvirt-launched dnsmasq running on a CentOS host when the firewall is running. When I turn off the firewall (CSF), the ...
composer's user avatar
  • 131
0 votes
1 answer
540 views

Ansible Findall capture groups and list

I think I'm confused with Python and Ansible findall. Can I use capture groups in Ansible? For example, How can I capture group 1 and group 2 then reverse the position in the resulting list? For ...
Billy K's user avatar
  • 121
0 votes
1 answer
405 views

Linux Livirt/KVM: Place all VMs in cpuset by default without reconfiguration

I'm trying to set up a system whereby I have some process on a set of hosts that are in one (shielded) cpuset, while everything else (i.e. all the VMs) are in another. The goal here is to have a ...
Joshua Boniface's user avatar
0 votes
1 answer
473 views

QEMU-KVM, drbd and corosync - VM's doesn't work after reboot

On Debian 9.6 I've got QEMU-KVM Virtualisation. After electricity problems this machine just shut down. After switching it on again I can't start any VM because of this error: error: internal error: ...
fnsq's user avatar
  • 11
0 votes
1 answer
103 views

QEMU - after dist-upgrade of Debian host, win10 guest state lost

I'm running a headless Debian host with a win10 guest that I seldomly login to via vnc. Last week I upgraded Debian from Buster to Bullseye, and that also upgraded QEMU from v3.1 to v5.2 (and libvirt ...
zenlord's user avatar
  • 242
0 votes
1 answer
2k views

cloud-init seems to be ignoring write-files script

H! I am trying to configure VMs with cloud-init, using the terraform Libvirt provider. For some reason I don't understand, setting hostname works, but writing and running a script for additional ...
Unpossible's user avatar
0 votes
1 answer
5k views

QEMU / KVM - Dedicated 802.1q VLAN for each VM - Communication only via router

I have a Linux firewall router (dedicated machine) with multiple ethN interfaces (my "big firewall"). All forwarded traffic is filtered by a set of iptables rules (default policy DROP). ...
MrSnrub's user avatar
  • 153

1
7 8
9
10 11
13