You are not logged in.
Pages: 1
Topic closed
Hi all,
I was wondering if there is a neat way to copy the network configuration from one arch install to another.
It would be useful to me if I could copy the configuration from the arch iso to the system installed on a separate disk in the same machine. The hardware obviously shall remain constant, as is the naming of the ethernet device, however the hostname does change.
Is there a sensible way to do this?
any advice welcome
Last edited by evanharwin (2020-04-30 06:37:56)
Offline
Yes it is possible.
If you want to know how to do it, you need to tell us what networking tools you are using. That said, I don't see much point in doing this just from the iso. First, it's not like you've configured a wide range of access points in the live iso - almost certainly just one. So it'd be just as easy to start from scratch in the new system.
Also note that the interface names likely will change. So depending on which services you use, you will need to modify the configs.
For me, I'd just copy wpa_supplicant.conf, but that's all I use (once dhcpcd and it's wpa_supplicant hook are enabled).
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Yes. I might suggest sudp amd rsync used with ssh for intermachine stuff, and rsync and sudo for intramachine stuff
What are you using to manage your networks? The configurations for Networkmanager, netctl, and systemd-networks are kept in different places, but are usually someplace in /etc.
Of course, one needs be aware of differing subnets, static IPs that might conflict, and different machines naming their interfaces differently.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Yes, this is interesting and rsync is a cool tool but not really what I was looking for.
The situation I am in is that I have a functional arch install but I can't get the network to connect, however on the arch .iso it is all functioning fine. It would be nice to just copy the config files over rather than to work out the exact config I need. I believe that the arch .iso uses netctl, comparing the folders in /etc/ to the list of network managers in the wiki, which is the only one with a folder that looks functional.
Offline
You can just do the configuration via netctl the same way on the installed system, I have a feeling we are running into XY Problem territory. What is your actual issue? If your wifi adapter is completely unrecognized on the installed system due to either missing packages or bugs on the new kernel or... copying your network config will do exactly nothing at all.
To preempt a common cause for this scenario, is linux-firmware, netctl and dialog installed? What actually happens? Netctl does not support the latest dhcpcd unless you are using the testing variant, what is configured here?
Offline
I think V1del may be right about the XY problem. I my root issue was I was installing arch as a guest OS in vmware, and I have a rather fiddly network setup at home so I didn't want to troubleshoot the ip routing table. Turns out NetworkManager knew what it was doing and my problem was resolved as soon as I installed that. Apologies for being a nuisance!
Offline
How can i copy iwctl network configuration to installation NetworkManager configuration. i am using manual installation with iwctl and i am installing networkmanager and wpa supplicant to my installation place. But i coulnd find any knowladge about how to copy iwd profil to wpa supplicant. There is a file /var/lib/iwd/networkname.psk file but if i copy this to /etc/wpa_supplicant/... inside will it works? There is two options inside archinstall "script like copy iso network configuration to instal" and "Use NetworkManager (necessary to configure internet graphically in GNOME and KDE Plasma)". How archinstall do second option? How archinstall script can copy iwctl wireless profile to wpa_supplicant profile?. Thank you for all your helps.?
Last edited by DrVektor (2024-08-20 12:26:23)
Offline
Welcome to the forums, DrVektor.
Please do not
1) necro-bump old, solved threads.
2) hijack threads unrelated to your problem.
Please open a new thread pertaining to your issue at hand.
Closing.
Inofficial first vice preseident of the Rust Evangelism Strike Force
Offline
Pages: 1
Topic closed