I am creating an Ubuntu Server VM with VirtualBox. This morning I created the VM (with Networking configurations shown below) and installed the guest OS from an ISO.
I just logged in for the first time and tried to run apt-get update
and got a million errors:
Failed to fetch <some-http-url>. Temporary failure resolving <blah>.ubuntu.com
I believe it's giving me one error message for each item it's trying to update. This tells me my network settings on either the VBox machine (.vbox file) or the guest OS instance (installed in the .vdi file) are set incorrectly or not at all.
How do I diagnose which of the two is happening here, and what are my options? I'd hate to have to reinstall the entire OS again...
VBox Network Settings for the machine are as follows (for Adapter 1 only):
- Network Adapter is enabled
- Attached to NAT
- Adapter type: IntelPRO 1000/MT Desktop
- Cable connected is enabled/set
I hope the issue is the last item (Cable connected is set to true). I am running the guest OS VM on a laptop which is using a wireless connection to my home LAN. Perhaps the guest VM is expecting a wired connection?
Edit adding screenshots show VM networking settings:
Running ifconfig
:
Running route
: