如何找到 Packer 的引导命令?
How do I find out the boot command for Packer?
如果我想使用 Packer, one option is to download an operating system's ISO image and use that as the base for a custom setup. When doing this, one needs to provide the boot_command
创建虚拟机映像,它是一个字符串数组,告诉 Packer 如何设置操作系统。
现在我的问题是:如何找到给定操作系统的正确 boot_command
步骤?当然我可能会手动启动它并记下我输入的每一个东西,但我想知道是否有更方便的方法。
当然也可以ask Google,但是有"official"的方法吗?例如,Ubuntu 的步骤是否记录在 Ubuntu 文档的某处?或者它实际上是反复试验,或者至少偷看别人的工作?
boot_command
取决于您要安装的 OS,并且只是启动自动安装所需的击键。
对于Ubuntu/Debian它被称为预置,对于红色Hat/CentOS/SLES有kickstart文件,其他Linux发行版可能有类似的功能。
对于 Ubuntu,起点是 Automatic Installation 的文档。
Packer 通常将 boot_command
与 http_directory
目录结合使用。 Ubuntu 从 ISO 启动,然后 Packer 输入 boot_command
的击键,然后使用预置配置提供静态 HTTP 下载 link 以完成安装的其余部分,例如。安装包。
boot_command
包含kernel parameters, but can also be used using boot parameters to preseed questions。
您将获得 hashicorp 打包程序站点中每个构建器的引导命令:https://www.packer.io/docs/builders/hyperv/iso。您将在引导配置参考中获得引导命令。还有其他的也适用于 virtualbox、vmware 等
如果我想使用 Packer, one option is to download an operating system's ISO image and use that as the base for a custom setup. When doing this, one needs to provide the boot_command
创建虚拟机映像,它是一个字符串数组,告诉 Packer 如何设置操作系统。
现在我的问题是:如何找到给定操作系统的正确 boot_command
步骤?当然我可能会手动启动它并记下我输入的每一个东西,但我想知道是否有更方便的方法。
当然也可以ask Google,但是有"official"的方法吗?例如,Ubuntu 的步骤是否记录在 Ubuntu 文档的某处?或者它实际上是反复试验,或者至少偷看别人的工作?
boot_command
取决于您要安装的 OS,并且只是启动自动安装所需的击键。
对于Ubuntu/Debian它被称为预置,对于红色Hat/CentOS/SLES有kickstart文件,其他Linux发行版可能有类似的功能。
对于 Ubuntu,起点是 Automatic Installation 的文档。
Packer 通常将 boot_command
与 http_directory
目录结合使用。 Ubuntu 从 ISO 启动,然后 Packer 输入 boot_command
的击键,然后使用预置配置提供静态 HTTP 下载 link 以完成安装的其余部分,例如。安装包。
boot_command
包含kernel parameters, but can also be used using boot parameters to preseed questions。
您将获得 hashicorp 打包程序站点中每个构建器的引导命令:https://www.packer.io/docs/builders/hyperv/iso。您将在引导配置参考中获得引导命令。还有其他的也适用于 virtualbox、vmware 等