SUSE Manager/use-repositories-for-cloud-and-docker

From MicroFocusInternationalWiki
Revision as of 08:30, 8 December 2015 by Mbrookhuis (Talk | contribs) (Created page with "1 Using SUSE Manager Repositories This short document will describe how to use channels on a client without needing to register the system against SUSE Manager Server. This v...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

1 Using SUSE Manager Repositories This short document will describe how to use channels on a client without needing to register the system against SUSE Manager Server. This very usefull when creating images for OpenStack Cloud or Docker. In this document as an example SLES11 SP4 is used and for the channel design the assumption is that the SLES11SP4 channel is cloned to dev-, tst- and prd-. Replace where needed the names of ISOs, SLES version and channels according to the configuration needed. 1.1 Creating distributions To enable “external” repositories to be used on a client with “zypper” a distribution within SUSE Manager is needed. The following procedure describes how this can be achieved: Open a SSH session to the SUSE Manager server. Create the following directories. If this is already present on the server, skip the next 5 bullets: mkdir -p /srv/dist/isos mkdir -p /srv/dist/mount/sles11sp4 Copy the SLES11 SP4 ISO (SLES-11-SP4-DVD-x86_64-GM-DVD1.iso) to /srv/dist/isos Create the following entry in /etc/fstab /srv/dist/isos/SLES-11-SP4-DVD-x86_64-GM-DVD1.iso /srv/dist/mount/sles11sp4/ iso9660 loop,ro 0 0 Mount the iso: mount -a With the command mount check if the iso is mounted. Start an internet browser and go to the webGUI of SUSE Manager. Login and go to Systems | Autoinstallation | Distributions. Click on "Create new distribution" and enter the following information: Distribution Label: dev-sles11sp4-repos Tree Path: /srv/dist/mount/sles11sp4/ Base Channel: dev-sles11-sp4-pool-x86_64 Installer Generation: SUSE Linux Finish the distribution by clicking on “Create Autoinstallable Distribution” This complete the creation of the distribution. In the next paragraph it will be discussed how this can be used with “zypper”