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.

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

libvirt runs on Linux, Solaris and Windows.

libvirt supports the following hypervisors: KVM/QEMU, Hyper-V, VMware, Xen, VirtualBox, OpenVZ, LXC, User Mode Linux, and others.

libvirt suports the following storage: local file images, raw disk storage, LVM, FibreChannel, iSCSI, NFS.

610 questions
4
votes
0 answers

How to set Rx Queue = N in linux / in Qemu / KVM?

I have configured 8 multiple queues on my CentOS VM box (running on KVM). I…
Brijesh Valera
  • 141
  • 1
  • 7
4
votes
0 answers

How to create my own virtual machine base images?

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 whole installer. It takes me 20-30 minutes just to…
user306802
  • 169
  • 1
  • 7
4
votes
1 answer

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. Distributor ID: Ubuntu Description: …
Amir Keibi
  • 141
  • 1
  • 4
4
votes
4 answers

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: this code gets generated: dhcp-boot=test.ipx,,10.10.10.2 1) How…
gerasalus
  • 221
  • 2
  • 5
4
votes
3 answers

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/cards2.qcow,size=3 --vcpus=8 --cdrom…
Mike
  • 669
  • 2
  • 9
  • 25
4
votes
0 answers

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 motherboard / main linux hub. I've tried a few…
4
votes
1 answer

Libvirt guest destroyed after shutdown

I have created a VM withLibvirt and when I shut it down whether forcefully or with ACPI, it gets deleted. I create it: deneme2 2097152 1 hvm
Mustafa
  • 195
  • 2
  • 9
4
votes
3 answers

Pass an USB hub from a KVM host to a guest with libvirt

I have the following USB devices on a Linux server: # lsusb -t /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/6p, 480M |__ Port 2: Dev 3, If 0, Class=HID, Driver=usbfs,…
stenio
  • 63
  • 1
  • 1
  • 6
4
votes
2 answers

Xen / libvirt - "End of file while reading data: Input/output error" when attempting to start a domain

I'm getting the following string of errors when I attempt to start a domain using virsh: virsh # start vimes error: Failed to start domain vimes error: End of file while reading data: Input/output error error: Failed to reconnect to the…
Adam Luchjenbroers
  • 218
  • 1
  • 2
  • 10
4
votes
1 answer

KVM Ubuntu Guest cannot connect to the internet on bridged networking

I have Ubuntu 14.04 (64 bits) + KVM Host with 2 NICs: - eth0 connected to the "public" network - eth1 connected to the br0 bridge with a private ip address range From Host I can access internet, ping VM Guest and connect to it via SSH. From VM…
Daniel
  • 43
  • 1
  • 1
  • 4
4
votes
5 answers

Why I can't save network changes with virsh?

I am trying to add fixed address to specific virtual host, therefor I closed virtual machine and used sudo virsh net-edit somenet. After adding line I saved and quit.…
wk.
  • 241
  • 1
  • 2
  • 13
4
votes
1 answer

libvirt guest cannot reach outside world

My server connects to the public internet via eth0 (50.131.xxx.xxx). The same server connects to the LAN via eth1 (192.168.138.1 on 192.168.138.0/24) On the same server, I run libvirt, which created another subnet at 192.168.122.0/24. The currently…
Johannes Ernst
  • 1,037
  • 4
  • 16
  • 26
4
votes
1 answer

Network filtering with libvirt + xen + bridge + nat?

How can I properly add basic network filters (clean-traffic or, at least, ip-spoofing prevention) to XEN (xend) guests managed by libvirt? Or, in particular, can I manually execute libvirt's nwfilters from a script (for given parameters)? I am using…
HoverHell
  • 391
  • 3
  • 11
4
votes
1 answer

Libvirt: Can't shutdown or reboot virtual guest

I can't reboot or shutdown the guest vm from the host machine virsh -c qemu:///system reboot vm1 Domain vm1 is being rebooted After executing this, nothing happens. The guest vm keeps working. Could anyone help? I'm using CentOS 6.3, libvirtd, kvm.…
facha
  • 1,298
  • 2
  • 16
  • 26
4
votes
1 answer

virt-manager can't open the display

My virt-manager was working just fine and all of a sudden stopped working, throwing in error: RuntimeError: could not open display root@rakcal ~]# echo $DISPLAY localhost:10.0 [root@rakcal ~]# virt-manager Traceback (most recent call last): File…
MacUsers
  • 449
  • 2
  • 7
  • 13