Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

\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)

  1. 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
  2. From Ubuntu, execute the following commands to enable Ubuntu Pro:

    Code Block
    sudo apt install ubuntu-advantage-pro ubuntu-advantage-tools
  3. Install livepatch from snap as follows:

    Code Block
    snap install canonical-livepatch
  4. 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
  5. Enable pro with

    Code Block
    sudo pro attach $(vmware-rpctool "info-get guestinfo.ut.vss.ubuntu_pro.token")
  6. 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
  7. Configure on-premise livepatch:

    Code Block
    canonical-livepatch config remote-server="$(vmware-rpctool "info-get guestinfo.ut.vss.ubuntu_pro.livepatch.endpoint")"
  8. Enable on-premise livepatch:

    Code Block
    canonical-livepatch enable $(vmware-rpctool "info-get guestinfo.ut.vss.ubuntu_pro.livepatch.token")

Canonical Cloud

  1. 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
  2. From Ubuntu, execute the following commands to enable Ubuntu Pro:

    Code Block
    sudo apt install ubuntu-advantage-pro ubuntu-advantage-tools
  3. Enable pro with

    Code 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")

(question) Questions?

Please feel free to reach out at vss-ubuntu-pub@eis.utoronto.ca

...