我已经在CentOS 6.3上安装了带有DRBD的Ganeti,并增加了一些节点。 不过,现在我面临着在其上安装Centos访客/实例的下一个挑战。 我尝试使用ganeti-instance-image,但它似乎没有ISO安装。 我尝试了https://code.osuosl.org/projects/ganeti-image/wiki/HOWTO_-_Ganeti_Instance_Image的步骤,但没有为我工作。
我知道在ganeti页面有大量的文档,但是其中大部分都是用于xen / Debian destro。 默认的debootstrap也是为Debian实例安装而devise的。 如果有人可以帮我安装一个Centos实例的工作步骤(白痴指南)
到目前为止,我一直在使用KVM / DRBD进行虚拟机pipe理。
回答我自己的问题。我的问题的答案是理解和使用Ganeti OS模板/ Bootstraps。 Ganeti提供了一个默认引导来安装基于Debian的实例/虚拟机。 可以修改它以安装任何types的操作系统。 已经有这样的实例图像可用于安装其他的发行版,例如CentOS / RHEL和Windows。
安装Linux-image。 请记住在同一位置的所有节点上安装软件包和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.shpath修改集群设置
validation安装
gnt-os list
创build一个实例图像
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
安装OS
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重新启动实例,因为它可能不会拾起gr </s>。
分享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
创build一个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-instance-image的维护者,我很遗憾听到你遇到了问题。
我希望尽快修复这些文档。