Hi today we are gonna look for managing vms especially in linux with libvirt. Libvirt is a library and tools to manage vms. Livirt development is suppported by Redhat and defacto tool in linux world. In linux Kvm/qemu is generally used for virtuulization but libvirt supports Xen, Virtualbox, Vmware, Hyperv too.I not gonna dive to deep. So start using it.
To install and see info about the libvirt packet. As you see it is very little tiny packet and it install a daemon to control virtualization.
$ yum info libvirt
Loaded plugins: langpacks, refresh-packagekit
Name : libvirt
Arch : x86_64
Version : 22.214.171.124
Release : 2.fc20
Size : 38 k
Repo : updates/20/x86_64
Summary : Library providing a simple virtualization API
URL : http://libvirt.org/
License : LGPLv2+
Description : Libvirt is a C toolkit to interact with the virtualization capabilities
: of recent versions of Linux (and other OSes). The main package includes
: the libvirtd server exporting the virtualization support.
Install Libvirt Package
Lets install it
$ sudo yum -y install libvirt
After installation you may need to start daemon and it is the best to disable selinux for testing purposes.
$ sudo setsebool false
setsebool: SELinux is disabled.
Start Libvirt Daemon
We will start libvirt daemon to connect server with out client virsh
[ismail@f1 ~]$ sudo systemctl start libvirtd
As you can see daemon is active.
$ sudo systemctl status libvirtd
libvirtd.service - Virtualization daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled)
Active: active (running) since Thu 2014-07-31 10:52:46 EEST; 1min 1s ago
Main PID: 922 (libvirtd)
Connect To Libvirt with Virsh
Now we can connect to it
$ sudo virsh