packer build hangs with virtualbox, waiting for SSH to become available
PatriceG opened this issue · comments
Hi,
First, thanks for providing this tool that looks promising for a newcomer to OS X virtualization like me.
I followed your instructions to prepare a Mavericks image and the following command line hangs:
/Applications/packer/packer build -only virtualbox-iso
-var so_checksum=e2810991daed651f6ded9c8c739b1705
-var iso_url=/Users/admin/out/OSX_InstallESD_10.9.4_13E28.dmg
/Users/admin/osx-vm-templates-master/packer/template.json
It launches the OS X installer in VirtualBox but hangs indefinately waiting for SSH to become available:
virtualbox-iso: Executing: modifyvm packer-virtualbox-iso-1410853896 --vram 9
==> virtualbox-iso: Starting the virtual machine...
==> virtualbox-iso: Waiting 2s for boot...
==> virtualbox-iso: Typing the boot command...
==> virtualbox-iso: Waiting for SSH to become available...
I tried to click on the various installer dialogs but it didn't solve the issue. There seems to be something wrong with the SSH availability but I'm brand new to OS X (I'm familiar with Linux) so I'd appreciate any clue on what could be wrong.
Pat
Self reply:
I had downloaded the prepare_iso.sh script from the provided link in the readme.md and it seems to rely on external dependencies so I ran it again from the extracted archive and the installer is now running unattended and the Vagrant box is created successfully.
Thanks again for this great tool.
Great! Yes, it's necessary to run the script from the archive itself.