Skip to content

Instantly share code, notes, and snippets.

@nickboldt
Last active December 18, 2024 12:17
Show Gist options
  • Save nickboldt/ef98b41f4746e1e7b2f2475a0d78cf79 to your computer and use it in GitHub Desktop.
Save nickboldt/ef98b41f4746e1e7b2f2475a0d78cf79 to your computer and use it in GitHub Desktop.
VBox VM loses network - workaround for Fedora
# if your VM went to sleep / hibernate, and on wakeup can't find the network...
# switch your guest's Network settings in Virtual Box as follows:
Attached to: Bridged Adapter
Name: Intel Wifi
Promiscuous Mode: Allow VMs
[x] Cable Connected
# go back into the VM and run
sudo su
systemctl restart systemd-resolved.service
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
echo "nameserver 8.8.4.4" >> /etc/resolv.conf
exit
# ping and chrome should work again
# thanks to https://www.virtualbox.org/ticket/19358 for the solution!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment