libvirt源代码安装
2016-02-22 10:43
274 查看
官网下载源代码
http://libvirt.org/downloads.html编译安装
http://libvirt.org/compiling.htmlConfigure Error
Error: checking libxml2 xml2-config >= 2.6.0 … configure: error: Could not find libxml2 anywhere显示libxml2 未安装。
apt-cache search libxml2 查找安装包
apt-get install libxml2 libxml2-dev
Error: configure: error: You must install device-mapper-devel/libdevmapper >= 1.0.0 to compile libvirt
apt-get install libdevmapper1.02.1 libdevmapper-dev
Error: configure: error: libnl-devel >= 1.1 is required for macvtap support
apt-get install libnl-dev
安装完libnl-dev后还是报同样的错误,安装pkg-config 修改一下以安装的libnl-devel的版本
apt-get install pkg-config
pkg-config –modversion libnl-1
Error:configure: error: You must install the pciaccess module to build with udev
apt-get install libpciaccess0 libpciaccess-dev
编译安装
makemake install
Error: virsh: error while loading shared libraries: libvirt.so.0: cannot open shared object file: No such file or directory
有一种可能就是系统第一次在/usr/local下手动编译安装程序,执行ldconfig命令更新动态链接库缓存
又出现不一样的错
error: Failed to reconnect to the hypervisor
error: no valid connection
error: Failed to connect socket to ‘/usr/local/var/run/libvirt/libvirt-sock’: No such file or directory
这是由于libvirtd未启动
libvirtd -d
至此,全部正确运行
virsh list
virsh version
参考:
http://liuzhijun.iteye.com/blog/1728617相关文章推荐
- 如何使用 virt-manager 运行虚拟机
- apache的源码安装详细过程全纪录
- CentOS 6.3下MySQL 5.6源码安装
- KVM虚拟机的安装和使用方法
- libvir: error : cannot execute binary /usr/bin/qemu-kvm: Permission denied
- mysql 源码安装
- Libvirt编译安装
- zabbix简介及安装
- Liunx virt-manager启动出错解决办法
- (转载)qemu/kvm/qemu-kvm/virsh的区别
- linux源码安装
- c语言调用libvirt库函数创建资源池Pool
- nova boot, reboot, suspend 工作流
- Ubuntu 源代码(Source Code) 编译安装 libvirt
- libvirt/qemu特性之cpu hotplug
- postgreSQL在redhat上的源码安装
- 一个libvirt/qemu创建虚拟机错误的解决办法
- MySQL的安装——源码方式(实验环境下测试用,真实环境请忽略此文)
- 云计算 KVM,QEMU,Libvirt联系
- CentOS编译安装GIMP