ubuntu - 如何将自定义启动镜像上传到 MAAS

标签 ubuntu centos centos7

我在 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/

相关文章:

ubuntu - 无法在 Tomcat 7 和 Ubuntu 中部署 grails 3 war - 404 错误

ruby - Ubuntu ruby gem 位置

php - 将 SqlLite 添加到 PHP5

centos7 - 云初始化管理_resolv_conf

linux - Oracle Linux Server 7.9 如何解决 yum 安装 docker-ce-20.10.5 时的依赖问题?

php - Yii2 - Web 进程不可写目录 |前端/网络/ Assets

linux - 构建独立的 Qt Linux 可执行文件

centos - 在 Google Compute Engine 上配置 Plesk 面板

php - centos 中 xampp 5.6 中的 composer ssl 证书错误

centos - veewee 在等待 ssh 登录时在等待什么?