(1)As I known, before compiling libvirt, some packages should be installed.sudo apt-get install gcc make pkg-config libxml2-dev libgnutils-dev libdevmapper-dev libcur l4-gnutls-dev python-dev libpciaccess-dev libxen-dev libnl-dev
------------------------------------------------------------
regards,yandong