...
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 https:\/\/\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")
...