Share with friends and colleagues on social media

SUSE for SAP 12 SP1 has included the templates for building the KIWI images for SUSE for SAP. If you already have a SUSE KIWI service available you can find the kiwi-template-sap rpm which provides the necessary template. We will be making necessary changes to the template to include cloud-int. The following section will work only for SUSE for SAP 12 SP1 images.

Pre-build Steps

linux-t17x:/home/VMs # rpm -ql kiwi-template-sap
/usr/share/kiwi/image
/usr/share/kiwi/image/SLES4SAP
/usr/share/kiwi/image/SLES4SAP/README
/usr/share/kiwi/image/SLES4SAP/config.sh
/usr/share/kiwi/image/SLES4SAP/config.xml
/usr/share/kiwi/image/SLES4SAP/root
/usr/share/kiwi/image/SLES4SAP/root/etc
/usr/share/kiwi/image/SLES4SAP/root/etc/motd
/usr/share/kiwi/image/SLES4SAP/root/etc/ssh
/usr/share/kiwi/image/SLES4SAP/root/etc/ssh/sshd_config
/usr/share/kiwi/image/SLES4SAP/root/etc/sudoers
/usr/share/kiwi/image/SLES4SAP/root/etc/sysconfig
/usr/share/kiwi/image/SLES4SAP/root/etc/sysconfig/network
/usr/share/kiwi/image/SLES4SAP/root/etc/sysconfig/network/ifcfg-lan0
/usr/share/kiwi/image/SLES4SAP/root/etc/udev
/usr/share/kiwi/image/SLES4SAP/root/etc/udev/rules.d
/usr/share/kiwi/image/SLES4SAP/root/etc/udev/rules.d/70-persistent-net.rules
/usr/share/kiwi/image/SLES4SAP/root/root
/usr/share/kiwi/image/SLES4SAP/root/root/.vnc
/usr/share/kiwi/image/SLES4SAP/root/root/.vnc/xstartup

Copy the SLES for SAP DVD1 to /tmp.

linux-t17x:~ # cp /home/VMs/iso/SLE-12-SP1-SAP-DVD-x86_64-GM-DVD1.iso /tmp/SLES4SAP.iso

We will modify the template to include cloud-init and enable cloud-init on boot.

linux-t17x:/usr/share/kiwi/image # cp -rf SLES4SAP SLES4SAPcloud
linux-t17x:/usr/share/kiwi/image # cd SLES4SAPcloud

Edit the config.xml to include repos for cloud-init and its dependencies. Your repository section should look like this.

<repository priority="99" type="yast2">
        <source path="iso:///tmp/SLES4SAP.iso"/>
    </repository>
<repository priority="98" type="rpm-md">
        <source path="http://download.opensuse.org/repositories/Cloud:/Tools/SLE_12_SP1/"/>
</repository>
<repository priority="97" type="rpm-md">
        <source path="http://download.opensuse.org/repositories/home:/frispete:/python/SLE_12/"/>
</repository>

Edit the config.xml and add cloud-int rpm.

<package name="yast2-ycp-ui-bindings"/>

<package name="cloud-init"/>

 <!-- end user configuration tools -->

Edit the config.sh to enable the cloud-init service to start on boot.

suseImportBuildKey
#======================================
# SUSE Cloud configuration
#--------------------------------------
suseInsertService boot.device-mapper
suseInsertService docker
suseInsertService cloud-init-local
suseInsertService cloud-init
suseInsertService cloud-config
suseInsertService cloud-final
suseInsertService haveged
suseInsertService sshd
suseRemoveService boot.efivars
suseRemoveService boot.lvm
suseRemoveService boot.md
suseRemoveService boot.multipath
suseRemoveService kbd
suseRemoveService acpid


echo 'server 0.pool.ntp.org' >> /etc/ntp.conf

Build Steps

Now go to a directory where you have lot of space and start building.

linux-t17x:/home/VMs # kiwi -p SLES4SAPcloud --root fsrootcloud
Oct-08 11:03:58 <1> : Specified relative path for target directory; target is /home/VMs/fsrootcloud
Oct-08 11:03:58 <1> : Description provides no MD5 hash, check
Oct-08 11:03:58 <1> : Reading image description [Prepare]...
Oct-08 11:03:58 <1> : Using profile(s):
Oct-08 11:03:58 <1> : --> vmxFlavour                                                                                                                                              done
Oct-08 11:03:58 <1> : Setting up package manager: zypper                                                                                                                          done
Oct-08 11:03:58 <1> : Setting up source channel:
Oct-08 11:03:58 <1> : --> iso:///tmp/SLES4SAP.iso
Oct-08 11:03:58 <1> : Setting up source channel:
Oct-08 11:03:58 <1> : --> http://download.opensuse.org/repositories/Cloud:/Tools/SLE_12_SP1/
Oct-08 11:03:58 <1> : Setting up source channel:
Oct-08 11:03:58 <1> : --> http://download.opensuse.org/repositories/home:/frispete:/python/SLE_12/
Oct-08 11:03:58 <1> : Set root log: /home/VMs/fsrootcloud.19211.screenrc.log...                                                                                                   done
Oct-08 11:03:58 <1> : Creating default template files for new root system                                                                                                         done
Oct-08 11:03:58 <1> : Importing build keys...                                                                                                                                     done
Oct-08 11:03:58 <1> : Adding bootstrap zypper service: tmp_kiwimount-SLES4SAP.iso                                                                                                 done
Oct-08 11:03:58 <1> : --> Set priority to: 99                                                                                                                                     done
Oct-08 11:03:59 <1> : Adding bootstrap zypper service: http:__download.opensuse.org_repositories_home:_frispete:_python_SLE_12                                                    done
Oct-08 11:03:59 <1> : --> Set priority to: 97                                                                                                                                     done
Oct-08 11:03:59 <1> : Adding bootstrap zypper service: http:__download.opensuse.org_repositories_Cloud:_Tools_SLE_12_SP1                                                          done
Oct-08 11:03:59 <1> : --> Set priority to: 98                                                                                                                                     done
Oct-08 11:03:59 <1> : Initializing image system on: /home/VMs/fsrootcloud                                                                                                         done
Oct-08 11:04:19 <1> : Mounting required file systems                                                                                                                              done
Oct-08 11:04:19 <1> : Mounting local channel: tmp_kiwimount-SLES4SAP.iso
Oct-08 11:04:19 <1> : --> Status: read-only mounted                                                                                                                               done
Oct-08 11:04:19 <1> : Updating chroot zypper service: http:__download.opensuse.org_repositories_Cloud:_Tools_SLE_12_SP1                                                           done
Oct-08 11:04:19 <1> : --> Set priority to: 98                                                                                                                                     done
Oct-08 11:04:19 <1> : Updating chroot zypper service: tmp_kiwimount-SLES4SAP.iso                                                                                                  done
Oct-08 11:04:19 <1> : --> Set priority to: 99                                                                                                                                     done
Oct-08 11:04:19 <1> : Updating chroot zypper service: http:__download.opensuse.org_repositories_home:_frispete:_python_SLE_12                                                     done
Oct-08 11:04:19 <1> : --> Set priority to: 97                                                                                                                                     done
Oct-08 11:04:19 <1> : Installing image packages...                                                                                                                                done
Oct-08 11:05:38 <1> : Copying user defined files to image tree                                                                                                                    done
Oct-08 11:05:38 <1> : Create .profile environment
Oct-08 11:05:39 <1> : Modifying user: root [root]                                                                                                                                 done
Oct-08 11:05:39 <1> : Setting owner/group permissions root [root]                                                                                                                 done
Oct-08 11:05:39 <1> : Calling image script: config.sh                                                                                                                             done
Oct-08 11:05:39 <1> : Cleanup temporary copy of resolv.conf                                                                                                                       done
Oct-08 11:05:39 <1> : Cleanup temporary copy of hosts                                                                                                                             done
Oct-08 11:05:39 <1> : Cleanup temporary copy of sysconfig/proxy                                                                                                                   done
Oct-08 11:05:39 <1> : Closing session with ecode: 0
Oct-08 11:05:40 <1> : KIWI exited successfully
Oct-08 11:05:40 <1> : Complete logfile at: /home/VMs/fsrootcloud.log

The next process is to build the actual image.

linux-t17x:/home/VMs # kiwi --create fsrootcloud --type vmx -d buildcloud
Oct-08 11:07:50 <1> : Description provides no MD5 hash, check
Oct-08 11:07:50 <1> : Reading image description [Create]...
Oct-08 11:07:50 <1> : Using profile(s):
Oct-08 11:07:50 <1> : --> vmxFlavour                                                                                                                                              done
Oct-08 11:07:51 <1> : Destination: /home/VMs/buildcloud doesn't exist
Oct-08 11:07:51 <1> : Would you like kiwi to create it [yes/no] ? yes
Oct-08 11:07:53 <1> : --> Creating directory: /home/VMs/buildcloud                                                                                                                done
Oct-08 11:07:53 <1> : Image update:
Oct-08 11:07:53 <1> : --> Install/Update: kernel-default
Oct-08 11:07:53 <1> : --> Remove: xen
Oct-08 11:07:53 <1> : Description provides no MD5 hash, check
Oct-08 11:07:53 <1> : Reading image description [Upgrade]...
Oct-08 11:07:53 <1> : Using profile(s):
Oct-08 11:07:53 <1> : --> vmxFlavour                                                                                                                                              done
Oct-08 11:07:53 <1> : Setting up package manager: zypper                                                                                                                          done
Oct-08 11:07:53 <1> : Setting up source channel:
Oct-08 11:07:53 <1> : --> iso:///tmp/SLES4SAP.iso
Oct-08 11:07:53 <1> : Setting up source channel:
Oct-08 11:07:53 <1> : --> http://download.opensuse.org/repositories/Cloud:/Tools/SLE_12_SP1/
Oct-08 11:07:53 <1> : Setting up source channel:
Oct-08 11:07:53 <1> : --> http://download.opensuse.org/repositories/home:/frispete:/python/SLE_12/
Oct-08 11:07:53 <1> : Set root log: fsrootcloud.23465.screenrc.log...                                                                                                             done
Oct-08 11:07:53 <1> : Mounting required file systems                                                                                                                              done
Oct-08 11:07:53 <1> : Mounting local channel: tmp_kiwimount-SLES4SAP.iso
Oct-08 11:07:53 <1> : --> Status: read-only mounted                                                                                                                               done
Oct-08 11:07:53 <1> : Updating chroot zypper service: http:__download.opensuse.org_repositories_Cloud:_Tools_SLE_12_SP1                                                           done
Oct-08 11:07:53 <1> : --> Set priority to: 98                                                                                                                                     done
Oct-08 11:07:53 <1> : Updating chroot zypper service: http:__download.opensuse.org_repositories_home:_frispete:_python_SLE_12                                                     done
Oct-08 11:07:53 <1> : --> Set priority to: 97                                                                                                                                     done
Oct-08 11:07:53 <1> : Updating chroot zypper service: tmp_kiwimount-SLES4SAP.iso                                                                                                  done
Oct-08 11:07:53 <1> : --> Set priority to: 99                                                                                                                                     done
Oct-08 11:07:53 <1> : Checking for package install/remove requests...                                                                                                             done
Oct-08 11:07:54 <1> : Updating .profile environment                                                                                                                               done
Oct-08 11:07:54 <1> : Creating unpacked image tree meta data                                                                                                                      done
Oct-08 11:07:58 <1> : Reading contents of bootincluded packages/archives
Oct-08 11:07:58 <2> : --> package gfxboot-branding-SLE not installed
Oct-08 11:07:58 <2> : --> package grub2-branding-SLE not installed
Oct-08 11:07:58 <2> : --> package plymouth-branding-SLE not installed
Oct-08 11:07:58 <1> : Checking for tools in bootincluded contents to keep
Oct-08 11:07:58 <1> : --> no tools to keep
Oct-08 11:07:58 <1> : Image requires 2781M, got 61440M                                                                                                                            done
Oct-08 11:07:58 <1> : Suggested Image size: 2781M                                                                                                                                 done
Oct-08 11:07:58 <1> : --> Creating VMX boot image: vmxboot/suse-SLES12...
Oct-08 11:07:58 <1> : Description provides no MD5 hash, check
Oct-08 11:07:58 <1> : --> Prepare boot image (initrd)...
Oct-08 11:07:59 <1> : Updating image attribute: displayname: SLE-12-SAP                                                                                                           done
Oct-08 11:07:59 <1> : Boot including package(s) [bootstrap]:
Oct-08 11:07:59 <1> : --> gfxboot-branding-SLE
Oct-08 11:07:59 <1> : --> grub2-branding-SLE
Oct-08 11:07:59 <1> : --> plymouth-branding-SLE
Oct-08 11:07:59 <1> : Boot included package(s) marked for deletion:
Oct-08 11:07:59 <1> : --> gfxboot-branding-SLE
Oct-08 11:07:59 <1> : Updating Type section
Oct-08 11:07:59 <1> : --> filesystem: btrfs                                                                                                                                       done
Oct-08 11:07:59 <1> : --> kernelcmdline: console=ttyS0,115200n8 multipath=off net.ifnames=0 NON_PERSISTENT_DEVICE_NAMES=1                                                         done
Oct-08 11:07:59 <1> : --> firmware: bios                                                                                                                                          done
Oct-08 11:07:59 <1> : --> bootloader: grub2                                                                                                                                       done
Oct-08 11:07:59 <1> : --> boottimeout: 3                                                                                                                                          done
Oct-08 11:07:59 <1> : --> installprovidefailsafe: true                                                                                                                            done
Oct-08 11:07:59 <1> : --> btrfs_root_is_snapshot: false                                                                                                                           done
Oct-08 11:07:59 <1> : Updating SystemDisk section
Oct-08 11:07:59 <1> : --> Volume group name: itdoesnotmatter
Oct-08 11:07:59 <1> : --> Volume var/tmp: with 20 MB[default] free
Oct-08 11:07:59 <1> : --> Volume tmp: with 20 MB[default] free
Oct-08 11:07:59 <1> : --> Volume srv: with 20 MB[default] free
Oct-08 11:07:59 <1> : --> Volume opt: with 20 MB[default] free
Oct-08 11:07:59 <1> : --> Volume home: with 20 MB[default] free
Oct-08 11:07:59 <1> : --> Volume var/spool: with 20 MB[default] free
Oct-08 11:07:59 <1> : --> Volume var/opt: with 20 MB[default] free
Oct-08 11:07:59 <1> : --> Volume var/log: with 20 MB[default] free
Oct-08 11:07:59 <1> : --> Volume var/lib/pgsql: with 20 MB[default] free
Oct-08 11:07:59 <1> : --> Volume var/lib/named: with 20 MB[default] free
Oct-08 11:07:59 <1> : --> Volume var/lib/mailman: with 20 MB[default] free
Oct-08 11:07:59 <1> : --> Volume var/crash: with 20 MB[default] free
Oct-08 11:07:59 <1> : --> Volume usr/local: with 20 MB[default] free
Oct-08 11:07:59 <1> : Using boot profile(s):
Oct-08 11:07:59 <1> : --> default std                                                                                                                                             done
Oct-08 11:07:59 <1> : Using bootsplash theme: SLE                                                                                                                                 done
Oct-08 11:07:59 <1> : Using bootloader theme: SLE                                                                                                                                 done
Oct-08 11:07:59 <1> : Setting up package manager: zypper                                                                                                                          done
Oct-08 11:07:59 <1> : Setting up source channel:
Oct-08 11:07:59 <1> : --> iso:///tmp/SLES4SAP.iso
Oct-08 11:07:59 <1> : Setting up source channel:
Oct-08 11:07:59 <1> : --> http://download.opensuse.org/repositories/Cloud:/Tools/SLE_12_SP1/
Oct-08 11:07:59 <1> : Setting up source channel:
Oct-08 11:07:59 <1> : --> http://download.opensuse.org/repositories/home:/frispete:/python/SLE_12/
Oct-08 11:07:59 <1> : Creating default template files for new root system                                                                                                         done
Oct-08 11:07:59 <1> : Importing build keys...                                                                                                                                     done
Oct-08 11:07:59 <1> : Updating bootstrap zypper service: tmp_kiwimount-SLES4SAP.iso                                                                                               done
Oct-08 11:07:59 <1> : --> Set priority to: 99                                                                                                                                     done
Oct-08 11:07:59 <1> : Updating bootstrap zypper service: http:__download.opensuse.org_repositories_home:_frispete:_python_SLE_12                                                  done
Oct-08 11:07:59 <1> : --> Set priority to: 97                                                                                                                                     done
Oct-08 11:07:59 <1> : Updating bootstrap zypper service: http:__download.opensuse.org_repositories_Cloud:_Tools_SLE_12_SP1                                                        done
Oct-08 11:07:59 <1> : --> Set priority to: 98                                                                                                                                     done
Oct-08 11:07:59 <1> : Initializing image system on: /home/VMs/buildcloud/vmx-vmxFlavour/boot-VMX.PGmIBI/kiwi-VMXboot-23465                                                        done
Oct-08 11:08:23 <1> : Mounting required file systems                                                                                                                              done
Oct-08 11:08:23 <1> : Mounting local channel: tmp_kiwimount-SLES4SAP.iso
Oct-08 11:08:23 <1> : --> Status: read-only mounted                                                                                                                               done
Oct-08 11:08:23 <1> : Updating chroot zypper service: http:__download.opensuse.org_repositories_Cloud:_Tools_SLE_12_SP1                                                           done
Oct-08 11:08:23 <1> : --> Set priority to: 98                                                                                                                                     done
Oct-08 11:08:23 <1> : Updating chroot zypper service: tmp_kiwimount-SLES4SAP.iso                                                                                                  done
Oct-08 11:08:23 <1> : --> Set priority to: 99                                                                                                                                     done
Oct-08 11:08:23 <1> : Updating chroot zypper service: http:__download.opensuse.org_repositories_home:_frispete:_python_SLE_12                                                     done
Oct-08 11:08:23 <1> : --> Set priority to: 97                                                                                                                                     done
Oct-08 11:08:23 <1> : Installing image packages...                                                                                                                                done
Oct-08 11:08:26 <1> : Copying user defined files to image tree                                                                                                                    done
Oct-08 11:08:28 <1> : Create .profile environment
Oct-08 11:08:28 <1> : Setting up linuxrc...                                                                                                                                       done
Oct-08 11:08:28 <1> : Calling image script: config.sh                                                                                                                             done
Oct-08 11:08:29 <1> : Removing packages marked for deletion:
Oct-08 11:08:29 <1> : --> Mesa
Oct-08 11:08:29 <1> : --> cracklib-dict-full
Oct-08 11:08:29 <1> : --> cyrus-sasl
Oct-08 11:08:29 <1> : --> fillup
Oct-08 11:08:29 <1> : --> gdbm
Oct-08 11:08:29 <1> : --> gfxboot-branding-SLE
Oct-08 11:08:29 <1> : --> info
Oct-08 11:08:29 <1> : --> insserv
Oct-08 11:08:29 <1> : --> iproute2
Oct-08 11:08:29 <1> : --> make
Oct-08 11:08:29 <1> : --> mingetty
Oct-08 11:08:29 <1> : --> pam
Oct-08 11:08:29 <1> : --> pam-modules
Oct-08 11:08:29 <1> : --> perl
Oct-08 11:08:29 <1> : --> perl-Bootloader
Oct-08 11:08:29 <1> : --> permissions
Oct-08 11:08:29 <1> : --> python
Oct-08 11:08:29 <1> : --> python-base
Oct-08 11:08:29 <1> : --> sles-release
Oct-08 11:08:29 <1> : Removing packages...                                                                                                                                        done
Oct-08 11:08:30 <1> : Cleanup temporary copy of resolv.conf                                                                                                                       done
Oct-08 11:08:30 <1> : Cleanup temporary copy of hosts                                                                                                                             done
Oct-08 11:08:30 <1> : Cleanup temporary copy of sysconfig/proxy                                                                                                                   done
Oct-08 11:08:30 <1> : --> Create boot image (initrd)...
Oct-08 11:08:30 <1> : Calling image script: images.sh                                                                                                                             done
Oct-08 11:08:41 <1> : Extracting kernel
Oct-08 11:08:41 <1> : --> Found 3.12.49-11-default                                                                                                                                done
Oct-08 11:08:41 <1> : Creating image MD5 sum...                                                                                                                                   done
Oct-08 11:08:41 <1> : Creating cpio archive...                                                                                                                                    done
Oct-08 11:09:16 <1> : Creating image MD5 sum...                                                                                                                                   done
Oct-08 11:09:16 <1> : Setting up splash screen...
Oct-08 11:09:16 <1> : --> plymouth splash system will be used                                                                                                                     done
Oct-08 11:09:16 <1> : Creating compat splash link...                                                                                                                              done
Oct-08 11:09:17 <1> : --> Creating boot VM disk from: /home/VMs/buildcloud/vmx-vmxFlavour/initrd-vmxboot-suse-SLES12.x86_64-2.7.1.splash.gz...
Oct-08 11:09:17 <1> : Creating volume mount point fsrootcloud/var/lib/pgsql                                                                                                       done
Oct-08 11:09:17 <1> : Creating volume mount point fsrootcloud/var/lib/named                                                                                                       done
Oct-08 11:09:17 <1> : Creating volume mount point fsrootcloud/var/lib/mailman                                                                                                     done
Oct-08 11:09:17 <1> : Set boot partition space to: 239M
Oct-08 11:09:17 <1> : Setup disk image/device
Oct-08 11:09:17 <1> : --> Disk start sector: 2048
Oct-08 11:09:17 <1> : --> Disk alignment: 1024 KBytes
Oct-08 11:09:17 <1> : --> writing partition table
Oct-08 11:09:18 <1> : Create partition IDs meta data...                                                                                                                           done
Oct-08 11:09:18 <1> : Creating btrfs root filesystem                                                                                                                              done
Oct-08 11:09:19 <1> : Creating btrfs pool
Oct-08 11:09:19 <1> : --> Adding subvolume srv                                                                                                                                    done
Oct-08 11:09:19 <1> : --> Adding subvolume home                                                                                                                                   done
Oct-08 11:09:19 <1> : --> Adding subvolume opt                                                                                                                                    done
Oct-08 11:09:19 <1> : --> Adding subvolume tmp                                                                                                                                    done
Oct-08 11:09:19 <1> : --> Adding subvolume var/crash                                                                                                                              done
Oct-08 11:09:19 <1> : --> Adding subvolume var/spool                                                                                                                              done
Oct-08 11:09:19 <1> : --> Adding subvolume usr/local                                                                                                                              done
Oct-08 11:09:19 <1> : --> Adding subvolume var/log                                                                                                                                done
Oct-08 11:09:19 <1> : --> Adding subvolume var/tmp                                                                                                                                done
Oct-08 11:09:19 <1> : --> Adding subvolume var/opt                                                                                                                                done
Oct-08 11:09:19 <1> : --> Adding subvolume var/lib/pgsql                                                                                                                          done
Oct-08 11:09:19 <1> : --> Adding subvolume var/lib/mailman                                                                                                                        done
Oct-08 11:09:19 <1> : --> Adding subvolume var/lib/named                                                                                                                          done
Oct-08 11:09:19 <1> : Setting btrfs default volume to: @
Oct-08 11:09:19 <1> : Copying system image tree on disk                                                                                                                           done
Oct-08 11:09:30 <2> : No free blocks analyzer available for btrfs                                                                                                                 skipped
Oct-08 11:09:30 <1> : Creating ext3 boot filesystem                                                                                                                               done
Oct-08 11:09:30 <1> : Repack initrd with boot flags...                                                                                                                            done
Oct-08 11:10:07 <1> : Creating initial boot structure                                                                                                                             done
Oct-08 11:10:10 <1> : Creating grub2 boot partition map
Oct-08 11:10:10 <1> : --> Using fs-uuid search method
Oct-08 11:10:10 <1> : Importing grub2 stage and theming files                                                                                                                     done
Oct-08 11:10:11 <1> : Creating grub2 core boot image                                                                                                                              done
Oct-08 11:10:11 <1> : Saving disk label boot/mbrid: 0xd418095f...                                                                                                                 done
Oct-08 11:10:11 <1> : Creating grub2 configuration file...                                                                                                                        done
Oct-08 11:10:12 <1> : Creating grub2 device map                                                                                                                                   done
Oct-08 11:10:12 <1> : Installing grub2:
Oct-08 11:10:12 <1> : --> On disk target: /home/VMs/buildcloud/vmx-vmxFlavour/SLE-12-SAP.x86_64-1.0.0.raw
Oct-08 11:10:19 <1> : Saving disk label in MBR: 0xd418095f...                                                                                                                     done
Oct-08 11:10:20 <1> : Find build results at: /home/VMs/buildcloud                                                                                                                 done
Oct-08 11:10:20 <1> : Closing session with ecode: 0
Oct-08 11:10:20 <1> : KIWI exited successfully
Oct-08 11:10:20 <1> : Complete logfile at: fsrootcloud.log

The actual image file will be available in the buildroot directory

linux-t17x:/home/VMs/buildcloud # ls -al
total 1595844
drwxr-xr-x 2 root root        4096 Oct  8 11:10 .
drwxr-xr-x 7 root root         153 Oct  8 11:10 ..
-rw-r--r-- 1 root root    65114534 Oct  8 11:10 initrd-vmxboot-suse-SLES12.x86_64-2.7.1.gz
lrwxrwxrwx 1 root root          65 Oct  8 11:08 initrd-vmxboot-suse-SLES12.x86_64-2.7.1.kernel -> initrd-vmxboot-suse-SLES12.x86_64-2.7.1.kernel.3.12.49-11-default
-rw-r--r-- 1 root root     4963792 Oct  8 11:08 initrd-vmxboot-suse-SLES12.x86_64-2.7.1.kernel.3.12.49-11-default
-rw-r--r-- 1 root root          45 Oct  8 11:08 initrd-vmxboot-suse-SLES12.x86_64-2.7.1.kernel.3.12.49-11-default.md5
-rw-r--r-- 1 root root          46 Oct  8 11:09 initrd-vmxboot-suse-SLES12.x86_64-2.7.1.md5
lrwxrwxrwx 1 root root          42 Oct  8 11:09 initrd-vmxboot-suse-SLES12.x86_64-2.7.1.splash.gz -> initrd-vmxboot-suse-SLES12.x86_64-2.7.1.gz
-rw-r--r-- 1 root root          61 Oct  8 11:07 kiwi.buildinfo
-rw-r--r-- 1 root root      107862 Oct  8 11:07 SLE-12-SAP.x86_64-1.0.0.packages
-rw-r--r-- 1 root root          36 Oct  8 11:09 SLE-12-SAP.x86_64-1.0.0.pids
-rw-r--r-- 1 root root 64424509440 Oct  8 11:10 SLE-12-SAP.x86_64-1.0.0.raw
-rw-r--r-- 1 root root        2125 Oct  8 11:07 SLE-12-SAP.x86_64-1.0.0.verified

You should be able to upload the raw file to OpenStack and use it as a raw image, or if you are more comfortable with qcow2, convert it into a qcow2 image.

linux-t17x:/home/VMs/buildcloud # qemu-img convert -f raw -O qcow2 -c SLE-12-SAP.x86_64-1.0.0.raw SLE-12-SAP.x86_64-1.0.0.qcow2
linux-t17x:/home/VMs/buildcloud # ls -al *.qcow2
-rw-r--r-- 1 root root 629424128 Oct  8 11:29 SLE-12-SAP.x86_64-1.0.0.qcow2
linux-t17x:/home/VMs/buildcloud # qemu-img info SLE-12-SAP.x86_64-1.0.0.raw
image: SLE-12-SAP.x86_64-1.0.0.raw
file format: raw
virtual size: 60G (64424509440 bytes)
disk size: 1.5G
linux-t17x:/home/VMs/buildcloud # qemu-img info SLE-12-SAP.x86_64-1.0.0.qcow2
image: SLE-12-SAP.x86_64-1.0.0.qcow2
file format: qcow2
virtual size: 60G (64424509440 bytes)
disk size: 600M
cluster_size: 65536
Format specific information:
    compat: 1.1
    lazy refcounts: false
    refcount bits: 16
    corrupt: false
Share with friends and colleagues on social media
Tags: , , , ,
Category: SUSE Cloud, SUSE Linux Enterprise Server for SAP Applications, Technical Solutions
This entry was posted Monday, 10 October, 2016 at 12:16 pm
You can follow any responses to this entry via RSS.

Leave a Reply

Your email address will not be published. Required fields are marked *

No comments yet