libvirt is an API and daemon for managing platform virtualization, supporting virtualization technologies such as LXC, KVM, QEMU, Bhyve, Xen, VMWare, and Hyper-V.
To use libvirt, install the
libvirt package, ensure the
dbus package is
installed, and enable the
virtlogd services. The
libvirtd daemon can be
reconfigured at runtime via
libvirt package provides the virsh(1)
interface to libvirtd.
virsh is an interactive shell and batch-scriptable tool
for performing management tasks, including creating, configuring and running
virtual machines, and managing networks and storage. Note that
needs to be run as root, as described in the
virsh man page:
Most virsh commands require root privileges to run due to the communications channels used to talk to the hypervisor. Running as non root will return an error.
However, if you have the
dbus packages installed and you enable
libvirtd will grant necessary privileges to any user added
An alternative to
virsh is provided by the