【问题标题】:How to upload custom boot image to MAAS如何将自定义启动映像上传到 MAAS
【发布时间】:2016-02-09 14:30:56
【问题描述】:

我在 ubuntu 中成功安装了最新的 MAAS,我喜欢将 centos7 上传到 MAAS 启动映像 我有 CentOS-7-x86_64-Everything-1511.iso 我如何上传到 MAAS。 我搜索了将自定义图像上传到 MAAS,但找不到任何上传的好方法,而且有些方法对我来说很困惑。

请提供一套分步指南来执行此操作

谢谢

【问题讨论】:

    标签: ubuntu centos centos7


    【解决方案1】:

    您可以使用 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 密钥并记录到 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 boot-resources create name=centos/centos6 architecture=amd64/generic content@=/root/maas-image-builder/centos6-amd64-root-tgz

    上传 CentOS7 图片

    maas maas boot-resources create name=centos/centos7 architecture=amd64/generic content@=/root/maas-image-builder/centos7-amd64-root-tgz

    检查可用的 CentOS 映像启动映像

    maas maas 启动资源读取 | egrep -i "centos"

    参考:https://maas.ubuntu.com/docs/os-support.html

    【讨论】:

    • 这似乎不适用于最新版本的 MaaS,因为 CentOS 映像现在维护在其映像存储库中。关于如何实际创建自定义图像的文档很少。例如,如果您需要一个 Redhat 或 Oracle Linux 映像,那么您将面临空头承诺。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-10-27
    • 2021-05-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-05
    • 2016-01-03
    相关资源
    最近更新 更多