<p>There are several ways to upgrade a SLES12 SP2 to SLES SP3.<br />
OTC has not prepared the way of upgrading via SMT server.<br />
The way to go in OTC is to change SLES repository configuration files to new service pack
and start dist upgrade with zypper command. </p>
<p>This upgrade process is the same for all SLES service pack upgrades.<br />
An official desciption how it is done for SLES-15 can be found at SUSE website: </p>
<p>reference description for SLES-15<br />
<a href="https://www.suse.com/documentation/sles-15/singlehtml/book_sle_upgrade/book_sle_upgrade.html#sec.upgrade-online.zypper-plain">https://www.suse.com/documentation/sles-15/singlehtml/book_sle_upgrade/book_sle_upgrade.html#sec.upgrade-online.zypper-plain</a></p>
<p>We prepared an example how to upgrade a fresh installed vm with OTC public image<br />
Enterprise_SLES12_SP2_latest to service pack SP2.</p>
<ul>
<li>Please create a backup from you vm before start.</li>
<li>Be carefull if you have own repositories configured.
May better to disable them while upgrading the system.</li>
</ul>
<h3>Upgrade SLES12 SP2 to SP3</h3>
<hr />
<p>check os-release VERSION="12-SP2" </p>
<blockquote>
<p><code>sudo cat /etc/os-release</code> </p>
</blockquote>
<p>update vm with last patches </p>
<blockquote>
<p><code>sudo zypper ref</code><br />
<code>sudo zypper up -y</code><br />
<code>sudo zypper patch --updatestack-only</code> </p>
</blockquote>
<p>backup repo configuration </p>
<blockquote>
<p><code>sudo cp -rp /etc/zypp/repos.d/ /etc/zypp/repos.d.SP2.backup</code> </p>
</blockquote>
<p>replace repo config for SP2 with SP3 </p>
<blockquote>
<p><code>cd /etc/zypp/repos.d</code><br />
<code>sudo mv OTC-SLES12SP2-LTSS.repo _OTC-SLES12SP2-LTSS.repo.disabled</code>
<code>sudo sed s/SP2/SP3/g OTC-* -i</code><br />
<code>sudo sh -c 'for repo in $(ls OTC* |grep SP2); do newRepo=$(echo $repo | sed s/SP2/SP3/g); echo mv $repo $newRepo; mv $repo $newRepo; done</code> </p>
</blockquote>
<p>in case of additional configured repos do the same or disable them </p>
<blockquote>
<p><code>sudo zypper refresh -f -s</code> </p>
</blockquote>
<p>simulate upgrade to SP3 </p>
<blockquote>
<p><code>sudo zypper --releasever 12.3 dup -y -D --no-allow-vendor-change</code> </p>
</blockquote>
<p>only continue if there are no errors in simulation </p>
<p>run upgrade to SP3 </p>
<blockquote>
<p><code>sudo zypper --releasever 12.3 dup -y --no-allow-vendor-change</code> </p>
</blockquote>
<p>reboot </p>
<blockquote>
<p><code>sudo reboot</code> </p>
</blockquote>
<p>login to vm again<br />
check os-release VERSION="12-SP3" </p>
<blockquote>
<p><code>sudo cat /etc/os-release</code> </p>
</blockquote>