diff --git a/builder/proxmox/common/step_finalize_template_config.go b/builder/proxmox/common/step_finalize_template_config.go index 34ee620b..f49977df 100644 --- a/builder/proxmox/common/step_finalize_template_config.go +++ b/builder/proxmox/common/step_finalize_template_config.go @@ -55,7 +55,7 @@ func (s *stepFinalizeTemplateConfig) Run(ctx context.Context, state multistep.St } } if cloudInitStoragePool != "" { - ideControllers := []string{"ide3", "ide2", "ide1", "ide0"} + ideControllers := []string{"ide0", "ide1", "ide2", "ide3"} cloudInitAttached := false // find a free ide controller for _, controller := range ideControllers { diff --git a/builder/proxmox/common/step_finalize_template_config_test.go b/builder/proxmox/common/step_finalize_template_config_test.go index ae259f41..8d26536a 100644 --- a/builder/proxmox/common/step_finalize_template_config_test.go +++ b/builder/proxmox/common/step_finalize_template_config_test.go @@ -85,7 +85,7 @@ func TestTemplateFinalize(t *testing.T) { expectedVMConfig: map[string]interface{}{ "name": "my-template", "description": "some-description", - "ide3": "ceph01:cloudinit", + "ide0": "ceph01:cloudinit", }, expectedAction: multistep.ActionContinue, },