libvirt源代码安装
来源:互联网 发布:mac a1181 t7200 编辑:程序博客网 时间:2024/06/11 08:07
官网下载源代码
http://libvirt.org/downloads.html
编译安装
http://libvirt.org/compiling.html
Configure 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
编译安装
make
make 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
- libvirt源代码安装
- Ubuntu 源代码(Source Code) 编译安装 libvirt
- 安装libvirt install libvirt
- libvirt安装
- libvirt-java编译安装
- libvirt安装过程
- libvirt安装过程
- 全程手动安装Libvirt
- Libvirt编译安装
- Libvirt编译安装
- Linux安装Libvirt函数
- 源码安装libvirt 常见问题
- libvirt安装流程
- Libvirt编译安装
- ubuntu安装libvirt
- libvirt的安装流程
- ubuntu 14.04安装libvirt
- Ubuntu源码安装libvirt
- iOS中block的使用注意
- 深复制和浅复制的概念
- iOS中程序代码存储区块
- GIT团队开发操作
- Java 回顾笔记5(上午)_static
- libvirt源代码安装
- jQuery之ajax
- UIView与CALayer的区别,很详细
- Golang语法总结(二):程序结构
- 从Nginx的Access log分析系统的健康度
- android刷新媒体库
- mui几种页面跳转方式对比
- 并查集详解
- linux命令之cut命令的用法