Skip to content

Commit e97c293

Browse files
authored
Merge pull request #201170 from mathapli/master
Adding EUS to NON EUS process
2 parents 78ae1eb + abab1a5 commit e97c293

File tree

1 file changed

+111
-0
lines changed

1 file changed

+111
-0
lines changed

articles/virtual-machines/workloads/redhat/redhat-rhui.md

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,117 @@ At the time of this writing, EUS support has ended for RHEL <= 7.4. See the "Red
8484
* RHEL 7.6 EUS support ends May 31, 2021
8585
* RHEL 7.7 EUS support ends August 30, 2021
8686

87+
### Switch a RHEL VM 7.x to EUS (version-lock to a specific minor version)
88+
Use the following instructions to lock a RHEL 7.x VM to a particular minor release (run as root):
89+
90+
>[!NOTE]
91+
> This only applies for RHEL 7.x versions for which EUS is available. At the time of this writing, this includes RHEL 7.2-7.7. More details are available at the [Red Hat Enterprise Linux Life Cycle](https://access.redhat.com/support/policy/updates/errata) page.
92+
1. Disable non-EUS repos:
93+
```bash
94+
yum --disablerepo='*' remove 'rhui-azure-rhel7'
95+
```
96+
97+
1. Add EUS repos:
98+
```bash
99+
yum --config='https://rhelimage.blob.core.windows.net/repositories/rhui-microsoft-azure-rhel7-eus.config' install 'rhui-azure-rhel7-eus'
100+
```
101+
102+
1. Lock the `releasever` variable (run as root):
103+
```bash
104+
echo $(. /etc/os-release && echo $VERSION_ID) > /etc/yum/vars/releasever
105+
```
106+
107+
>[!NOTE]
108+
> The above instruction will lock the RHEL minor release to the current minor release. Enter a specific minor release if you are looking to upgrade and lock to a later minor release that is not the latest. For example, `echo 7.5 > /etc/yum/vars/releasever` will lock your RHEL version to RHEL 7.5.
109+
1. Update your RHEL VM
110+
```bash
111+
sudo yum update
112+
```
113+
114+
### Switch a RHEL VM 8.x to EUS (version-lock to a specific minor version)
115+
Use the following instructions to lock a RHEL 8.x VM to a particular minor release (run as root):
116+
117+
>[!NOTE]
118+
> This only applies for RHEL 8.x versions for which EUS is available. At the time of this writing, this includes RHEL 8.1-8.2. More details are available at the [Red Hat Enterprise Linux Life Cycle](https://access.redhat.com/support/policy/updates/errata) page.
119+
1. Disable non-EUS repos:
120+
```bash
121+
yum --disablerepo='*' remove 'rhui-azure-rhel8'
122+
```
123+
124+
1. Get the EUS repos config file:
125+
```bash
126+
wget https://rhelimage.blob.core.windows.net/repositories/rhui-microsoft-azure-rhel8-eus.config
127+
```
128+
129+
1. Add EUS repos:
130+
```bash
131+
yum --config=rhui-microsoft-azure-rhel8-eus.config install rhui-azure-rhel8-eus
132+
```
133+
134+
1. Lock the `releasever` variable (run as root):
135+
```bash
136+
echo $(. /etc/os-release && echo $VERSION_ID) > /etc/yum/vars/releasever
137+
```
138+
139+
>[!NOTE]
140+
> The above instruction will lock the RHEL minor release to the current minor release. Enter a specific minor release if you are looking to upgrade and lock to a later minor release that is not the latest. For example, `echo 8.1 > /etc/yum/vars/releasever` will lock your RHEL version to RHEL 8.1.
141+
>[!NOTE]
142+
> If there are permission issues to access the releasever, you can edit the file using 'nano /etc/yum/vars/releaseve' and add the image version details and save ('Ctrl+o' then press enter and then 'Ctrl+x').
143+
1. Update your RHEL VM
144+
```bash
145+
sudo yum update
146+
```
147+
148+
149+
### Switch a RHEL 7.x VM back to non-EUS (remove a version lock)
150+
Run the following as root:
151+
1. Remove the `releasever` file:
152+
```bash
153+
rm /etc/yum/vars/releasever
154+
```
155+
156+
1. Disable EUS repos:
157+
```bash
158+
yum --disablerepo='*' remove 'rhui-azure-rhel7-eus'
159+
```
160+
161+
1. Configure RHEL VM
162+
```bash
163+
yum --config='https://rhelimage.blob.core.windows.net/repositories/rhui-microsoft-azure-rhel7.config' install 'rhui-azure-rhel7'
164+
```
165+
166+
1. Update your RHEL VM
167+
```bash
168+
sudo yum update
169+
```
170+
171+
### Switch a RHEL 8.x VM back to non-EUS (remove a version lock)
172+
Run the following as root:
173+
1. Remove the `releasever` file:
174+
```bash
175+
rm /etc/yum/vars/releasever
176+
```
177+
178+
1. Disable EUS repos:
179+
```bash
180+
yum --disablerepo='*' remove 'rhui-azure-rhel8-eus'
181+
```
182+
183+
1. Get the regular repos config file:
184+
```bash
185+
wget https://rhelimage.blob.core.windows.net/repositories/rhui-microsoft-azure-rhel8.config
186+
```
187+
188+
1. Add non-EUS repos:
189+
```bash
190+
yum --config=rhui-microsoft-azure-rhel8.config install rhui-azure-rhel8
191+
```
192+
193+
1. Update your RHEL VM
194+
```bash
195+
sudo yum update
196+
```
197+
87198
## The IPs for the RHUI content delivery servers
88199

89200
RHUI is available in all regions where RHEL on-demand images are available. It currently includes all public regions listed on the [Azure status dashboard](https://azure.microsoft.com/status/) page, Azure US Government, and Microsoft Azure Germany regions.

0 commit comments

Comments
 (0)