I would expect that a configuration file should be added in /etc/NetworkManager/system-connections/ - but it doesn’t create anything for this device.
We used to use CentOS7.x, and there this would create the corresponding ifcfg--files in /etc/sysconfig/network-scripts/ - but I understand that this has been deprecated in favour of /etc/NetworkManager/system-connections/.
Any ideas what I’m doing wrong?
(From what I’ve understood, the --no-activate only means that it’s not active during the installation, but it should be created for future boots. That’s how it worked with CentOS7.x.)
I’m testing that now. It takes a while to generate the image, and boot on it…
(And at first I got it wrong, and set --no-ipv6 - which it didn’t like at all…)
On an almost related topic - (it’s on the next line…) Will network --hostname=almatest set the hostname in /etc/hostname? If so, it’s a whole lot neater than the recommended solution of:
(It’s true that we’re doing some weird things. I boot this in a qemu vm, generating a filesystem that will later be used in an semi-embedded appliance. I don’t exclude that this has an impact. But for CentOS7.x it worked like a charm.)
network interface mismatch i’d say, your kickstart is probably using nic names that don’t exist - the ens3 is the real nic name not enp3s0, and its only found one card i guess (and used dhcp?)
although for a qemu vm that looks odd, they’re usually enp1s0 for virtio-nic, oh i guess you’re using e1000
you can put the --hostname on the same network line btw, not sure why i split it over two lines.
oh you’ve missed a space here, that’s why its not configured the 2nd nic i guess:
--device=enp1s0f0--ip=10.40.8.10
again, things that work on centos7 will be very different on alma9, kickstart and networking have moved on a lot in a two major version jump
Yes, that sounds reasonable. As the kickstart installation is done in a VM with different interfaces compared to the real quasi-embedded target system, there will be mismatches between emulated and real hardware.
Well spotted! Thanks!
Yup. I think we’ll have to re-think some of the logistics choices that were made in the past.
Right now I’m contemplating generating the system-connections files separately, and simply copy them into the image.
Having read through the thread I’m not entirely clear on whether the initial issue is solved or not. But here’s a example from a kickstart file for AlmaLinux 9 that definitely works for doing static ipv4 address anyway:
No - the initial issue is not resolved - but I think that I will have to re-think the strategy a bit. We were using kickstart inside a VM that’s subtly different from the actual target system. For example - we don’t have the same interfaces as we do for the real target system, which presumably explains why the /etc/NetworkManager/system-connections/ files weren’t created.
I think that I’ll simply create the files directly instead. The syntax looks pretty straight-forward.