Since i looked everywhere for this and couldn't find it anywhere i had to figure it out by some very old documentation and bits and pieces from everywhere. I thought i should share it here to contribute to using SLES 12 as a CT instead of the full blown VM.
These steps should be done on a running SLES12 machine that is registered with yast or
SUSEConnect -r <key> -e <e-mail>
These steps should be done on a running SLES12 machine that is registered with yast or
SUSEConnect -r <key> -e <e-mail>
- mkdir /SLES12SP3
- mkdir /SLES12SP3/etc
- cp -r /etc/zypp/ /SLES12SP3/etc/zypp
- zypper --root /SLES12SP3 ref
- zypper --root /SLES12SP3 in -t pattern 'base'
- zypper --root /SLES12SP3 in -t pattern 'Minimal'
- zypper --root /SLES12SP3 in -t pattern 'yast2'
- rm -f /SLES12SP3/etc/mtab
- ln -s /proc/mounts /SLES12SP3/etc/mtab
- cd /SLES12SP3
- tar --numeric-owner -czf ../SLES12SP3.tar.gz .