Use a Livepatch Client with an on-premises server¶
Network access¶
Machines running the Livepatch Client require network access to the on-premises server. HTTPS (:443) or HTTP (:80) is used, depending on how the Livepatch on-premises haproxy and the Livepatch application’s url_template setting are configured.
In addition, machines require access to the Canonical Snap Store to install the Livepatch Client snap:
Snap Store:
api.snapcraft.io:443Snap Store CDN:
*.snapcraftcontent.com:443
Configure the Livepatch Client¶
To start applying live kernel patches to a machine, install the Livepatch Client on it. The Livepatch Client is distributed as a snap. On the machine, run:
sudo snap install canonical-livepatch
After the client is installed, configure it to pull patches from the on-premises server:
canonical-livepatch config remote-server="http(s)://<hostname>"
The authorization token can then be used to attach any number of machines to the on-premises Livepatch Server:
canonical-livepatch enable <token>