I am using Oracle VirtualBox and I have installed ubuntu server as a guest VM . I have internet connection(dynamic public ip) to my host ubuntu desktop system. I could access the internet in my guest VM only if I select the network mode as 'NAT' in the VirtualBox network settings but host-guest is not working. If I select 'Bridged' as network mode in VIrtualBox network settings then the host-guest networing is working but no internet access on the guest VM.
Is there any settings recommendations either on host or guest or on both so that I'll have both host-to-guest networking and internet access.