Let me preface this by saying I'm not experienced in any of this. I followed the in-depth beginners guide for installing Arch using VirtualBox.
I was able to install Arch just fine. After everything was installed I was able to ping different websites so it looked like the internet was working, not to mention I was able to download packages just fine from the internet with pacman. I then went to install Xfce because I heard it is a nice desktop environment. I think I also installed some stuff to do with VirtualBox Guest Additions (not really sure what they are). I was able to install that just fine, and rebooted my machine. After I logged in with my new desktop, I found that I have no internet. I searched around all last night and nobody seems to have my issue. From the "Network Configuration" page, it simply says to try pinging a website like so:
ping -c 3 google.com
Which fails with "unknown host google.com". If that fails, it says to do so like this:
ping -c 3 18.104.22.168
But that fails for me saying the network is unreachable. The website does not say what else to do in this case. I'm just completely lost on what to try next.
edit: Also, I tried some sort of
pacman -Syu command last night because the guide I was using said to do that for the Guest Additions stuff. Could that have contributed to this problem?
edit: So not even a few minutes after posting this I tried just running
dhcpcd in the terminal and I have internet again (at least ping works now). How do I make it do that when I boot up?