<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dikapediav2.com/wiki/index.php?action=history&amp;feed=atom&amp;title=SUSE_Linux</id>
	<title>SUSE Linux - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dikapediav2.com/wiki/index.php?action=history&amp;feed=atom&amp;title=SUSE_Linux"/>
	<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=SUSE_Linux&amp;action=history"/>
	<updated>2026-04-24T13:21:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://dikapediav2.com/wiki/index.php?title=SUSE_Linux&amp;diff=172&amp;oldid=prev</id>
		<title>Ardika Sulistija: Created page with &quot;====SUSE Public Cloud Infrastructure Update==== ----   SUSE has recently made changes to their Public Cloud Update Infrastructure starting June 1, 2020, which is known to cause issues when trying to reach the SUSE repositories as the repositories were no longer present. SUSE has shifted from IP based restrictions to Instance billing code-based restrictions. Per SUSE&#039;s official documentation [1], the instances must upgrade the package &quot;&lt;b&gt;cloud-regionsrv-client&lt;/b&gt;&quot; to ve...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=SUSE_Linux&amp;diff=172&amp;oldid=prev"/>
		<updated>2024-09-11T14:27:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;====SUSE Public Cloud Infrastructure Update==== ----   SUSE has recently made changes to their Public Cloud Update Infrastructure starting June 1, 2020, which is known to cause issues when trying to reach the SUSE repositories as the repositories were no longer present. SUSE has shifted from IP based restrictions to Instance billing code-based restrictions. Per SUSE&amp;#039;s official documentation [1], the instances must upgrade the package &amp;quot;&amp;lt;b&amp;gt;cloud-regionsrv-client&amp;lt;/b&amp;gt;&amp;quot; to ve...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;====SUSE Public Cloud Infrastructure Update====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SUSE has recently made changes to their Public Cloud Update Infrastructure starting June 1, 2020, which is known to cause issues when trying to reach the SUSE repositories as the repositories were no longer present. SUSE has shifted from IP based restrictions to Instance billing code-based restrictions. Per SUSE&amp;#039;s official documentation [1], the instances must upgrade the package &amp;quot;&amp;lt;b&amp;gt;cloud-regionsrv-client&amp;lt;/b&amp;gt;&amp;quot; to version &amp;lt;b&amp;gt;9.0.0&amp;lt;/b&amp;gt; or greater. Therefore, it requires users to update the required packages manually. For more information about this change in SUSE Update Infrastructure, please refer to documents [1,2]. &lt;br /&gt;
&lt;br /&gt;
[1] Public Cloud Infrastructure Update:&amp;lt;/br&amp;gt;&lt;br /&gt;
https://www.suse.com/support/kb/doc/?id=000019633&lt;br /&gt;
&lt;br /&gt;
[2] SUSE Update Infrastructure Access Through the Data Center:&amp;lt;/br&amp;gt;&lt;br /&gt;
https://www.suse.com/c/suse-update-infrastructure-access-through-the-data-center/&lt;br /&gt;
&lt;br /&gt;
Steps:&lt;br /&gt;
1) Confirm the instance has a billing product code and is not &amp;quot;null&amp;quot;, e.g. &amp;quot;billingProducts”: [“bp-XXXX”]. If an Instance is launched with custom SLES AMI, which is registered before June 2019, such an instance could be more prone to missing “billingProducts” issues: &lt;br /&gt;
 $ curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | grep -i billing&lt;br /&gt;
 &amp;quot;billingProducts&amp;quot; : [ &amp;quot;bp-6ca54005&amp;quot; ],&lt;br /&gt;
&lt;br /&gt;
2) Since the the above command showed a billing code, we were able to proceed to the next steps to update the &amp;quot;cloud-regionsrv-client&amp;quot; package by following SUSE&amp;#039;s documentation [1]&lt;br /&gt;
 # rpm -qa  cloud-regionsrv-client&lt;br /&gt;
 cloud-regionsrv-client-7.0.5-51.1.noarch   &amp;lt;------ (old version)&lt;br /&gt;
 &lt;br /&gt;
 # wget --no-check-certificate https://52.15.49.139/late_instance_offline_update_ec2_x86_64_SLE12.tar.gz&lt;br /&gt;
 &lt;br /&gt;
 # tar -xf  late_instance_offline_update_ec2_x86_64_SLE12.tar.gz&lt;br /&gt;
 &lt;br /&gt;
 # cd x86_64 &lt;br /&gt;
 &lt;br /&gt;
 # zypper --no-refresh --no-remote --non-interactive in *.rpm&lt;br /&gt;
 &lt;br /&gt;
 # zypper ref&lt;br /&gt;
 &lt;br /&gt;
 # rpm -qa  cloud-regionsrv-client&lt;br /&gt;
 cloud-regionsrv-client-9.0.10-52.33.1.noarch   &amp;lt;------ (new 9.0 version)&lt;br /&gt;
&lt;br /&gt;
3)  Attempt registration:&lt;br /&gt;
 # registercloudguest --force-new&lt;br /&gt;
&lt;br /&gt;
4)  Verify the host is registered: &lt;br /&gt;
 # SUSEConnect -s&lt;br /&gt;
&lt;br /&gt;
5.A) If the registration fails, share the below output for review:&lt;br /&gt;
 # rpm -qa | grep -iE &amp;quot;cloud-regionsrv-client|regionServiceClientConfigEC2|regionServiceClientConfigSAPEC2|ec2metadata|SUSEConnect|libzypp|ruby-common&amp;quot;&lt;br /&gt;
 # registercloudguest --force-new&lt;br /&gt;
 # SUSEConnect -s&lt;br /&gt;
 # cat /var/log/cloudregister&lt;br /&gt;
&lt;br /&gt;
5.B) If you are still getting an error such as &amp;lt;b&amp;gt;There are no enabled repositories defined... Use &amp;#039;zypper addrepo&amp;#039; or &amp;#039;zypper modifyrepo&amp;#039; commands to add or enable repositories&amp;lt;/b&amp;gt;, you can run the following command:&lt;br /&gt;
* There are situations when SuSE systems aren&amp;#039;t able to install new packages or update them because they lost their AWS repository  configuration. This problem can be fixed by issuing the above command as super user (ref: https://www.suse.com/support/kb/doc/?id=000019476 and http://www.scalingbits.com/aws/sap/suse/repos)&lt;br /&gt;
 $ /usr/sbin/registercloudguest --force-new&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Zypper Cheatsheet====&lt;br /&gt;
----&lt;br /&gt;
https://en.opensuse.org/images/1/17/Zypper-cheat-sheet-1.pdf&amp;lt;/br&amp;gt;&lt;br /&gt;
https://en.opensuse.org/images/3/30/Zypper-cheat-sheet-2.pdf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Where are repositories located====&lt;br /&gt;
----&lt;br /&gt;
 $ ls -al /etc/zypp/repos.d&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Add notes: &lt;br /&gt;
[+] SUSE - Basic Networking&lt;br /&gt;
https://documentation.suse.com/sles/15-SP1/html/SLES-all/cha-network.html#sec-network-addresses&lt;br /&gt;
&lt;br /&gt;
[+] openSUSE Documentation - 21.6. Configuring a Network Connection Manually&lt;br /&gt;
https://www.pks.mpg.de/~mueller/docs/suse10.2/html/opensuse-manual_en/manual/sec.basicnet.manconf.html&lt;br /&gt;
&lt;br /&gt;
[+] make ip route and ip rule permanent on SLES15 SP1&lt;br /&gt;
https://forums.suse.com/discussion/comment/58961#Comment_58961&lt;br /&gt;
&lt;br /&gt;
[+] SLE 15 - Configure a static network address while in the Rescue System&lt;br /&gt;
https://www.suse.com/support/kb/doc/?id=000019454&lt;br /&gt;
&lt;br /&gt;
[+] SUSE LINUX – Administration Guide - Chapter 14. Linux in the Network / 14.3. Manual Network Configuration&lt;br /&gt;
https://www.novell.com/documentation/suse91/suselinux-adminguide/html/ch14s03.html#sec:netz.conf.dateien&lt;br /&gt;
&lt;br /&gt;
[+] Configure Static IP on SUSE Linux&lt;br /&gt;
https://sahlitech.com/configure-static-ip-on-suse-linux/&lt;br /&gt;
&lt;br /&gt;
[+] Configure Static Ip using the Terminal&lt;br /&gt;
https://forums.opensuse.org/showthread.php/431523&lt;br /&gt;
&lt;br /&gt;
[+] SUSE LINUX – Administration Guide&lt;br /&gt;
https://www.novell.com/documentation/suse91/suselinux-adminguide/html/ch14s05.html&lt;br /&gt;
&lt;br /&gt;
[+] ip rule&lt;br /&gt;
http://linux-ip.net/html/tools-ip-rule.html&lt;br /&gt;
&lt;br /&gt;
[+] Multi-NIC with cloud-netconfig in EC2 and Azure&lt;br /&gt;
https://suse.com/c/multi-nic-cloud-netconfig-ec2-azure/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Download image====&lt;br /&gt;
----&lt;br /&gt;
https://www.suse.com/download/sles/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====If you boot up sles machine but can&amp;#039;t access  public internet or resolve DNS====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Check if ipv6 is enabled. Run:&lt;br /&gt;
 ip addr show&lt;br /&gt;
&lt;br /&gt;
If you see inet6, that means IPv6 is enabled and may be causing routing issues.&lt;br /&gt;
&lt;br /&gt;
Disable IPv6: https://www.suse.com/support/kb/doc/?id=000016980&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====How to add drivers for Nitro on AWS EC2====&lt;br /&gt;
----&lt;br /&gt;
https://www.suse.com/c/changing-instance-types-in-aws-for-sels-12-sp2-and-sles-12-sp3-based-hvm-instances/&lt;br /&gt;
&lt;br /&gt;
For SLES 12 SP4 and earlier based instances:&lt;br /&gt;
 echo &amp;#039;add_drivers+=&amp;quot; ena ext4 nvme nvme-core virtio virtio_scsi xen-blkfront xen-netfront &amp;quot;&amp;#039; &amp;gt;&amp;gt; /etc/dracut.conf.d/07-aws-type-switch.conf &amp;amp;&amp;amp; mkinitrd&lt;br /&gt;
&lt;br /&gt;
For SLES 12 SP5 and later based instances&lt;br /&gt;
 echo &amp;#039;add_drivers+=&amp;quot; ena ext4 nvme nvme-core xen-blkfront xen-netfront &amp;quot;&amp;#039; &amp;gt;&amp;gt; /etc/dracut.conf.d/07-aws-type-switch.conf &amp;amp;&amp;amp; mkinitrd&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====How to add drivers to initrd file====&lt;br /&gt;
----&lt;br /&gt;
 mkinitrd -A -v -m &amp;quot;$xen_drivers&amp;quot; -k &amp;quot;${KERNEL_NAME}&amp;quot; -i &amp;quot;${INITRAMFS_TMP_NAME}&amp;quot;&lt;br /&gt;
or&lt;br /&gt;
 (obsolete -f)&lt;br /&gt;
 mkinitrd -f -v -m &amp;quot;$xen_drivers&amp;quot; -k &amp;quot;${KERNEL_NAME}&amp;quot; -i &amp;quot;${INITRAMFS_TMP_NAME}&amp;quot;&lt;br /&gt;
or &lt;br /&gt;
 dracut --no-host-only -v --force --force-drivers &amp;#039;xen-scsifront xen-netfront xen-blkfront nvme-core nvme ena&amp;#039; --omit &amp;#039;multipath&amp;#039;  aws-launch-initrd-4.12.14-94.41-default 4.12.14-94.41-default&lt;br /&gt;
&lt;br /&gt;
Exmaple: (FOR SUSE15 SP2)&lt;br /&gt;
 $ mkinitrd -f -v -m &amp;quot;xen-scsifront xen-netfront xen-blkfront nvme_core nvme ena&amp;quot; -k vmlinuz-`uname -r` -i /boot/CloudEndure-Migration-initrd-`uname -r`&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====SLES and Nitro bug &amp;quot;multipath&amp;quot;====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Some SLES version have this bug on Nitro regarding multipath.&lt;br /&gt;
&lt;br /&gt;
Multipath is not supported on EC2. Due to this the LVM does not getting detected as &amp;lt;b&amp;gt;/dev/nvme0n1p1&amp;lt;/b&amp;gt; as the device naming under /dev gets completely changed. However, for whatever reason, it is compatible with Xen platform but not with Nitro Platform. Therefore, some SLES instance boots successfully on xen but fails on nitro as the OS is unable to find PV devices of the VG.&lt;br /&gt;
&lt;br /&gt;
The issue can also occur on systems that do not have LVM on the source (i.e. SLES12 SP5). Upon launching as nitro, the UUID&amp;#039;s end up pointing to device multipath devices (i.e. dm-0) instead of nvme0n1. This is causing the system to see it as multipath devices and thus will fail to boot. &lt;br /&gt;
&lt;br /&gt;
If you boot up SLES on Nitro and the devices become like this:&lt;br /&gt;
 # dmsetup info&lt;br /&gt;
 Name:              nvme.1d0f-766f6c3039623963363664636632653836633639-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001&lt;br /&gt;
 State:             ACTIVE&lt;br /&gt;
 Read Ahead:        1024&lt;br /&gt;
 Tables present:    LIVE&lt;br /&gt;
 Open count:        2&lt;br /&gt;
 Event number:      0&lt;br /&gt;
 Major, minor:      254, 0&lt;br /&gt;
 Number of targets: 1&lt;br /&gt;
 UUID: mpath-nvme.1d0f-766f6c3039623963363664636632653836633639-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001&lt;br /&gt;
&lt;br /&gt;
Run multipath command to confirm:&lt;br /&gt;
 # multipath -ll&lt;br /&gt;
 nvme.1d0f-766f6c3039623963363664636632653836633639-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001 dm-0 NVME,Amazon Elastic Block Store              &lt;br /&gt;
 size=16G features=&amp;#039;0&amp;#039; hwhandler=&amp;#039;0&amp;#039; wp=rw&lt;br /&gt;
 `-+- policy=&amp;#039;service-time 0&amp;#039; prio=1 status=active&lt;br /&gt;
   `- 0:0:1:1 nvme0n1 259:0 active ready running&lt;br /&gt;
&lt;br /&gt;
That means the NVMe local device was identified as multipath device. So you need to add &amp;lt;b&amp;gt;multipath=off&amp;lt;/b&amp;gt; in the grub kernel parameter or remove the multipath module from the initrd file.&lt;br /&gt;
&lt;br /&gt;
Permanent solution: edit /etc/default/grub and add the multipath=off parameter in &amp;quot;GRUB_CMDLINE_LINUX_DEFAULT&amp;quot;. and then rebuilt initrd.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====HOW TO LAUNCH SLES12 SP5 SUCCESSFULLY AS NITRO====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[+] &amp;lt;b&amp;gt;Source&amp;lt;/b&amp;gt;:&lt;br /&gt;
 # uname -r&lt;br /&gt;
 4.12.14-122.173-default&lt;br /&gt;
 &lt;br /&gt;
 # cat /etc/*release&lt;br /&gt;
 NAME=&amp;quot;SLES&amp;quot;&lt;br /&gt;
 VERSION=&amp;quot;12-SP5&amp;quot;&lt;br /&gt;
 VERSION_ID=&amp;quot;12.5&amp;quot;&lt;br /&gt;
 PRETTY_NAME=&amp;quot;SUSE Linux Enterprise Server 12 SP5&amp;quot;&lt;br /&gt;
 ID=&amp;quot;sles&amp;quot;&lt;br /&gt;
 ANSI_COLOR=&amp;quot;0;32&amp;quot;&lt;br /&gt;
 CPE_NAME=&amp;quot;cpe:/o:suse:sles:12:sp5&amp;quot;&lt;br /&gt;
 SUSE Linux Enterprise Server 12 (x86_64)&lt;br /&gt;
 VERSION = 12&lt;br /&gt;
 PATCHLEVEL = 5&lt;br /&gt;
 # This file is deprecated and will be removed in a future service pack or release.&lt;br /&gt;
 # Please check /etc/os-release for details about this release. &lt;br /&gt;
 &lt;br /&gt;
 # lsblk&lt;br /&gt;
 NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT&lt;br /&gt;
 sda      8:0    0   10G  0 disk &lt;br /&gt;
 ├─sda1   8:1    0  1.3G  0 part [SWAP]&lt;br /&gt;
 └─sda2   8:2    0  8.8G  0 part /usr/local&lt;br /&gt;
 sr0     11:0    1  3.8G  0 rom&lt;br /&gt;
 &lt;br /&gt;
 # multipath -ll&lt;br /&gt;
 # lsmod | grep dm_multipath&lt;br /&gt;
 dm_multipath           32768  0&lt;br /&gt;
 dm_mod                155648  1 dm_multipath&lt;br /&gt;
 scsi_mod              249856  9 scsi_dh_emc,sd_mod,scsi_dh_alua,libata,scsi_dh_rdac,sr_mod,dm_multipath,sg,vmw_pvscsi&lt;br /&gt;
 &lt;br /&gt;
 # ls -l /dev/disk/by-uuid/&lt;br /&gt;
 total 0&lt;br /&gt;
 lrwxrwxrwx 1 root root  9 Aug 21 03:42 2019-11-09-00-58-33-00 -&amp;gt; ../../sr0&lt;br /&gt;
 lrwxrwxrwx 1 root root 10 Aug 21 03:42 428bc961-a28f-430b-8768-1fa14768683d -&amp;gt; ../../sda1&lt;br /&gt;
 lrwxrwxrwx 1 root root 10 Aug 21 03:42 e633113f-0bf8-47c1-a8b5-55f880d1a608 -&amp;gt; ../../sda2&lt;br /&gt;
 &lt;br /&gt;
 # lsblk -f&lt;br /&gt;
 NAME   FSTYPE  LABEL                            UUID                                 FSAVAIL FSUSE% MOUNTPOINT&lt;br /&gt;
 sda                                                                                                 &lt;br /&gt;
 ├─sda1 swap                                     428bc961-a28f-430b-8768-1fa14768683d                [SWAP]&lt;br /&gt;
 └─sda2 btrfs                                    e633113f-0bf8-47c1-a8b5-55f880d1a608    2.7G    63% /&lt;br /&gt;
 sr0    iso9660 SLE-12-SP5-Server-DVD-x86_640372 2019-11-09-00-58-33-00          &lt;br /&gt;
&lt;br /&gt;
[+] &amp;lt;b&amp;gt; Steps&amp;lt;/b&amp;gt;&lt;br /&gt;
1) Run commands to register SLES and install cloud-netconfig-ec2 on the source. This package is helpful in case customer decides to use multiple nics later on (see: https://www.suse.com/c/multi-nic-cloud-netconfig-ec2-azure/ ):&lt;br /&gt;
 # SUSEConnect -p sle-module-public-cloud/12/x86_64&lt;br /&gt;
 # zypper install -y cloud-netconfig-ec2&lt;br /&gt;
 &lt;br /&gt;
 Confirm:&lt;br /&gt;
 # rpm -qa | grep cloud-netconfig-ec2&lt;br /&gt;
 cloud-netconfig-ec2-1.7-27.1.noarch&lt;br /&gt;
    &lt;br /&gt;
2) Install MGN agent. &lt;br /&gt;
&lt;br /&gt;
3) Edit launch template to set instance type to Nitro (t3) and enable public IP. &lt;br /&gt;
    If you launch the target as Nitro, it will fail 1/2 as it booted to emergency mode due to nvme device name change (see bug explanation above):&lt;br /&gt;
&lt;br /&gt;
 [   11.681603] Adding 1315836k swap on /dev/mapper/nvme.1d0f-766f6c3035636230323137333833373535353965-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001-part1.  Priority:-1 extents:1 across:1315836k SSFS&lt;br /&gt;
 [   11.799105] systemd-journald[722]: Received request to flush runtime journal from PID 1&lt;br /&gt;
 You are in emergency mode. After logging in, type &amp;quot;journalctl -xb&amp;quot; to view&lt;br /&gt;
&lt;br /&gt;
    So now I&amp;#039;m going to try to run the dracut command, to omit the &amp;quot;multipath&amp;quot; module&lt;br /&gt;
&lt;br /&gt;
4) Run:&lt;br /&gt;
 dracut --no-host-only -v --force --force-drivers &amp;#039;xen-scsifront xen-netfront xen-blkfront nvme-core nvme ena xen-balloon xen-vbd xen-platform-pci xen-vnif xen-scsi&amp;#039; --omit &amp;#039;multipath&amp;#039;  /var/lib/aws-replication-agent/aws-launch-initrd-`uname -r` uname -r&lt;br /&gt;
&lt;br /&gt;
    Wait 10 minutes. &lt;br /&gt;
&lt;br /&gt;
5) Do target launch, it should boot and pass 2/2 successfully:&lt;br /&gt;
 Welcome to SUSE Linux Enterprise Server 12 SP5  (x86_64) - Kernel 4.12.14-122.173-default (ttyS0).&lt;/div&gt;</summary>
		<author><name>Ardika Sulistija</name></author>
	</entry>
</feed>