I've setup an Ubuntu Server 18.04 VM in VirutalBox on my Lenovo laptop (which is running Ubuntu Desktop 18.04). When the VM boots up using NAT for networking, it does get an IP and it can get out to the internet (PING google, etc):
However, I cannot get in to the VM via SSH, nor does PING work or anything else - nothing inbound to the VM is being allowed. I tried to disable UFW like so:
systemctl stop ufw ...which did disable UFW, but still nothing inbound is being allowed at all.
I then tried setting the NIC to use "Bridged" networking, but it cannot get an IP from DHCP (not sure why). I'm fine with using either IP, it doesn't matter. I just need inbound connectivity. How can I get it?