diff --git a/builder/proxmox/common/config.go b/builder/proxmox/common/config.go index 1428345f9..2e3083b52 100644 --- a/builder/proxmox/common/config.go +++ b/builder/proxmox/common/config.go @@ -39,6 +39,7 @@ type Config struct { VMName string `mapstructure:"vm_name"` VMID int `mapstructure:"vm_id"` + Boot string `mapstructure:"boot"` Memory int `mapstructure:"memory"` Cores int `mapstructure:"cores"` CPUType string `mapstructure:"cpu_type"` diff --git a/builder/proxmox/common/step_start_vm.go b/builder/proxmox/common/step_start_vm.go index 0e92334fb..d5877a6a2 100644 --- a/builder/proxmox/common/step_start_vm.go +++ b/builder/proxmox/common/step_start_vm.go @@ -43,7 +43,7 @@ func (s *stepStartVM) Run(ctx context.Context, state multistep.StateBag) multist Name: c.VMName, Agent: agent, QemuKVM: kvm, - Boot: "cdn", // Boot priority, c:CDROM -> d:Disk -> n:Network + Boot: c.Boot, // Boot priority, example: "order=virtio0;ide2;net0", virtio0:Disk0 -> ide0:CDROM -> net0:Network QemuCpu: c.CPUType, Description: "Packer ephemeral build VM", Memory: c.Memory,