Limitations:
Network:company
Host:dhcp
Host NIC bridge:disabled
Network access:limited
========================
Based on this, it might not being possible to set the VM to access Internet, & visible to host at the same time.
========================
1. Set the VM IP to "DHCP"
Vi/etc/network/interfaces
Set the VM ' s NIC in Virtual Box as network address translation (NAT)
Reboot VMs.
Now VMS can access public Internet via host ' s NIC. But host cannot access VM. You can use the Apt-get now.
--------------------------------
2. Set the VM IP to "static" and make it in the same domain as VBox ' s NIC in host
Set the VM ' s NIC in Virtual Box as host only (HOST-ONLY) network
Reboot VMs.
Now the VM cannot access Internet, but host can ping the This VM's IP. You can do your dev work using the This VM now.
Virtual box VM network configuration-virtual box VM configuration Online