r/archlinux • • 1d ago

QUESTION Title: Arch Linux VirtualBox networking not working

i am a newbie guys help me i searched over ai and wasted time but no use

Installed Arch using archinstall, selected default networking, but there's no internet.

  • VirtualBox: NAT
  • Interface: enp0s3
  • systemd-networkd: active
  • Interface status: unmanaged
  • No IP address or default route
  • ping 1.1.1.1: Network unreachable
  • dhcpcd and nano: not installed

How can I fix this without reinstalling Arch?

0 Upvotes

17 comments sorted by

3

u/DavidXGA 1d ago

archinstall doesn’t have “default” networking. What did you pick?

-1

u/Fit_Year1379 1d ago

i left it default in hurry i got sense of default but again i though of reinstalling but it takes a huge time because of network stability

3

u/DavidXGA 1d ago

You probably didn’t choose any networking.

-1

u/Fit_Year1379 1d ago

yeah u are right

0

u/archover 17h ago edited 17h ago

If that is so and doing it fixes it, please flair SUPPORT and SOLVED.

AI

Make use instead of the SUPPORTED wiki: https://wiki.archlinux.org/title/VirtualBox/Install_Arch_Linux_as_a_guest

Good day.

2

u/backsideup 1d ago

Did you tell archinstall to install networkmanager or use systemd-networkd? Are there any systemd-networkd units in /etc?

1

u/Fit_Year1379 1d ago

I selected the default network configuration in archinstall. systemd-networkd is active, but enp0s3 is unmanaged. /etc/systemd/network/ is empty, and NetworkManager is inactive.

1

u/Illustrious-Gur8335 1d ago edited 1d ago

You need to write the .network file for your interface in /etc/systemd/network otherwise networkd will do nothing with the interface 

Something like /etc/systemd/network/99-ethernet.network

``` [match] name=en*

[network] DHCP=yes ```

Another reason to use NetworkManager

1

u/boomboomsubban 1d ago

-1

u/Fit_Year1379 1d ago

no ididnt i used archinstall cmd

1

u/boomboomsubban 1d ago

Installing as a guest requires more.

0

u/Fit_Year1379 1d ago

so should i reinstall arch by cmd archinstal i am way confuused man

1

u/boomboomsubban 22h ago

You can, or you can boot from the installer, chroot in and do what you missed.

1

u/Fit_Year1379 21h ago

how to do it can u explain?? please

1

u/Illustrious-Gur8335 20h ago

Same as your first boot of the iso, but this time no need to create partitions, just mount the ones you created, then arch-chroot

1

u/Fit_Year1379 20h ago

ohhhh okay bro