大佬教程收集整理的这篇文章主要介绍了Ganeti:安装Centos / RHEL实例,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我知道ganeti页面中有大量文档,但大多数都是针对xen / Debian destro的.默认debootstrap也是为默认debian实例安装而设计的.如果有人可以帮助我安装Centos实例的工作步骤(白痴指南)
> ISO映像
>导入现有的qemu图像文件(qcow2 / img / raw)
>使用instance-image项目安装Centos.
到目前为止,我一直在使用KVM / DRBD进行虚拟机管理.
> debootstrap – 对于Debian
> Instance-image – 适用于所有Linux
> Linux-image / Raw-image – 我可以安装CentOS 6 Vm.
安装Linux映像.请记住在同一位置的所有节点上安装软件包和ISO映像.
wget http://sourceforge.net/projects/ganeti-os-defs/files/ganeti-os-defs-1.1.1.tgz/download tar -zxvf ganeti-os-defs-1.1.1.tgz -C /src/ganetI/Os/ cd linux-image/
编辑ISO救援图像的environment.sh路径
修改群集设置
验证安装
gnt-os list
从ISO映像安装
创建实例图像
gnt-instance add -t drbd -o linux-image+default -s 10g -n node1:node2 --no-start --no-install -B vcpus=2,memory=1024M -H kvm:vnc_bind_address=0.0.0.0 vm1.net
安装操作系统
gnt-instance start -H boot_order=cdrom,cdrom_image_path=/usr/local/iso/CentOS-6.3-x86_64-minimal.iso vm1.net
获取VNC访问权限
gnt-instance info --all | grep network
您可能必须从Ganeti重新启动实例,因为它可能无法获取grub.
将现有Qemu映像导入基于DRBD的Ganeti
分享https://groups.google.com/forum/?fromgroups=#!topic/ganeti/YH_5pM8rAvc中提到的步骤
转换图像
获取图像大小
qemu-img convert dsl.qcow2 -O raw dsl.qcow2 qemu-img info dsl.raw image: dsl.raw file format: raw virtual size: 8.0G (8589934592 bytes) disk size: 1.5G
创建DRBD图像
gnt-instance add -t drbd -o linux-image+default -s 8g -n gkvm01.net:gkvm02.net -H --no-start --no-install -B vcpus=2,memory=1024M -H kvm:vnc_bind_address=0.0.0.0 dsl.net gnt-instance activate-disks dsl.net dd if=dsl.raw of=/dev/drbd1 gnt-instance deactivate-disks dsl.net gnt-instace start dsl.net
以上是大佬教程为你收集整理的Ganeti:安装Centos / RHEL实例全部内容,希望文章能够帮你解决Ganeti:安装Centos / RHEL实例所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。