SUSE Manager/Sync CentOS media

From MicroFocusInternationalWiki
Jump to: navigation, search

SUSE Manager Main Page

Import CentOS media into a SUSE Manager Channel

The goal of this procedure is having a CentOS media as a SUSE Manager channel. This mean that you will find the packages from your CentOS DVD or ISO into a regular SUSE Manager channel.

Minimal CentOS versions for Salt

CentOS added dependency resolving packages to their releases required by Salt. Earlier versions did not have all the needed packages.


For Salt support on CentOS6, CentOS 6.7+ media is required.

For Salt support on CentOS7, CentOS 7.2+ media is required.

Create the channel in SUSE Manager

On the SUSE Manager Web UI:

  • Create the channel in SUSE Manager

Go to "Channels" -> "Manage Software Channels" - > "Create channel" and fill the basic channel details.

  • Modify your activation key to include this new child channel.

Working with the CentOS 6.9 ISO

Note: CentOS 6.9 comes as TWO DVDs and you need BOTH of them

On the CLI of SUSE Manager as root:

  • Copy both(!) ISOs to your SUSE Manager server in /tmp
  • Create a directory for DVD1: (assuming version 6.9, 64bit; adapt accordingly)
   # mkdir -p /srv/www/htdocs/pub/centos-6.9-x86_64-dvd1
  • mount DVD1:
   # mount -o loop /tmp/CentOS-6.9-x86_64-bin-DVD1.iso /srv/www/htdocs/pub/centos-6.9-x86_64-dvd1
  • Create a directory for DVD2:
   # mkdir -p /srv/www/htdocs/pub/centos-6.9-x86_64-dvd2
  • mount DVD2:
   # mount -o loop /tmp/CentOS-6.9-x86_64-bin-DVD2.iso /srv/www/htdocs/pub/centos-6.9-x86_64-dvd2

==> Now you need to merge the two /Packages sub-directories to make it appear as one ==> For this, you need a writable copy of DVD1 to add symlinks to DVD2

  • Copy the first ISO to your SUSE Manager server: (this is needed to make it writable)
    • Create a directory:
   # mkdir -p /srv/www/htdocs/pub/centos-6.9-x86_64-dvd
    • Rsync DVD1 to this directory
   # rsync -a /srv/www/htdocs/pub/centos-6.9-x86_64-dvd1/ /srv/www/htdocs/pub/centos-6.9-x86_64-dvd

(Note the trailing slash behind .../centos-6.9-x86_64-dvd1/ !)

  • Symlink DVD2 into this directory
    # cd /srv/www/htdocs/pub/centos-6.9-x86_64-dvd/Packages
    # ln -s ../../centos-6.9-x86_64-dvd2/Packages/* .

==> now you have all packages from DVD1 and all packages from DVD2 available via /srv/www/htdocs/pub/centos-6.9-x86_64-dvd/Packages

In the SUSE Manager Server UI use

   file:///srv/www/distributions/centos-6.9-x86_64-dvd

as the "Repository URL" and add this repository to the respective channel.


Working with the CentOS 7 ISO

CentOS 7 is a single-DVD distribution

  • Copy the ISO to your SUSE Manager server in /tmp
  • Create a directory: (assuming version 7, 64bit; adapt accordingly)
   # mkdir -p /srv/www/htdocs/pub/centos-7-x86_64-dvd
  • mount the iso:
   # mount -o loop /tmp/CentOS-7-x86_64-DVD-1708.iso /srv/www/htdocs/pub/centos-7-x86_64-dvd


In the SUSE Manager Server UI use

   file:///srv/www/distributions/centos-7-x86_64-dvd

as the "Repository URL" and add this repository to the respective channel.