In setting up virtual machines with VirtualBox, I often want the following characteristics
- vm has a static ip
- host can access vm without port forwarding
- vm can access the internet
- I can move my laptop from network to network (e.g. from home to office to coffeeshop) without worrying about securing or reconfiguring the vm
None of the VirtualBox network connection methods staisfies these requirements on their own.
Requires port forwarding if you want to connect to the vm from the host.
The vm can not access the internet, unless the host is a router.
Exposes the vm to the network; not portable.