I'm using packer 1.1.3 on Debian 9.0 (64 bit), i'm installing my product ISO into guest VM and trying to export it as an OVA, but i'm getting the following error :
==> virtualbox-iso: Waiting 10s for boot...
==> virtualbox-iso: Typing the boot command...
==> virtualbox-iso: Waiting for SSH to become available...
==> virtualbox-iso: Connected to SSH!
==> virtualbox-iso: Uploading VirtualBox version info (5.1.18)
==> virtualbox-iso: Gracefully halting virtual machine...
virtualbox-iso:
virtualbox-iso: We trust you have received the usual lecture from the local System
virtualbox-iso: Administrator. It usually boils down to these three things:
virtualbox-iso:
virtualbox-iso: #1) Respect the privacy of others.
virtualbox-iso: #2) Think before you type.
virtualbox-iso: #3) With great power comes great responsibility.
virtualbox-iso:
virtualbox-iso: [sudo] password for myuser:
==> virtualbox-iso: Timeout while waiting for machine to shut down.
==> virtualbox-iso: Error shutting down VM: VBoxManage error: VBoxManage: error: The virtual machine is being powered down
==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_VM_STATE (0x80bb0002), component ConsoleWrap, interface IConsole, callee nsISupports
==> virtualbox-iso: VBoxManage: error: Context: "PowerDown(progress.asOutParam())" at line 231 of file VBoxManageControlVM.cpp
==> virtualbox-iso: Deregistering and deleting VM...
==> virtualbox-iso: Error deleting VM: VBoxManage error: VBoxManage: error: Cannot unregister the machine 'cmsvm_64 ' while it is locked
==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports
==> virtualbox-iso: VBoxManage: error: Context: "Unregister(CleanupMode_DetachAllReturnHardDisksOnly, ComSafeArrayAsOutParam(aMedia))" at line 155 of file VBoxManageMisc.cpp
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: Timeout while waiting for machine to shut down.
I tried to google this issue but not getting a definitive answer, can somebody help in this case as to what is wrong here? I've attached the JSON script.