From aeb70e6726f53ea8b9153f3616674de1069bbad4 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Tue, 15 Sep 2020 12:50:33 -0700 Subject: [PATCH] add http_directory docs to builders where it wasnt documented (#9943) * add http_directory docs to builders where it wasnt documented * Fix front matter for Proxmox builder Co-authored-by: Wilken Rivera --- website/pages/docs/builders/cloudstack.mdx | 8 ++++ website/pages/docs/builders/hyperv/vmcx.mdx | 8 ++++ website/pages/docs/builders/proxmox.mdx | 46 ++++++++++++++++++++- 3 files changed, 61 insertions(+), 1 deletion(-) diff --git a/website/pages/docs/builders/cloudstack.mdx b/website/pages/docs/builders/cloudstack.mdx index d362799ca..0557dedde 100644 --- a/website/pages/docs/builders/cloudstack.mdx +++ b/website/pages/docs/builders/cloudstack.mdx @@ -213,6 +213,14 @@ The available variables are: @include 'helper/communicator/SSH-Agent-Auth-not-required.mdx' +## Http directory configuration + +@include 'common/HTTPConfig.mdx' + +### Optional: + +@include 'common/HTTPConfig-not-required.mdx' + ## Basic Example Here is a basic example. diff --git a/website/pages/docs/builders/hyperv/vmcx.mdx b/website/pages/docs/builders/hyperv/vmcx.mdx index 4b3b57274..6ee142587 100644 --- a/website/pages/docs/builders/hyperv/vmcx.mdx +++ b/website/pages/docs/builders/hyperv/vmcx.mdx @@ -163,6 +163,14 @@ The example shown below is a working boot command used to start an Ubuntu For more examples of various boot commands, see the sample projects from our [community templates page](/community-tools#templates). +## Http directory configuration + +@include 'common/HTTPConfig.mdx' + +### Optional: + +@include 'common/HTTPConfig-not-required.mdx' + ## Integration Services Packer will automatically attach the integration services ISO as a DVD drive diff --git a/website/pages/docs/builders/proxmox.mdx b/website/pages/docs/builders/proxmox.mdx index 932b6456e..acef9881e 100644 --- a/website/pages/docs/builders/proxmox.mdx +++ b/website/pages/docs/builders/proxmox.mdx @@ -1,4 +1,4 @@ - +--- description: | The proxmox Packer builder is able to create new images for use with Proxmox VE. The builder takes an ISO source, runs any provisioning @@ -251,6 +251,50 @@ builder. - `vm_interface` - (string) - Name of the network interface that Packer gets the VMs IP from. Defaults to the first non loopback interface. +## Boot Command + +The `boot_command` configuration is very important: it specifies the keys to +type when the virtual machine is first booted in order to start the OS +installer. This command is typed after `boot_wait`, which gives the virtual +machine some time to actually load the ISO. + +As documented above, the `boot_command` is an array of strings. The strings +are all typed in sequence. It is an array only to improve readability within +the template. + +The boot command is "typed" character for character over the virtual keyboard +to the machine, simulating a human actually typing the keyboard. + +@include 'builders/boot-command.mdx' + +The example shown below is a working boot command used to start an Ubuntu +12.04 installer: + +```json +[ + "", + "/install/vmlinuz noapic ", + "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ", + "debian-installer=en_US auto locale=en_US kbd-chooser/method=us ", + "hostname={{ .Name }} ", + "fb=false debconf/frontend=noninteractive ", + "keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ", + "keyboard-configuration/variant=USA console-setup/ask_detect=false ", + "initrd=/install/initrd.gz -- " +] +``` + +For more examples of various boot commands, see the sample projects from our +[community templates page](/community-tools#templates). + +## Http directory configuration + +@include 'common/HTTPConfig.mdx' + +### Optional: + +@include 'common/HTTPConfig-not-required.mdx' + ## Example: Fedora with kickstart Here is a basic example creating a Fedora 29 server image with a Kickstart