Upgrading from SLE 12 with the latest service pack (SP) to SLE 15 can be automated, but requires some preparation steps.
To upgrade the SP version on SLE 12 (for example, upgrading from SLE 12, or SLE 12 SP1 or SP2, to SLE 12 SP3 or later) can be fully automated and requires no additional preparation.
SLE 12 SPx clients can be auto-upgraded to SLE 15 with YaST auto-installation. This also applies for other supported products based on SLE 12.
For generally supported SUSE Linux Enterprise upgrade paths, see https://www.suse.com/documentation/sles-15/book_sle_upgrade/data/sec_upgrade-paths_supported.html (SUSE Linux Enterprise Upgrade Guide, Chapter “Supported Upgrade Paths to SLE 15”). It is important that you migrate the client to the latest available SP first. In the case of SLE 12, this is currently SP3 (August 2018).
This procedure will work for traditionally managed systems (system type management).
It is not currently available for systems using Salt (system type salt).
During the procedure, the machine reboots and performs the system upgrade.
The process is controlled by YaST and AutoYaST, not by zypper commands.
Only perform this migration procedure on client systems managed by Uyuni servers. For upgrading the Uyuni server itself, see Chapter 11, Uyuni Server Migration. This is a viable method for major version upgrades such as an upgrade from SUSE Linux Enterprise 12 to 15.
Make sure your Uyuni and all the clients you want to upgrade have installed all available updates, including the Uyuni tools. This is absolutely necessary, otherwise the system upgrade will fail.
The preparation process contains several steps:
Download and save installation media
Create an auto-installation distribution
Create an activation key
Upload an AutoYaST profile
On the Uyuni server, create a local directory for the SLE 15 installation media.
Download an ISO image with the installation sources, and mount the ISO image on your server:
mkdir /mnt/sle15 mount -o loop DVD1.iso /mnt/sle15
Procedure: Create an Auto-Installation Distribution. For all distributions you want to upgrade, create a SLE 15 distribution in Uyuni.
In the Uyuni Web UI, click › › › .
Enter a Distribution Label for your distribution (for example, autumn2018)
Specify the Tree Path, which is the root directory of the SLE 15 installation sources (for example, /mnt/sle15).
For Base Channel, use the update target distribution SLE-Product-SLES15-Pool for x86_64.
Confirm with Create Autoinstallable Distribution.
For more information about Autoinstallation, see Chapter 8, Autoinstallation.
Procedure: Create an Activation Key. In order to switch from the old SLE 12 SP3 base channel to the new SLE 15 channel, you need an activation key.
Go to › › and click Create Key.
Enter a description for your key.
Enter a key or leave it blank to generate an automatic key.
If you want to limit the usage, enter your value in the Usage text field.
Select the SLE-Product-SLES15-Pool for x86_64 base channel.
Decide about Add-On System Types.
If in doubt, see https://www.suse.com/documentation/sles-15/book_quickstarts/data/art_modules.html (SUSE Linux Enterprise Modules & Extensions Quick Start).
Click .
Click the Child Channels tab and select the required channels. Finish with .
Procedure: Upload an AutoYaST Profile. Create an AutoYaST XML file according to Section 12.1.2, “Sample Autoinstallation Script for System Upgrade (SLES 12 SP3 to SLES 15)”. For more information about AutoYaST, see Section 8.1, “Introduction to AutoYaST”.
Go to › › and click Upload Kickstart/Autoyast File.
Paste the XML content in the text area or select the file to upload and click .
Add autoupgrade=1 in the Kernel Options of the Details tab and click .
Switch to the Variable tab.
In the text field registration_key= enter the key from the preparation above.
Click .
After you have successfully finished this process, you are ready to perform the upgrade. For upgrade instruction, see Warning: Synchronizing Target Channels.
Before successfully initializing the product migration, make sure that the migration target channels are completely mirrored.
For the upgrade to SUSE Linux Enterprise 15, at least the SLE-Product-SLES15-Pool base channel with the SLE-Manager-Tools15-Pool child channel for your architecture is required.
The matching update channels such as SLE-Manager-Tools15-Updates and SLE-Product-SLES15-Updates are recommended.
Watch the mirroring progress in /var/log/rhn/reposync/sles15-pool-x86_64.log.
Go to the system via › and click the name of the system. Then click › › › , and choose the AutoYaST XML profile you have uploaded above.
Click .
Next time the machine asks the Uyuni server for jobs, it will receive a reinstallation job which fetches kernel and initrd and writes a new /boot/grub/menu.lst (containing pointers to the new kernel and initrd).
When the machine boots, it will use the Grub configuration and boots the new kernel with its initrd. No PXE boot is required for this process. A shutdown of the machine is initiated as well, effectively 3 minutes after the job was fetched.
<?xml version="1.0"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns"
xmlns:config="http://www.suse.com/1.0/configns">
<general>
$SNIPPET('spacewalk/sles_no_signature_checks')
<mode>
<confirm config:type="boolean">false</confirm>
</mode>
</general>
<add-on>
<add_on_products config:type="list">
<listentry>
<ask_on_error config:type="boolean">true</ask_on_error>
<media_url>http://$redhat_management_server/ks/dist/child/sle15-updates-x86_64/autumn2018</media_url>
<name>SLE15 Updates</name>
<product>SLE15</product>
<product_dir>/</product_dir>
</listentry>
<listentry>
<ask_on_error config:type="boolean">true</ask_on_error>
<media_url>http://$redhat_management_server/ks/dist/child/sle-manager-tools15-pool-x86_64/summer2017</media_url>
<name>SLE15 Manager Tools Pool</name>
<product>SLE15</product>
<product_dir>/</product_dir>
</listentry>
<listentry>
<ask_on_error config:type="boolean">true</ask_on_error>
<media_url>http://$redhat_management_server/ks/dist/child/sle-manager-tools15-updates-x86_64/summer2017</media_url>
<name>SLE15 Manager Tools Updates</name>
<product>SLE15</product>
<product_dir>/</product_dir>
</listentry>
</add_on_products>
</add-on>
<upgrade>
<only_installed_packages config:type="boolean">false</only_installed_packages>
<stop_on_solver_conflict config:type="boolean">true</stop_on_solver_conflict>
</upgrade>
<backup>
<sysconfig config:type="boolean">true</sysconfig>
<modified config:type="boolean">true</modified>
<remove_old config:type="boolean">false</remove_old>
</backup>
<networking>
<keep_install_network config:type="boolean">true</keep_install_network>
<start_immediately config:type="boolean">true</start_immediately>
</networking>
<scripts>
<init-scripts config:type="list">
$SNIPPET('spacewalk/sles_register_script')
</init-scripts>
</scripts>
</profile>Existing SLE 12 clients (SLE) may be upgraded to SP3 with the procedure provided by the Web UI. The same applies for other supported products based on SUSE Linux Enterprise 12.
Before successfully initializing the product migration, you first must make sure that the migration target channels are completely mirrored.
For the upgrade to SLE 12 SP3, at least the SLES12-SP3-Pool
base channel with the SLE-Manager-Tools12-Pool
child channel for your architecture is required.
The matching update channels such as SLE-Manager-Tools12-Updates
and SLES12-SP3-Updates
are recommended.
Direct your browser to the Uyuni Web UI where your client is registered, and login.
On the › page select your client system from the table.
If there are › notification install these updates first to avoid trouble during the migration process.
On the system’s detail page select the › › tab.
From this tab you will see the installed products listed on your client. Select the wanted (if there is more than one), which is SUSE Linux Enterprise Server 12 SP3 .
Then confirm with .
Select › › .
Check the on the system’s details when the migration is done.
If the › , install the update now and then check again.
Finally, consider to schedule a reboot.