There are some quirks around VirtualBox networking.

Try adding
https://www.packer.io/docs/builders/virtualbox-iso.html#ssh_skip_nat_mapping
true

If that doesn't help you can always run with nat nic and then use
vboxmanage_post to change the network to bridged if your product properly
auto configures network. See
https://www.packer.io/docs/builders/virtualbox-iso.html#vboxmanage_post

On 19 October 2016 at 09:40, Jaikumar Sharma <[email protected]>
wrote:

> Hi all,
>
> I'm new to packer; i've written the script to export Virtualbox OVA from
> headless installation DVD of my product (no preceed is required in packer
> config).
>
> Issue i'm facing is if i use ["modifyvm", "{{.Name}}", "--nic1",
> "bridged"] then packer is not able to connect to newly installed VM and
> gets SSH Time out, but if I use ["modifyvm", "{{.Name}}", "--nic1", "nat"],
> it successfully connect through SSH and shut down the VM and export the OVA
> successfully.
>
> My product is based on Debian Jessie.
>
> I've googled as to why using 'bridged' connection it is not able to
> connect to VM, but no fruitful results or answer i'm getting. Does somebody
> know what is wrong ?
>
> Attached is the template.
>
> Thank you in advance!
>
> Regards
> Jaikumar
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/8ad4a337-9534-42e9-96ab-04b5416fe927%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/8ad4a337-9534-42e9-96ab-04b5416fe927%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt8-MZOpEGFq-aEo2Y0DrLJgL2uAMu_zcVxNagC3PjODFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to