Difference between revisions of "SUSE Manager/Sync CentOS media"

From MicroFocusInternationalWiki
Jump to: navigation, search
(Created page with "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...")
 
 
Line 21: Line 21:
 
* Modify your activation key to include this new child channel.
 
* Modify your activation key to include this new child channel.
  
== Working with the ISO ==
+
== 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:
 
On the CLI of SUSE Manager as root:
  
Note: This assumes
+
* Copy both(!) ISOs to your SUSE Manager server in /tmp
 
+
* Create a directory for DVD1: (assuming version 6.9, 64bit; adapt accordingly)
* Copy the ISO to your SUSE Manager server in /tmp
+
* Create a directory: (assuming version 6.9, 64bit; adapt accordingly)
+
 
<pre>
 
<pre>
 
   # mkdir -p /srv/www/htdocs/pub/centos-6.9-x86_64-dvd1
 
   # mkdir -p /srv/www/htdocs/pub/centos-6.9-x86_64-dvd1
 
</pre>
 
</pre>
* mount the iso:
+
* mount DVD1:
 
<pre>
 
<pre>
 
   # mount -o loop /tmp/CentOS-6.9-x86_64-bin-DVD1.iso /srv/www/htdocs/pub/centos-6.9-x86_64-dvd1
 
   # mount -o loop /tmp/CentOS-6.9-x86_64-bin-DVD1.iso /srv/www/htdocs/pub/centos-6.9-x86_64-dvd1
 
</pre>
 
</pre>
* If your CentOS distribution is single-DVD (CentOS 7), you can skip to "Start spacewalk-repo-sync" below
+
* Create a directory for DVD2:
 
+
* Copy the second ISO to your SUSE Manager server in /tmp
+
* Create a directory:
+
 
<pre>
 
<pre>
 
   # mkdir -p /srv/www/htdocs/pub/centos-6.9-x86_64-dvd2
 
   # mkdir -p /srv/www/htdocs/pub/centos-6.9-x86_64-dvd2
 
</pre>
 
</pre>
* mount the iso:
+
* mount DVD2:
 
<pre>
 
<pre>
 
   # mount -o loop /tmp/CentOS-6.9-x86_64-bin-DVD2.iso /srv/www/htdocs/pub/centos-6.9-x86_64-dvd2
 
   # mount -o loop /tmp/CentOS-6.9-x86_64-bin-DVD2.iso /srv/www/htdocs/pub/centos-6.9-x86_64-dvd2
 
</pre>
 
</pre>
  
* Copy the first ISO to your SUSE Manager server
+
==> Now you need to merge the two /Packages sub-directories to make it appear as one
  (this is needed to make it writable)
+
==> For this, you need a writable copy of DVD1 to add symlinks to DVD2
* Create a directory:
+
 
 +
* Copy the first ISO to your SUSE Manager server: (this is needed to make it writable)
 +
** Create a directory:
 
<pre>
 
<pre>
 
   # mkdir -p /srv/www/htdocs/pub/centos-6.9-x86_64-dvd
 
   # mkdir -p /srv/www/htdocs/pub/centos-6.9-x86_64-dvd
 
</pre>
 
</pre>
* Rsync DVD1 to this directory
+
** Rsync DVD1 to this directory
 
<pre>
 
<pre>
 
   # rsync -a /srv/www/htdocs/pub/centos-6.9-x86_64-dvd1/ /srv/www/htdocs/pub/centos-6.9-x86_64-dvd
 
   # rsync -a /srv/www/htdocs/pub/centos-6.9-x86_64-dvd1/ /srv/www/htdocs/pub/centos-6.9-x86_64-dvd
 
</pre>
 
</pre>
 
(Note the trailing slash behind .../centos-6.9-x86_64-dvd1/ !)
 
(Note the trailing slash behind .../centos-6.9-x86_64-dvd1/ !)
 
 
* Symlink DVD2 into this directory
 
* Symlink DVD2 into this directory
 
<pre>
 
<pre>
Line 68: Line 66:
 
==> 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
 
==> 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)
 +
<pre>
 +
  # mkdir -p /srv/www/htdocs/pub/centos-7-x86_64-dvd
 +
</pre>
 +
* mount the iso:
 +
<pre>
 +
  # mount -o loop /tmp/CentOS-7-x86_64-DVD-1708.iso /srv/www/htdocs/pub/centos-7-x86_64-dvd
 +
</pre>
 +
 +
 +
In the SUSE Manager Server UI use
 +
 +
    file:///srv/www/distributions/centos-7-x86_64-dvd
  
* After the end of the synchronization, you will be able to manipulate this channel as a regular SUSE Manager channel.
+
as the "Repository URL" and add this repository to the respective channel.

Latest revision as of 09:04, 3 May 2018

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.