1. Source download
root@gaus01-m:~# git clone git://libvirt.org/libvirt.git
Cloning into 'libvirt'...
remote: Counting objects: 146441, done.
remote: Compressing objects: 100% (22449/22449), done.
remote: Total 146441 (delta 123724), reused 146078 (delta 123482)
Receiving objects: 100% (146441/146441), 146.43 MiB | 7.53 MiB/s, done.
Resolving deltas: 100% (123724/123724), done.
Checking connectivity... done.
root@gaus01-m:~#
2. Insalll build library
root@gaus01-m:~/libvirt# apt-get build-dep libvirt-bin
root@gaus01-m:~/libvirt# apt-get install libtool autopoint xsltproc w3c-dtd-xhtml python-dev autoconf libnl-route-3-dev
3. Build libvirt
root@gaus01-m:~/libvirt# ./autogen.sh
root@gaus01-m:~/libvirt# make
root@gaus01-m:~/libvirt# make install
4. Update ld library
* edit /etc/ld.so.conf.d/libvirt.conf
/usr/local/lib/libvirt.so.0
After creating libvirt.conf, you have to load again.
root@gaus01-m:~/libvirt# ldconfig
5. Start libvirtd service
root@gaus01-m:~/libvirt# libvirtd -d
6. Test libvirt using virsh
root@gaus01-m:~/libvirt# virsh
Welcome to virsh, the virtualization interactive terminal.
Type: 'help' for help with commands
'quit' to quit
virsh # version
Compiled against library: libvirt 1.2.6
Using library: libvirt 1.2.6
Using API: QEMU 1.2.6
Running hypervisor: QEMU 2.0.50
virsh #