Due to functional needs, experience the manual compilation installation LIBVRT, or encountered a lot of problems, here is summarized as follows only CENTOS7:
1. Configure:error:You must install the Pciaccess module to build with Udev
Solution: Yum Install libpciaccess-devel.x86_64 2, Configure:error:You must install Device-mapper-devel/libdevmapper >= 1 .0.0 to compile Libvirt solution: Yum install Device-mapper-devel 3, Configure:error:libnl-devel >= 1.1 is required for MACV Tap Support solutions: Yum install libnl-devel.x86_64 4, Configure:error:You must install the LIBYAJL Library & headers to Compile Libvirt solution: Yum install libxml2.x86_64 yum install libxml2-devel.x86_64 yum install yajl.x86_64 YAJL -devel.x86_64 5, error:failed to connect sockets to '/usr/local/var/run/libvirt/libvirt-sock ': Connection refused this is Virs H connection to Libvirtd daemon, the root cause of the problem is the LIBVIRTD service does not start the solution: libvirtd-d 6, boot libvirt problems: libvirtd:error:Unable to obtain Pidfile. Check/var/log/messages or run without--daemon for more solution:
(1) Find the Libvirtd.pid file, depending on the installation of Libvirt, the location may be different:
$ sudo find/-name libvirtd.pid
[sudo] password for cloud:
/usr/local/var/run/libvirtd.pid
(2) Delete: $sudo rm/usr/local/var/run/libvirtd.pid
(3) Start: $sudo libvirtd-d
CENTOS7 Manual Compilation Installation Libvirt frequently asked questions