I'm creating a VirtualBox image using Packer.
Afterwards I start the VM and I'd like to use ssh to connect to it. I know how to enable port forwarding using the GUI but I prefer to automate things, so I'm looking for a way to let Packer do that for me.
I'm using NAT as the way of connecting my VM to the network.
How do I tell Packer to forward some ports to the VM?