CENTOS7 Manual Compilation Installation Libvirt frequently asked questions

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.