Libvirt 4.10.0编译安装

本文档详细记录了在CentOS7.6上编译安装Libvirt 4.10.0的步骤,包括解决配置过程中遇到的依赖问题,如gnutls、libnl-devel、libxml2等,并在安装完成后检查libvirtd服务的启动和virsh命令的使用。
摘要由CSDN通过智能技术生成

  • 操作系统:CentOS7.6
  • 先yum update
  • 前序已安装QEMU,具体过程如贴:
    QEMU3.1.0安装手记

安装流程

  1. 下载
[root@localhost ~]# wget https://libvirt.org/sources/libvirt-4.10.0.tar.xz
  1. 解压
[root@localhost ~]# tar -xvf libvirt-4.10.0.tar.xz 
  1. 配置

依然是默认安装路径为:/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
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值