I am trying to configure a cellular network connection. The documentation at Network Setup on balenaOS - Balena Documentation suggests adding a file in the folder /resin-boot/system-connections of the SD image. But it does not have such a folder. When I insert the SD drive to Ubuntu 22.04 host I can see in the file explorer 2 media folders - flash-rootA and flash-rootB. Under the first one, there is a folder flash-boot/system-connections. I tried to add a configuration file in that folder to provision a device with it. But in the device booted with balena OS there is not my file which was added.
So, the question is - how can I configure cellular network connection?
In this video, it looks like the network configuration is changed in the actual device after it is provisioned.
What I need is to configure settings such as APN, user name, and password for the cellular network (4G LTE) connection, in the OS image in the USB flash disk. So no configuration change is required after the device is added to the fleet. I could not find the folder " the /resin-boot/system-connections/ directory in the .img or on SD card" in the reference documentation.
There is a folder system-connections under the folder flash-boot. I put the config file cellular there.
There is also etc/NetworkManager/system-connections. I also copied the file there.
And also tried to create system-connectionsunder flash-boot.
The added file cellular does not appear in the device’s resin-boot/system-connections folder no matter what I do,
Ths OS version is generic x64.
If you’ve got a flash image you can add default network configurations to them with balena os configure. Download the image, then run balena os configure /path/to/image.img --fleet $FLEET_SLUG --system-connection /path/to/connection.nmconnection.
Any devices flashed with that image will automatically have that connection added. You can add multiple connections by adding more than one --system-connection argument.
First I tried to set it this way in a Windows machine, but it did not work.
Then tried on the laptop with Ubuntu 22.04, and it works now, GSM is displayed as connected. And I can see its IP address in the Balena dashboard.
On the device, I don’t see the network connection configuration file in the folder /resin-boot/system-connections though.
I found it in folders /mnt/boot/system-connections and /mnt/state/root-overlay/etc/NetworkManager/system-connections and mnt/boot/system-connections.
Anyhow, the problem is resolved now, thank you for the support!