我在 ubuntu 中成功安装了最新的 MAAS,我喜欢将 centos7 上传到 MAAS 启动镜像
我有 CentOS-7-x86_64-Everything-1511.iso 我如何上传到 MAAS。
我搜索了将自定义图像上传到 MAAS,但我找不到任何上传它的好方法,而且有些方法对我来说很困惑。
请提供一套分步指南来执行此操作
谢谢
最佳答案
您可以使用 MAAS 的 maas 镜像生成器(maas-image-builder)构建 CentOS 镜像。
获取 maas-image-builder 的本地副本
请使用 maas-clustercontroler 安装 maas-image-builder
bzr 分支 lp:maas-image-builder
cd maas-image-builder
python setup.py 安装
aptitude 安装 python-dev
制作
构建 CentOS 6 图片
maas-image-builder -a amd64 -o centos6-amd64-root-tgz centos --edition 6
构建 CentOS 7 图片
maas-image-builder -a amd64 -o centos7-amd64-root-tgz centos --edition 7
获取 maas-auth key 并记录到 API
maas-region-admin apikey --username=root
maas 登录 maas http://10.1.35.12/MAAS/api/1.0
检查 CentOS 镜像(如果有可用的引导镜像)
maas maas 启动资源读取 | egrep -i "centos"
上传 CentOS6 图片
maas maas 启动资源创建名称=centos/centos6 架构=amd64/通用内容@=/root/maas-image-builder/centos6-amd64-root-tgz
上传 CentOS7 图片
maas maas 启动资源创建名称=centos/centos7 架构=amd64/通用内容@=/root/maas-image-builder/centos7-amd64-root-tgz
检查可用的 CentOS 镜像启动镜像
maas maas 启动资源读取 | egrep -i "centos"
引用: https://maas.ubuntu.com/docs/os-support.html
关于ubuntu - 如何将自定义启动镜像上传到 MAAS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35087666/