- 操作系统:CentOS7.6
- 先yum update
- 前序已安装QEMU,具体过程如贴:
QEMU3.1.0安装手记
安装流程
- 下载
[root@localhost ~]# wget https://libvirt.org/sources/libvirt-4.10.0.tar.xz
- 解压
[root@localhost ~]# tar -xvf libvirt-4.10.0.tar.xz
- 配置
依然是默认安装路径为:/usr/local
记得检查路径和环境变量问题
附上讲解关于解决PKG_CONFIG_PATH和lib库的文章:
PKG_CONFIG_PATH错误提示解决办法
添加lib库自动搜索路径到/etc/ld.so.conf
开始配置
[root@localhost ~]# cd libvirt-4.10.0
[root@localhost libvirt-4.10.0]# ./autogen.sh
配置成功的显示
configure: Configuration summary
configure: =====================
configure:
configure: Drivers
configure:
configure: QEMU: yes
configure: UML: yes
configure: OpenVZ: yes
configure: VMware: yes
configure: VBox: yes
configure: XenAPI: no
configure: libxl: no
configure: LXC: yes
configure: PHYP: no
configure: ESX: no
configure: Hyper-V: no
configure: vz: no
configure: Bhyve: no
configure: Test: yes
configure: Remote: yes
configure: Network: yes
configure: Libvirtd: yes
configure: Interface: yes
configure:
configure: Storage Drivers
configure:
configure: Dir: yes
configure: FS: yes
configure: NetFS: yes
configure: LVM: yes
configure: iSCSI: no
configure: iscsi-direct: no
configure: SCSI: yes
configure: mpath: yes
configure: Disk: no
configure: RBD: no
configure: Sh