So, I load an .ova image with packer of a minimal ubuntu linux installation. I realized after everything went through (Provisioners etc) and it successfully exported the output file. However, when loading the output image with VirtualBox I can't communicate with the box, because the box doesn't have a valid network adapter that allows me to ping it etc.
So I tried adding a bridged adapter one during the build process:
"vboxmanage": [[ "modifyvm", "{{.Name}}", "--nic2", "bridged", "--bridgeadapter2","enp0s31f6" ]]
However the machine is still not reachable. This is how it looks on the VM:
How can I ensure that my box is always reachable from the outside? Is adding a network bridge adapter even the right way? What am I doing wrong? I think I need the VM to have an IP like 192.168.x.x

