Packer-通过ISO自动创建qemu镜像

2020-04-28  本文已影响0人  mini鱼

介绍:

Packer是一个创建自定义镜像的开源工具,可以免去通过ISO安装系统时的手动操作,完成自动化安装系统的过程,并且可以直接提交至aws、阿里云等。通过Packer,您只需在JSON配置文件中指明构建镜像所需的基本信息、以及需要安装到镜像中的软件及配置,即可自动化构建ECS镜像。
官网:https://www.packer.io/


安装:

1、官网下载页面
提供macOS、Linux、Windows等系统版本

image.png

我们下载 Linux版本 测试
wget https://releases.hashicorp.com/packer/1.5.5/packer_1.5.5_linux_amd64.zip
下载解压后即可直接运行

# ./packer 
Usage: packer [--version] [--help] <command> [<args>]

Available commands are:
    build       build image(s) from template
    console     creates a console for testing variable interpolation
    fix         fixes templates from old versions of packer
    inspect     see components of a template
    validate    check that a template is valid
    version     Prints the Packer version

参考:

https://help.aliyun.com/document_detail/111070.html?spm=a2c4g.11186623.4.1.646da9eflGW8XA

上一篇下一篇

猜你喜欢

热点阅读