How to configure Wi-Fi
This guide describes how to configure Wi-Fi on a freshly installed operating system. For some reasons, like no wired network connection availabe, you may want to also use Wi-Fi when you boot from the ISO.
This is possible by using a cloud-config definition in the SeedImage resource. You can refer to the same instructions as below on how to create it.
The information on this page is just a specific use case of using cloud-config. For more generic info on how to create arbitrary files check our cloud-config page
Elemental Teal currently uses NetworkManager to manage network connections.
In order to add Wi-Fi to your node, your registration should include a configuration in the cloud-config section to write a
.connection file so NetworkManager can connect to the Wi-Fi.
.connection file is a connection configuration file for NetworkManager.
The connection files are stored under
/etc/NetworkManager/system-connections/ and can include ethernet, Wi-Fi, VPN and more.
For example for a network with the SSID
testSSID and the WPA-PSK key
123456789 and using the interface
wlan0 you would write the following
To see all the configurations available for NetworkManager check nm-settings which includes the format of the connection file and all the different options you can use.
Which we should encode to base64 and paste in the content in our registration cloud-config section as such:
- encoding: b64
This would get the
/etc/NetworkManager/system-connections/wifi1.connection file deployed on the node during installation with the connection content and NetworkManager would
read and enable the connection on boot.