how to configure networking
as a test, i installed in qemu archlinux to make sure i won't be left with an installation that have no network configured. during install, the nic was configured and am able to update the repo online. after install, my archlinux vm have no configured networking! why is that? how do i make sure that networking works after an installation?
On 13 Mar 2023, at 08:09, Rino Mardo <rino19ny@gmail.com> wrote:
after install, my archlinux vm have no configured networking! why is that? how do i make sure that networking works after an installation?
Smart to teat before committing. Did you follow https://wiki.archlinux.org/title/Network_configuration or choose a network configuration in archinstall? By default there will be no networking configured. //Anton
kinda hard to follow that link because the iw package is not installed. "by default"? isn't that kinda wrong i mean it's a networked machine. On Mon, 13 Mar 2023, 3:15 pm Anton Hvornum <anton@hvornum.se> wrote:
On 13 Mar 2023, at 08:09, Rino Mardo <rino19ny@gmail.com> wrote:
after install, my archlinux vm have no configured networking! why is that? how do i make sure that networking works after an installation?
Smart to teat before committing. Did you follow https://wiki.archlinux.org/title/Network_configuration or choose a network configuration in archinstall?
By default there will be no networking configured.
//Anton
By now you know original network configuration was temporary. Why no configuration choice on real and virtual systems exists to make the configuration permanent I don't know. Time to repeat network configuration on installed virtual system. Jude <jdashiel at panix dot com> "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) . On Mon, 13 Mar 2023, Rino Mardo wrote:
as a test, i installed in qemu archlinux to make sure i won't be left with an installation that have no network configured. during install, the nic was configured and am able to update the repo online.
after install, my archlinux vm have no configured networking! why is that? how do i make sure that networking works after an installation?
after install, my archlinux vm have no configured networking! why is that?
IINM the problem is that the configuration you made when installing was saved to your RAM disk (the one that was loaded from the USB/CD). However, when you boot after installation you are reading it from the installed system (the one you mount at /mnt as per the installation instructions). So, that's why it is unconfigured: the network settings are not propagated from one system to another. In fact, you could decide using different tools to configure the network when installing and then when running the installed system. It's two different systems of their own.
how do i make sure that networking works after an installation?
One way is to configure again after first reboot. Another way could be configuring the network again while in the installation chroot (for example, if you run iwctl in the chroot, it will save the correct WiFi password to the chroot's /var/lib/..... path). I have not tested the second method, though. Don't know if it could lead to any issue.
i don't mind doing it again. the thing is even the iw package is not installed so i can't do anything. will redo the exercise tonight as per your second suggestion. On Mon, 13 Mar 2023, 3:34 pm Iván Zaera Avellón <ivan.zaera@posteo.net> wrote:
after install, my archlinux vm have no configured networking! why is that?
IINM the problem is that the configuration you made when installing was saved to your RAM disk (the one that was loaded from the USB/CD). However, when you boot after installation you are reading it from the installed system (the one you mount at /mnt as per the installation instructions).
So, that's why it is unconfigured: the network settings are not propagated from one system to another.
In fact, you could decide using different tools to configure the network when installing and then when running the installed system. It's two different systems of their own.
how do i make sure that networking works after an installation?
One way is to configure again after first reboot. Another way could be configuring the network again while in the installation chroot (for example, if you run iwctl in the chroot, it will save the correct WiFi password to the chroot's /var/lib/..... path). I have not tested the second method, though. Don't know if it could lead to any issue.
the thing is even the iw package is not installed so i can't do anything.
Yeah, that's very typical too. I always forget to add some package to the "pacstrap -K" command when installing. In that case, you don't need to reinstall everything. Just reboot the system with the installation USB and run pacstrap again, for example. Or, configure the network from the installation USB system, arch-chroot into the target system and install the iw package. Once it happens to you 900-1000 times, you remember it for the following installations 😂
Is netctl installed? Unless that's been deprecated you may be able to use that to talk to wi-fi at least. Jude <jdashiel at panix dot com> "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) . On Mon, 13 Mar 2023, Iv?n Zaera Avell?n wrote:
the thing is even the iw package is not installed so i can't do anything.
Yeah, that's very typical too. I always forget to add some package to the "pacstrap -K" command when installing.
In that case, you don't need to reinstall everything. Just reboot the system with the installation USB and run pacstrap again, for example.
Or, configure the network from the installation USB system, arch-chroot into the target system and install the iw package.
Once it happens to you 900-1000 times, you remember it for the following installations ?
Am 13.03.23 um 08:09 schrieb Rino Mardo:
after install, my archlinux vm have no configured networking! why is that? how do i make sure that networking works after an installation?
If you had installed a complete desktop group, say xfce4 or gnome, which seems advisable as a newcomer, then networking would be included, of course. Since you opted to install some kind of custom or minimal selection of packages, you are expected to "know what you are doing". :-) BTW: If you have a wired connection, then probably everything you need to get online is included in the base install. No need to download anything. If you need wireless, then you should have installed iwd, or NetworkManager, or connman, or at least wpa_supplicant. BR
participants (5)
-
Anton Hvornum
-
Iván Zaera Avellón
-
Jude DaShiell
-
Markus Schaaf
-
Rino Mardo