I've been reading the manual, but I can't quite figure out the best method to solve a relatively common problem.
https://www.virtualbox.org/manual/UserM ... lver_proxy
I need the hostname & domain names of websites that I am developing inside the guest to be resolved by the host via the host's
Code: Select all
/etc/hosts
I have an Ubuntu 20.04 desktop host and an Ubuntu Server guest running in Vbox6.1 with GA.
My NAT adapter assigns the default address 10.0.2.15, which cannot be resolved by the host (can't ping from host to guest).
By default my guest server and domains are assigned to 10.0.2.15, so this has prevented me from resolving guest hostname/domains.
https://10.0.2.15:10000 and domain name test.example.com cannot be reach via browser by host machine.
I want you use my host resolver &
Code: Select all
/etc/hosts
Code: Select all
10.0.2.15 test.example.com <- current setting
10.0.2.15 website1.com
10.0.2.15 website2.com
VBoxManage modifyvm MY-vm-name --natdnshostresolver1 on
I also tried VBoxManage setextradata My-vm-name "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/AttachedDriver/Config/HostResolverMappings/ \
resolve-virtualmin-vbox-address/192.168.58.1" 192.168.47.47 (broke the machine )
Any tips? Thx