Making VMs accessible from host network.
| This should work fine with Virtualbox 5.2.42 or later
-
Global Tools > Host Network Manager > Create > vboxnet0
-
On Guest VM Settings > Network > Adapter 2 > Host-Only Adapter: choose vboxnet0
-
Going into the VM and get the IP from 2nd Adapter.
// I didn't set up port forward and it seems working fine.
Reference: https://medium.com/nycdev/how-to-ssh-from-a-host-to-a-guest-vm-on-your-local-machine-6cb4c91acc2e