From 376b8c045e40ace3c2cefb638261b3699b8d3a0b Mon Sep 17 00:00:00 2001 From: Roman Tomjak <6570684+romantomjak@users.noreply.github.com> Date: Wed, 15 Jul 2020 19:12:01 +0100 Subject: [PATCH] use the value of disable kvm flag when creating the VM --- builder/proxmox/step_start_vm.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/builder/proxmox/step_start_vm.go b/builder/proxmox/step_start_vm.go index 63d961125..132c383d4 100644 --- a/builder/proxmox/step_start_vm.go +++ b/builder/proxmox/step_start_vm.go @@ -27,12 +27,18 @@ func (s *stepStartVM) Run(ctx context.Context, state multistep.StateBag) multist agent = 0 } + kvm := true + if c.DisableKVM { + kvm = false + } + isoFile := state.Get("iso_file").(string) ui.Say("Creating VM") config := proxmox.ConfigQemu{ Name: c.VMName, Agent: agent, + QemuKVM: kvm, Boot: "cdn", // Boot priority, c:CDROM -> d:Disk -> n:Network QemuCpu: c.CPUType, Description: "Packer ephemeral build VM",