Questions tagged [libvirt]

daemon and clients to manage virtual machines and containers

The libvirt project provides a common interface to manage many different virtual machine and containerization products. Around a dozen different ones are supported, including QEMU/KVM, VirtualBox, Xen, and LXC.

Libvirt can also manage network and storage configuration. It supports several host operating systems, including Linux, FreeBSD, and Mac OS X (Windows is supported too, but those questions generally belong elsewhere on the Stack Exchange network).

Libvirt includes a daemon (libvirtd), API, and command-line client (virsh).

There are other programs that use libvirt; many have their own tags.

374 questions
38
votes
1 answer

What's the difference between KVM, QEMU and libvirt?

I'm trying to understand how all the components of the VM ecosystem fit together. What's the difference between: KVM QEMU libvirt Which is controlled by virsh and virt-install? This comment says that libvirt is an abstraction ontop of QEMU, which…
falsePockets
  • 758
  • 1
  • 7
  • 13
29
votes
2 answers

Emulate unplugging a network cable with qemu-kvm

[Background: I'd like to actually test How to take down a static network interface when not connected? ] I'm setting up a QEMU-KVM virtual machine using libvirt (via virt-manager). I put two NICs on it (both virtio). They are bridged to a physical…
derobert
  • 107,579
  • 20
  • 231
  • 279
23
votes
1 answer

how to create custom vagrant box from libvirt/kvm instance?

There are many resources on the Internet to create a custom vagrant box from a VirtualBox instance. But I want to know a direct method to create a custom vagrant box directly from a kvm/libvirt instance . Please don't suggest vagrant-mutate or any…
pl_rock
  • 779
  • 1
  • 6
  • 12
20
votes
3 answers

Libvirt: how to pass qemu command line args?

I have the current libvirt 1.2.20 i want to pass to my machine create with virt-manager some qemu flags. I edited the file and add But…
elbarna
  • 12,050
  • 22
  • 92
  • 170
17
votes
1 answer

Configure public IP addresses in KVM VMs

I have a physical server running CentOS 6.5 with one interface connected to the Internet (with one public IP address). Inside this server I have two VMs created with KVM through libvirt with one interface each. I want to assign one public IP address…
logoff
  • 381
  • 1
  • 4
  • 14
16
votes
3 answers

virsh, how to list autostart domains?

In virsh how do I see which domains are marked as autostart? virsh list does not show which domains are marked as autostart.
user26053
15
votes
6 answers

How to create a dupe of a KVM/libvirt/virt-manager VM?

I'm a bit lost with virt-manager / libvirt / KVM. I've got a working KVM VM (Windows XP) which works nicely. The VM is backed by a 4GB file or so (a .img). Now I want to do something very simple: I want to duplicate my VM. I thought "OK, no problem,…
SyntaxT3rr0r
  • 604
  • 2
  • 7
  • 9
12
votes
2 answers

Use VirtualBox provider by default on Fedora 21

Right now, any time I use vagrant, it tries to use libvirt as the provider. I want to use VirtualBox by default. vagrant-libvirt is not installed. It's bothersome because some commands don't work, like vagrant status: [florian@localhost local]$…
Florian Margaine
  • 523
  • 4
  • 11
11
votes
2 answers

Run script in the host when starting virtual machine with virt-manager

This is related to my question on Ask Ubuntu: Add physical partition to QEMU/KVM virtual machine in virt-manager (see "Updates" near the end, if needed). Is there a nice way to run any arbitrary script on the host every time a VM is started from…
Marc.2377
  • 1,072
  • 1
  • 17
  • 41
11
votes
5 answers

Unknown NMI reason 20 and 30 on a VM

I pulled up the console on a virtual machine I manage today and was greeted with some kernel messages: [5912557.130943] Uhhuh. NMI received for unknown reason 20 on CPU 0. [5912557.131115] Do you have a strange power saving mode…
derobert
  • 107,579
  • 20
  • 231
  • 279
11
votes
2 answers

What commands in virsh corresponds to "Force Off" button in virt-manager?

I'm trying to find the corresponding command to the buttons in virt-manager, I read about virsh help domain and I found start, shutdown and reset etc. But the one for Force Off is missing. Anyone know what that is?
daisy
  • 53,527
  • 78
  • 236
  • 383
10
votes
1 answer

Error creating snapshot: Operation not supported: internal snapshots of a VM with pflash based firmware are not supported

I'm using Arch Linux, both host and guest. For UEFI boot, I've installed edk2-ovmf and made the guest use the firmware /usr/share/edk2-ovmf/x64/OVMF_CODE.fd. I want to create snapshots of my VM but am getting the error: Error creating snapshot:…
ChocolateOverflow
  • 871
  • 1
  • 8
  • 21
10
votes
1 answer

What's the purpose of kvm, libvirt and libvirt-qemu groups in linux

I wanted to play a little bit with KVM on my Debian, and I installed the needed tools. The three groups showed up in the /etc/group file: kvm , libvirt and libvirt-qemu . What's the purpose of each of these groups? For now I know that the libvirt…
Mikhail Morfikov
  • 10,309
  • 19
  • 69
  • 104
10
votes
2 answers

Running an X11 application on a KVM guest so it displays on the host system

Is there an easy way of running an X11 application on a KVM guest system the way that it is displayed on the host system? I know I can ssh to a guest with X11 forwarding, but I am wondering if there is a native KVM/libvirt approach or just something…
Mike
  • 201
  • 2
  • 4
10
votes
1 answer

What are the diffence between virsh, virt-install, and virt-manager?

I know all of virsh, virt-install, and virt-manager can manage the virtual machines. However, what are the difference between the three?
xmllmx
  • 1,750
  • 2
  • 19
  • 29
1
2 3
24 25