美文网首页OpenStack
结合Cloud-init 做镜像

结合Cloud-init 做镜像

作者: 廖马儿 | 来源:发表于2017-08-30 11:19 被阅读15次

    1.先安装常用包

    yum install -y wget vim net-tools
    

    2.在/etc/yum.repos.d/目录下获取epel源,这里使用的是阿里的源地址
    先cd到yum.repos.d目录:

    cd /etc/yum.repos.d/
    

    wget阿里的epel源:

    wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
    

    装epel源主要是为了Yum能够装Cloud-init。

    相关文章

      网友评论

        本文标题:结合Cloud-init 做镜像

        本文链接:https://www.haomeiwen.com/subject/idlyhxtx.html