...
\uD83D\uDCD8 Instructions
Ubuntu Pro activation is recommended via the ITS Private Cloud on-premise server, although connecting to Canonical Cloud servers offers a simpler alternative.
ITS Private Cloud (Recommended)
To activate your existing virtual instances, just execute the following
vss-cli
command:Code Block vss-cli --wait compute vm set {vm_id-or-name} ubuntu-pro attach
From Ubuntu, execute the following commands to enable Ubuntu Pro:
Code Block sudo apt install ubuntu-advantage-pro ubuntu-advantage-tools
Install
livepatch
from snap as follows:Code Block snap install canonical-livepatch
Update
contract_url
in/etc/ubuntu-advantage/uaclient.conf
with on-premise instance.Code Block sudo echo "contract_url: $(vmware-rpctool "info-get guestinfo.ut.vss.ubuntu_pro.endpoint")" > /etc/ubuntu-advantage/uaclient.conf
Enable
pro
withCode Block sudo pro attach $(vmware-rpctool "info-get guestinfo.ut.vss.ubuntu_pro.token")
Update
/etc/apt/auth.conf.d/90ubuntu-advantage
as follows:Code Block sudo sed -i 's/machine \([^ ]*\)/machine http:\/\/\1/' /etc/apt/auth.conf.d/90ubuntu-advantage
Configure on-premise
livepatch
:Code Block canonical-livepatch config remote-server="$(vmware-rpctool "info-get guestinfo.ut.vss.ubuntu_pro.livepatch.endpoint")"
Enable on-premise
livepatch
:Code Block canonical-livepatch enable $(vmware-rpctool "info-get guestinfo.ut.vss.ubuntu_pro.livepatch.token")
Canonical Cloud
To activate your existing virtual instances, just execute the following
vss-cli
command:Code Block vss-cli --wait compute vm set {vm_id-or-name} ubuntu-pro attach
From Ubuntu, execute the following commands to enable Ubuntu Pro:
Code Block sudo apt install ubuntu-advantage-pro ubuntu-advantage-tools
Enable
pro
withCode Block sudo pro attach $(vmware-rpctool "info-setget guestinfo.ut.vss.ubuntu_pro ON.token")
🧐 Frequently Asked Questions (FAQ)
1. Invalid Token error when running command: sudo pro attach $(vmware-rpctool "info-get guestinfo.ut.vss.ubuntu_pro.token")
Solution:
Ensure the virtual machine is running in cluster FD3.
...
Code Block |
---|
id : B399A status : SUBMITTED task_id : 29870123-XXXX-4a03-894a-f350481XXXXX message : Request has been accepted for processing ⏳ Waiting for request B399A to complete... 🎉 Request B399A completed successfully: warnings : Ubuntu Pro tokensettings hashave been already setupre-applied. errors : |
Once you receive the confirmation that the Ubuntu Pro token is set up, proceed with updating packages on the desired virtual machine using the following commands:
Code Block |
---|
sudo apt install ubuntu-advantage-pro ubuntu-advantage-tools
sudo pro attach $(vmware-rpctool "info-get guestinfo.ut.vss.ubuntu_pro.token") |
Questions?
Please feel free to reach out at vss-ubuntu-pub@eis.utoronto.ca
...