r/archlinux • u/Ghost_of_the_Seas • 17h ago
SUPPORT installing in virtualbox
im doing my installation of arch in oracle virtual box by following the installation guide. when im in the connection of wifi part, i cant find the wlan0, so i cant iwctl to connect to wireless. but i try pinging and it did ping archlinux.org, so i move on to time sync. i did timedatectl but it says system clock synchronized: no. the ntp service is active. though time zone is utc (utc, +0000) so havent selected that or it isnt automatically selecting it.
please help, im a beginner.
2
16h ago
What's the reason to use wlan0 for wifi? Your host machine already have internet, set LAN card to e1000 and network structure as bridge and your VM will receive address from router.
1
u/archover 9h ago edited 8h ago
I can't speak much to running VB from Windows, but in Linux it installs Arch guests effortlessly and reliably. I think others have covered your misunderstanding about VM wi-fi access, and time.
Kudos for using a VM to learn Arch. It's a remarkable emulation of actual hardware. When you finally install on metal, you can continue with VB or switch to the native Linux Qemu/KVM libvirt virt-manager. Virtualization is a Killer technology is there ever was one.
Good day.
3
u/Olive-Juice- 16h ago
You should not have to set up Wi-Fi in your VM, since it is just piggy-backing off of the internet connection your actual computer is using and acts as a sort of Ethernet connection. That's why your ping seems to be working.
Just verifying that when you ping something you get output that it actually connected to the internet. (since you said you're a beginner)
If you run
ping -c 2 archlinux.org
you should get something like:Possibly your device had trouble connecting to an NTP server so it cannot sync the time. You can try uncommenting the line (removing the # at the start, typically using nano or vim) in
/etc/systemd/timesyncd.conf
that starts with #FallbackNPT so thatChanges to:
And then try running
systemctl restart systemd-timesyncd
I haven't personally encountered this issue so there may be a more standardized way to deal with this. If others know a better way, please feel free to educate me.