You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/workloads/canonical/ubuntu-pro-in-place-upgrade.md
+97-48Lines changed: 97 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,103 +15,152 @@ ms.author: anujmaurya
15
15
16
16
**Applies to:**:heavy_check_mark: Linux virtual machines
17
17
18
-
Customers can now upgrade from Ubuntu Server (16.04 or higher) to Ubuntu Pro on your existing Azure Virtual Machines without redeployment or downtime. One of the major use cases includes conversion of Ubuntu 18.04 LTS going EOL to Ubuntu Pro. [Canonical announced that the Ubuntu 18.04 LTS (Bionic Beaver) OS images end-of-life (EOL)....](https://ubuntu.com/18-04/azure) Canonical no longer provides technical support, software updates, or security patches for this version. Customers need to upgrade to Ubuntu Pro to continue to be on Ubuntu 18.04 LTS.
19
-
20
-
## What's Ubuntu Pro
21
-
Ubuntu Pro is a cross-cloud OS, optimized for Azure, and security maintained for 10 years. The secure use of open-source software allows teams to utilize the latest technologies while meeting internal governance and compliance requirements. Ubuntu Pro 18.04 LTS, remains fully compatible with Ubuntu Server 18.04 LTS, but adds more security enabled by default, including compliance and management tools in a form suitable for small to large-scale Linux operations. Ubuntu Pro 18.04 LTS is fully supported until April 2028. Ubuntu Pro also comes with security patching for all Ubuntu packages due to Extended Security Maintenance (ESM) for Infrastructure and Applications and optional 24/7 phone and ticket support.
22
-
23
-
Customers using Ubuntu Server 18.04, for example, can upgrade to Ubuntu Pro and continue to receive security patches from Canonical until 2028. Customers can upgrade to Ubuntu Pro via Azure CLI.
24
-
25
-
## Why developers and devops choose Ubuntu Pro for Azure
26
-
* Access to security updates for 23,000+ packages including Apache Kafka, NGINX, MongoDB, Redis and PostgreSQL, integrated into normal system tools (for example Azure Update Manager, apt)
27
-
* Security hardening and audit tools (CIS) to establish a security baseline across your systems (and help you meet the Azure Linux Security Baseline policy)
18
+
Customers can now upgrade from Ubuntu Server (16.04 or higher) to Ubuntu Pro on your existing Azure
19
+
Virtual Machines without redeployment or downtime. One of the major use cases includes conversion of
20
+
Ubuntu 18.04 LTS going EOL to Ubuntu Pro.
21
+
[Canonical announced that the Ubuntu 18.04 LTS (Bionic Beaver) OS images end-of-life (EOL)](https://ubuntu.com/18-04/azure).
22
+
Canonical no longer provides technical support, software updates, or security patches for this
23
+
version. Customers need to upgrade to Ubuntu Pro to continue to be on Ubuntu 18.04 LTS.
24
+
25
+
## What is Ubuntu Pro?
26
+
27
+
Ubuntu Pro is a cross-cloud OS, optimized for Azure, and security maintained for 10 years. The
28
+
secure use of open-source software allows teams to utilize the latest technologies while meeting
29
+
internal governance and compliance requirements. Ubuntu Pro 18.04 LTS, remains fully compatible with
30
+
Ubuntu Server 18.04 LTS, but adds more security enabled by default, including compliance and
31
+
management tools in a form suitable for small to large-scale Linux operations. Ubuntu Pro 18.04 LTS
32
+
is fully supported until April 2028. Ubuntu Pro also comes with security patching for all Ubuntu
33
+
packages due to Extended Security Maintenance (ESM) for Infrastructure and Applications and optional
34
+
24/7 phone and ticket support.
35
+
36
+
Customers using Ubuntu Server 18.04, for example, can upgrade to Ubuntu Pro and continue to receive
37
+
security patches from Canonical until 2028. Customers can upgrade to Ubuntu Pro via Azure CLI.
38
+
39
+
## Why developers and devops choose Ubuntu Pro for Azure
40
+
41
+
* Access to security updates for 23,000+ packages including Apache Kafka, NGINX, MongoDB, Redis and
42
+
PostgreSQL, integrated into normal system tools (for example Azure Update Manager, apt)
43
+
* Security hardening and audit tools (CIS) to establish a security baseline across your systems (and
44
+
help you meet the Azure Linux Security Baseline policy)
28
45
* FIPS 140-2 certified modules
29
-
* Common Criteria (CC) EAL2 provisioning packages
30
-
* Kernel Live patch: kernel patches delivered immediately, without the need to reboot
31
-
* Optimized performance: optimized kernel, with improved boot speed, outstanding runtime performance and advanced device support
32
-
* 10-year security maintenance: Ubuntu Pro 18.04 LTS provides security maintenance until April 2028
33
-
* Production ready: Ubuntu is the leading Linux in the public cloud with > 50% of Linux workloads
34
-
* Developer friendly: Ubuntu is the \#1 Linux for developers offering the latest libraries and tools to innovate with the latest technologies
35
-
* Non-stop security: Canonical publishes images frequently, ensuring security is present from the moment an instance launches
36
-
* Portability: Ubuntu is available in all regions with content mirrors to reduce the need to go across regions or out to the Internet for updates
37
-
* Consistent experience across platforms: from edge to multicloud, Ubuntu provides the same experience regardless of the platform. It ensures consistency of your CI/CD pipelines and management mechanisms.
38
-
39
-
**This document presents the direction to upgrade from an Ubuntu Server (16.04 or higher) image to Ubuntu Pro with zero downtime for upgrade by executing the following steps in your VMs:**
40
-
41
-
1. Converting to Ubuntu Pro license
42
-
43
-
2. Validating the license
46
+
* Common Criteria (CC) EAL2 provisioning packages
47
+
* Kernel Live patch: kernel patches delivered immediately, without the need to reboot
* 10-year security maintenance: Ubuntu Pro 18.04 LTS provides security maintenance until April 2028
51
+
* Production ready: Ubuntu is the leading Linux in the public cloud with > 50% of Linux workloads
52
+
* Developer friendly: Ubuntu is the \#1 Linux for developers offering the latest libraries and tools
53
+
to innovate with the latest technologies
54
+
* Non-stop security: Canonical publishes images frequently, ensuring security is present from the
55
+
moment an instance launches
56
+
* Portability: Ubuntu is available in all regions with content mirrors to reduce the need to go
57
+
across regions or out to the Internet for updates
58
+
* Consistent experience across platforms: from edge to multicloud, Ubuntu provides the same
59
+
experience regardless of the platform. It ensures consistency of your CI/CD pipelines and
60
+
management mechanisms.
61
+
62
+
> [!NOTE]
63
+
> This document presents the direction to upgrade from an Ubuntu Server (16.04 or higher) image to
64
+
> Ubuntu Pro with zero downtime for upgrade by executing the following steps in your VMs:
65
+
>
66
+
> 1. Converting to Ubuntu Pro license
67
+
> 2. Validating the license
68
+
>
69
+
> Converting to UBUNTU_PRO is an irreversible process. You can't even downgrade a VM by running
70
+
> detach. Open a support ticket for any exceptions.
71
+
72
+
## Convert to Ubuntu Pro using the Azure CLI
44
73
45
-
>[!NOTE]
46
-
> Converting to UBUNTU_PRO is an irreversible process. You can't even downgrade a VM by running detach. Open a support ticket for any exceptions.
47
-
48
-
## Convert to Ubuntu Pro using the Azure CLI
49
74
```azurecli-interactive
50
75
# The following will enable Ubuntu Pro on a virtual machine
51
-
az vm update -g myResourceGroup -n myVmName --license-type UBUNTU_PRO
76
+
az vm update -g myResourceGroup -n myVmName --license-type UBUNTU_PRO
52
77
```
53
78
54
-
```In-VM commands
79
+
```In-VM commands
55
80
# The next step is to execute two in-VM commands
56
-
sudo apt install ubuntu-advantage-tools
57
-
sudo pro auto-attach
81
+
sudo apt install ubuntu-advantage-tools
82
+
sudo pro auto-attach
58
83
```
59
-
(Note that "sudo apt install ubuntu-advantage-tools" is only necessary if "pro --version" is lower than 28)
60
84
61
-
## Validate the license
85
+
(Note that "sudo apt install ubuntu-advantage-tools" is only necessary if "pro --version" is lower than 28)
86
+
87
+
## Validate the license
88
+
62
89
Expected output:
63
90
64
91

65
92
66
93
## Create an Ubuntu Pro VM using the Azure CLI
94
+
67
95
You can also create a new VM using the Ubuntu Server images and apply Ubuntu Pro at create time.
68
96
69
97
For example:
70
98
71
99
```azurecli-interactive
72
100
# The following will enable Ubuntu Pro on a virtual machine
73
-
az vm update -g myResourceGroup -n myVmName --license-type UBUNTU_PRO
101
+
az vm update -g myResourceGroup -n myVmName --license-type UBUNTU_PRO
74
102
```
75
103
76
104
```In-VM commands
77
105
# The next step is to execute two in-VM commands
78
-
sudo apt install ubuntu-advantage-tools
79
-
sudo pro auto-attach
106
+
sudo apt install ubuntu-advantage-tools
107
+
sudo pro auto-attach
80
108
```
81
109
82
110
>[!NOTE]
83
111
> For systems with advantage tools version 28 or higher installed the system will perform a pro attach during a reboot.
84
112
85
113
## Check licensing model using the Azure CLI
114
+
86
115
You can use the az vm get-instance-view command to check the status. Look for a licenseType field in the response. If the licenseType field exists and the value is UBUNTU_PRO, your virtual machine has Ubuntu Pro enabled.
87
116
88
117
```Azure CLI
89
-
az vm get-instance-view -g MyResourceGroup -n MyVm
118
+
az vm get-instance-view -g MyResourceGroup -n MyVm
90
119
```
91
120
92
121
## Check the licensing model of an Ubuntu Pro enabled VM using Azure Instance Metadata Service
122
+
93
123
From within the virtual machine itself, you can query the attested metadata in Azure Instance Metadata Service to determine the virtual machine's licenseType value. A licenseType value of UBUNTU_PRO indicates that your virtual machine has Ubuntu Pro enabled. [Learn more about attested metadata](../../instance-metadata-service.md).
94
124
95
125
## Billing
96
-
You are charged for Ubuntu Pro as part of the Preview. Visit the [pricing calculator](https://azure.microsoft.com/pricing/calculator/) for more details on Ubuntu Pro pricing. To cancel the Pro subscription during the preview period, open a support ticket through the Azure portal.
126
+
127
+
You are charged for Ubuntu Pro as part of the Preview. Visit the
128
+
[pricing calculator](https://azure.microsoft.com/pricing/calculator/) for more details on Ubuntu Pro
129
+
pricing. To cancel the Pro subscription during the preview period, open a support ticket through the
130
+
Azure portal.
97
131
98
132
## Frequently Asked Questions
99
133
100
-
#### I launched an Ubuntu Pro VM. Do I need to configure it or enable something else?
101
-
With the availability of outbound internet access, Ubuntu Pro automatically enables premium features such as Extended Security Maintenance for [Main and Universe repositories](https://help.ubuntu.com/community/Repositories) and [live patch](https://ubuntu.com/security/livepatch/docs). Should any specific hardening be required (for example CIS), check the using 'usg' to [harden your servers](https://ubuntu.com/tutorials/comply-with-cis-or-disa-stig-on-ubuntu#1-overview) tutorial. Should you require FIPS, check enabling FIPS tutorials.
134
+
### What are the next step after launching an Ubuntu Pro VM?
135
+
136
+
With the availability of outbound internet access, Ubuntu Pro automatically enables premium features
137
+
such as Extended Security Maintenance for
138
+
[Main and Universe repositories](https://help.ubuntu.com/community/Repositories) and
139
+
[live patch](https://ubuntu.com/security/livepatch/docs). Should any specific hardening be required
140
+
(for example CIS), check the using 'usg' to
141
+
[harden your servers](https://ubuntu.com/tutorials/comply-with-cis-or-disa-stig-on-ubuntu#1-overview)
142
+
tutorial. Should you require FIPS, check enabling FIPS tutorials.
102
143
103
-
For more information about networking requirements for making sure Pro enablement process works (such as egress traffic, endpoints and ports) [check this documentation](https://canonical-ubuntu-pro-client.readthedocs-hosted.com/en/latest/references/network_requirements.html).
144
+
For more information about networking requirements for making sure Pro enablement process works
145
+
(such as egress traffic, endpoints and ports)
146
+
[check this documentation](https://canonical-ubuntu-pro-client.readthedocs-hosted.com/en/latest/references/network_requirements.html).
147
+
148
+
### Does shutting down the machine stop billing?
104
149
105
-
#### If I shut down the machine, does the billing continue?
106
150
If you launch Ubuntu Pro from Azure Marketplace you pay as you go, so, if you don’t have any machine running, you won’t pay anything additional.
107
151
108
-
#### Can I get volume discounts?
152
+
### Are there volume discounts?
153
+
109
154
Yes. Contact your Microsoft sales representative.
110
155
111
-
#### Are Reserved Instances available?
156
+
### Are Reserved Instances available?
157
+
112
158
Yes
113
159
114
-
#### If the customer doesn't do the auto attach will they still get attached to pro on reboot?
115
-
If the customer doesn't perform the auto attach, they still get the Pro attached upon reboot. However, this applies only if they have v28 of the Pro client.
160
+
### If the customer doesn't do the auto attach will they still get attached to pro on reboot?
161
+
162
+
If the customer doesn't perform the auto attach, they still get the Pro attached upon reboot.
163
+
However, this applies only if they have v28 of the Pro client.
164
+
116
165
* For Jammy and Focal, this process works as expected.
117
166
* For Bionic and Xenial this process doesn't work due to the older versions of the Pro client installed.
0 commit comments