笔记 libvirt工具的安装过程
2016-07-07 17:27
639 查看
modprobe -l|grep kvm
yum install gcc autoconf automake libtool -y
yum install glib* zlib* -y
libvirt编译时候的问题:
#问题1:You must install the libyajl library & headers to compile libvirt
git clone git://github.com/lloyd/yajl
cd yajl
./configure && make && make install
#问题2:configure: error: You must install the device-mapper-devel
yum install device-mapper-devel device-mapper -y
#问题3:configure: error: You must install the pciaccess module to build with udev
yum install libpciaccess-devel libpciaccess -y
make时候的问题:
/home/libvirt-2.0.0/src/.libs/libvirt.so: undefined reference to `curl_multi_wait'
collect2: ld returned 1 exit status
make[3]: *** [libvirtd] Error 1
make[3]: Leaving directory `/home/libvirt-2.0.0/daemon'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/libvirt-2.0.0/daemon'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/libvirt-2.0.0'
make: *** [all] Error 2
#创建KVM
virt-install \
--name=guest1-centos6-64 \
--file=/var/lib/libvirt/images/guest1-rhel5-64.dsk \
--file-size=8 \
--nonsparse --graphics spice \
--vcpus=2 --ram=2048 \
--location=http://example1.com/installation_tree/RHEL5.6-Serverx86_64/os \
--network bridge=br0 \
--os-type=linux \
--os-variant=rhel5.4
待解决。
yum install gcc autoconf automake libtool -y
yum install glib* zlib* -y
libvirt编译时候的问题:
#问题1:You must install the libyajl library & headers to compile libvirt
git clone git://github.com/lloyd/yajl
cd yajl
./configure && make && make install
#问题2:configure: error: You must install the device-mapper-devel
yum install device-mapper-devel device-mapper -y
#问题3:configure: error: You must install the pciaccess module to build with udev
yum install libpciaccess-devel libpciaccess -y
make时候的问题:
/home/libvirt-2.0.0/src/.libs/libvirt.so: undefined reference to `curl_multi_wait'
collect2: ld returned 1 exit status
make[3]: *** [libvirtd] Error 1
make[3]: Leaving directory `/home/libvirt-2.0.0/daemon'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/libvirt-2.0.0/daemon'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/libvirt-2.0.0'
make: *** [all] Error 2
#创建KVM
virt-install \
--name=guest1-centos6-64 \
--file=/var/lib/libvirt/images/guest1-rhel5-64.dsk \
--file-size=8 \
--nonsparse --graphics spice \
--vcpus=2 --ram=2048 \
--location=http://example1.com/installation_tree/RHEL5.6-Serverx86_64/os \
--network bridge=br0 \
--os-type=linux \
--os-variant=rhel5.4
待解决。
相关文章推荐
- 如何使用 virt-manager 运行虚拟机
- Linux下三大免费桌面虚拟机评测
- convert(一)—— 部署managed
- convirt(二)—— 创建第一台虚机
- KVM 虚拟机创建快照
- 搭建CloudStack
- KVM网络性能测试(1)
- KVM网络性能测试(2)
- KVM网络性能测试(3)
- 全虚拟化和半虚拟化的区别 cpu的ring0 ring1又是什么概念?
- 迁移 VMware 虚拟机到 KVM
- 一、免费KVM_Input Director帮你用一套键盘鼠标操作多台电脑
- 二、免费KVM_Input Director帮你用一套键盘鼠标操作多台电脑
- KVM的部署与优化(2)
- Centos 5.8 安装KVM虚拟机学习笔记
- kvm的网络配置 NAT方式
- KVM网络配置 Bridge方式
- VPS虚拟化架构介绍与参考
- rhel6.1 kvm安装virtio驱动
- 虚拟化技术漫谈