Create ISO with OEM build type

316 views
Skip to first unread message

Jake Aldridge

unread,
Jul 19, 2023, 10:20:34 AM7/19/23
to kiwi
Hi,
I have a few questions about creating an ISO image with the OEM build type if anyone is available to help.

To my understanding there are attributes that can be set to have kiwi output an iso image, such as installiso and installstick. When I set these I only get a .raw file. Is this intended or is it possible to change my configuration to get an iso from kiwi with these attributes? Here is the relevant sections of my config.xml:
<type
            image="oem"
            filesystem="ext3"
            kernelcmdline="console=ttyS0"
            firmware="efi"
            overlayroot="true"
            installiso="true"
            installstick="true"
            hybrid="true"
            installboot="install"
            initrd_system="dracut"
            bootpartition="true">
                <bootloader name="grub2" console="serial" timeout="10000"/>
        </type>
Any help is greatly appreciated!

-Jake

Marcus Schäfer

unread,
Jul 20, 2023, 3:34:30 AM7/20/23
to kiwi-...@googlegroups.com
Hi Jake,

> I have a few questions about creating an ISO image with the OEM build
> type if anyone is available to help.

Happy to help. We differentiate ISO image in the two categories:

* live ISO image (image="iso")
* install ISO image(image="oem" installiso="true")

The first is a live system that you can directly boot and work with.
The other is a bootable system for the purpose to install(dump) the image
to a selected target.

From what you wrote you aim for an install ISO, correct ?

> To my understanding there are attributes that can be set to have kiwi
> output an iso image, such as installiso and installstick.

correct

> When I set these I only get a .raw file.

That should not be the case, there shoud also a file with the extension
.install.iso like you can see in the following integration test build:

Build Result: https://build.opensuse.org/package/live_build_log/Virtualization:Appliances:Images:Testing_x86:leap/test-image-disk/images/x86_64

Image Description: https://github.com/OSInside/kiwi/blob/master/build-tests/x86/leap/test-image-disk/appliance.kiwi

> Is this intended or is it possible to
> change my configuration to get an iso from kiwi with these attributes?
> Here is the relevant sections of my config.xml:
> <type
> image="oem"
> filesystem="ext3"
> kernelcmdline="console=ttyS0"
> firmware="efi"
> overlayroot="true"
> installiso="true"
> installstick="true"
> hybrid="true"
> installboot="install"
> initrd_system="dracut"
> bootpartition="true">
> <bootloader name="grub2" console="serial"
> timeout="10000"/>
> </type>

From this type definition I don't see why it should not create
an install ISO for you.

Can you share the build log for your image ?

Best regards,
Marcus
--
Public Key available via: https://keybase.io/marcus_schaefer/key.asc
keybase search marcus_schaefer
-------------------------------------------------------
Marcus Schäfer Brunnenweg 18
Tel: +49 7562 905437 D-88260 Argenbühl
Germany
-------------------------------------------------------
signature.asc

Jake Aldridge

unread,
Jul 21, 2023, 1:06:37 AM7/21/23
to kiwi
Hi Marcus,
Thanks for the information and the quick response. I'm having some trouble attaching the encrypted log because of my company's restrictions. Would it be possible to share with you another way?

Thanks,
Jake 

Jake Aldridge

unread,
Jul 25, 2023, 11:45:36 AM7/25/23
to kiwi
Hi, 
I wanted to follow up on this and see if the kiwi command I am running could be causing any issues? ktree is where my config.xml is located. I also changed my config.xml to be a copy of one of the OEM live image examples I found on the kiwi-ng github repo and I am still seeing a .raw file in the output. 

kiwi-ng --debug --logfile="kiwi_log.txt" system build --description ~/folder/ktree/ --target-dir ~/output/
<preferences>
        <version>1.0.0</version>
        <packagemanager>zypper</packagemanager>
        <locale>en_US</locale>
        <keytable>us</keytable>
        <timezone>UTC</timezone>
        <rpm-excludedocs>true</rpm-excludedocs>
        <rpm-check-signatures>false</rpm-check-signatures>
        <bootsplash-theme>SLE</bootsplash-theme>
        <bootloader-theme>SLE</bootloader-theme>
        <type image="oem" firmware="uefi" kernelcmdline="console=ttyS0" installiso="true" installboot="install" filesystem="ext4">
            <bootloader name="grub2" console="serial" timeout="10"/>
            <oemconfig>
                <oem-unattended>true</oem-unattended>
                <oem-swap>true</oem-swap>
                <oem-swapsize>200</oem-swapsize>
            </oemconfig>
        </type>
   </preferences>

Any advice would be greatly appreciated!
Thanks,
Jake 

Marcus Schäfer

unread,
Jul 25, 2023, 12:33:59 PM7/25/23
to kiwi-...@googlegroups.com
Hi,

> Thanks for the information and the quick response. I'm having some
> trouble attaching the encrypted log because of my company's
> restrictions. Would it be possible to share with you another way?

We can go for a google-meet (or different) meeting and you share
what you can share with me and we go from there ? I'm in the
CEST timezone, maybe we find a spot together

Regards,
signature.asc

Jake Aldridge

unread,
Jul 25, 2023, 1:46:06 PM7/25/23
to kiwi
Hi Marcus, 
That would be great. I am in ET, but am available to meet at most hours of the day. Would 4pm CEST (10am ET) tomorrow work? If so a google meeting would work fine for me. 

Thanks,
Jake 

Marcus Schäfer

unread,
Jul 26, 2023, 3:26:26 AM7/26/23
to kiwi-...@googlegroups.com
Hi Jake,

> That would be great. I am in ET, but am available to meet at most hours
> of the day. Would 4pm CEST (10am ET) tomorrow work? If so a google
> meeting would work fine for me.

yep should work for me, If you send the invite I will be there :)
signature.asc
Message has been deleted

Jake Aldridge

unread,
Jul 26, 2023, 9:09:53 AM7/26/23
to kiwi
Ok great here is the link, let me know if it does not work.

Kiwi Troubleshooting
Wednesday, July 26 · 10:00 – 11:00am
Time zone: America/New_York
Google Meet joining info
Video call link: https://meet.google.com/nyk-bvba-btn

Thanks,
Jake 

Jake Aldridge

unread,
Jul 26, 2023, 10:19:17 AM7/26/23
to kiwi
Hi Marcus,
I know that last meeting invite came last minute. Here is one for the same time tomorrow, let me know if that works for you.

Kiwi Troubleshooting
Thursday, July 27 · 10:00 – 10:45am

Time zone: America/New_York
Google Meet joining info
Video call link: https://meet.google.com/kxx-sxxv-fbi

Thanks,
Jake 

Jake Aldridge

unread,
Aug 2, 2023, 4:40:57 PM8/2/23
to kiwi
Hi Marcus,
Thanks for the help I am seeing the .iso file now. I'm now trying to do a full build with all of the packages needed and I'm running into a new error. I'll put what I think are the relevant parts of config.xml and the kiwi log below. Thanks for any help you can give! 

Config.xml:
<preferences>
        <version>1.0.0</version>
        <packagemanager>zypper</packagemanager>
        <locale>en_US</locale>
        <keytable>us</keytable>
        <timezone>UTC</timezone>
        <rpm-excludedocs>true</rpm-excludedocs>
        <rpm-check-signatures>false</rpm-check-signatures>
        <bootsplash-theme>SLE</bootsplash-theme>
        <bootloader-theme>SLE</bootloader-theme>
        <type image="oem" filesystem="ext3" kernelcmdline="console=ttyS0" firmware="efi" installiso="true" bootloader="grub2"></type>
    </preferences>
<packages type="bootstrap">
        <package name="udev" />
        <package name="filesystem" />
        <package name="glibc-locale" />
        <package name="cracklib-dict-full" />
        <package name="ca-certificates" />
        <package name="ca-certificates-mozilla"/>
        <package name="sles-release" />
        <package name="distribution-release" />
        <package name="createrepo_c" />
    </packages>
<packages type="oem">
    <!--Kiwi specific packages -->
        <package name="dracut-kiwi-live"/>
        <package name="dracut-kiwi-overlay"/>
        <package name="dracut-kiwi-oem-repart"/>
        <package name="dracut-kiwi-oem-dump"/>

        <package name="ImageMagick" />
        <package name="Mesa-libGL1-32bit" />
        <package name="MozillaFirefox" />
        <package name="aaa_base-extras" />
        <package name="acct" />
        <package name="adobe-sourcecodepro-fonts" />
        <package name="aide" />
        <package name="alee-fonts" />
        <package name="alsa-firmware" />
        <package name="alsa-plugins-32bit" />
        <package name="alsa-plugins-pulse" />
        <package name="alsa-plugins" />
        <package name="alsa-utils" />
        <package name="apache2" />
        <package name="apparmor-docs" />
        <package name="apparmor-parser" />
        <package name="apparmor-profiles" />
        <package name="apparmor-utils" />
        <package name="arphic-uming-fonts" />
        <package name="audit-audispd-plugins" />
        <package name="audit" />
        <package name="baekmuk-bitmap-fonts" />
        <package name="baekmuk-ttf-fonts" />
        <package name="bc" />
        <package name="biosdevname" />
        <package name="bzip2" />
        <package name="cdrecord" />
        <package name="colord" />
        <package name="createrepo_c" />
        <package name="cronie" />
        <package name="cryptsetup" />
        <package name="cups-backends" />
        <package name="cups-client" />
        <package name="cups-config" />
        <package name="cups-filters" />
        <package name="cups-pk-helper" />
        <package name="cups" />
        <package name="dejavu-fonts" />
        <package name="dhcp-server" />
        <package name="dmidecode" />
        <package name="docker" />
        <package name="dos2unix" />
        <package name="dosfstools" />
        <package name="dvd+rw-tools" />
        <package name="ed" />
        <package name="efont-unicode-bitmap-fonts" />
        <package name="enscript" />
        <package name="ethtool" />
        <package name="evince-plugin-pdfdocument" />
        <package name="evince" />
        <package name="expect" />
        <package name="gcc" />
        <package name="gdb" />
        <package name="gedit" />
        <package name="ghostscript-fonts-other" />
        <package name="ghostscript-fonts-std" />
        <package name="gimp" />
        <package name="glibc-locale-base-32bit" />
        <package name="gnome-calculator" />
        <package name="gnome-terminal" />
        <package name="google-caladea-fonts" />
        <package name="google-carlito-fonts" />
        <package name="gptfdisk" />
        <package name="gtk3-metatheme-adwaita" />
        <package name="gutenprint" />
        <package name="gv" />
        <package name="gvfs-backends" />
        <package name="gvfs-fuse" />
        <package name="gvfs" />
        <package name="haveged" />
        <package name="hplip-hpijs" />
        <package name="hplip" />
        <package name="icedtea-web" />
        <package name="inotify-tools" />
        <package name="insserv-compat" />
        <package name="intlfonts-arabic-bitmap-fonts" />
        <package name="intlfonts-chinese-big-bitmap-fonts" />
        <package name="intlfonts-chinese-bitmap-fonts" />
        <package name="intlfonts-euro-bitmap-fonts" />
        <package name="intlfonts-japanese-big-bitmap-fonts" />
        <package name="intlfonts-japanese-bitmap-fonts" />
        <package name="ipmitool" />
        <package name="iptables" />
        <package name="iputils" />
        <package name="kdump" />
        <package name="kernel-default-devel" />
        <package name="kernel-firmware-all" />
        <package name="kernel-source" />
        <package name="khmeros-fonts" />
        <package name="libGLU1" />
        <package name="libICE6-32bit" />
        <package name="libICE6" />
        <package name="libSM6-32bit" />
        <package name="libSM6" />
        <package name="libXaw7" />
        <package name="libXext6-32bit" />
        <package name="libXi6-32bit" />
        <package name="libXm4-32bit" />
        <package name="libXm4" />
        <package name="libXrender1-32bit" />
        <package name="libXt6" />
        <package name="libXtst6-32bit" />
        <package name="libXxf86vm1-32bit" />
        <package name="libapparmor1" />
        <package name="libcurl4-32bit" />
        <package name="libcurl4" />
        <package name="libfreeipmi17" />
        <package name="libgcc_s1-32bit" />
        <package name="libglvnd-32bit" />
        <package name="libglvnd-devel" />
        <package name="libicu-suse65_1" />
        <package name="libjpeg62" />
        <package name="libopenssl1_1-32bit" />
        <package name="libpng12-0" />
        <package name="libstdc++6-32bit" />
        <package name="libudev1-32bit" />
        <package name="libusb-1_0-0-32bit" />
        <package name="libwsman3" />
        <package name="libxcb-res0" />
        <package name="libxml2-2-32bit" />
        <package name="libxml2-tools" />
        <package name="libxslt-tools" />
        <package name="lightdm" />
        <package name="lsof" />
        <package name="make" />
        <package name="man" />
        <package name="mlocate" />
        <package name="motif" />
        <package name="mozilla-nss-sysinit" />
        <package name="nautilus" />
        <package name="net-tools-deprecated" />
        <package name="nfs-kernel-server" />
        <package name="nmap" />
        <package name="ntfs-3g" />
        <package name="ntfsprogs" />
        <package name="ntp" />
        <package name="openscap" />
        <package name="paps" />
        <package name="patch" />
        <package name="pciutils" />
        <package name="perl-CGI-Session" />
        <package name="perl-CGI" />
        <package name="perl-DBD-SQLite" />
        <package name="perl-Date-Manip" />
        <package name="perl-File-Copy-Recursive" />
        <package name="perl-File-Find-Rule-Perl" />
        <package name="perl-File-Find-Rule" />
        <package name="perl-File-HomeDir" />
        <package name="perl-File-Path" />
        <package name="perl-File-Remove" />
        <package name="perl-File-Slurp-Tiny" />
        <package name="perl-File-Slurp-Unicode" />
        <package name="perl-File-Slurp" />
        <package name="perl-File-Temp" />
        <package name="perl-File-Which" />
        <package name="perl-File-pushd" />
        <package name="perl-Module-Build" />
        <package name="perl-Module-Install" />
        <package name="perl-Module-ScanDeps" />
        <package name="perl-Net-LibIDN" />
        <package name="perl-Net-Telnet" />
        <package name="perl-NetAddr-IP" />
        <package name="perl-Number-Compare" />
        <package name="perl-Switch" />
        <package name="perl-Term-ReadKey" />
        <package name="perl-Term-UI" />
        <package name="perl-Text-Diff" />
        <package name="perl-Text-Glob" />
        <package name="perl-Text-Iconv" />
        <package name="perl-Text-Unidecode" />
        <package name="perl-Tie-IxHash" />
        <package name="perl-Try-Tiny" />
<package name="perl-XML-LibXSLT" />
        <package name="perl-XML-Parser" />
        <package name="perl-XML-RegExp" />
        <package name="perl-XML-SAX" />
        <package name="perl-XML-Simple" />
        <package name="perl-XML-XPath" />
        <package name="perl-YAML-Tiny" />
        <package name="perl-apparmor" />
        <package name="perl-libwww-perl" />
        <package name="perl-libxml-perl" />
        <package name="plymouth-dracut" />
        <package name="pnm2ppa" />
        <package name="polkit-gnome" />
        <package name="poppler-tools" />
        <package name="postgresql-jdbc" />
        <package name="postgresql-plperl" />
        <package name="postgresql-server" />
        <package name="postgresql" />
        <package name="procmail" />
        <package name="psmisc" />
        <package name="pulseaudio" />
        <package name="python3-gobject-Gdk" />
        <package name="python3-paramiko" />
        <package name="python3-pip" />
        <package name="python3-pyinotify" />
        <package name="python3-pysmbc" />
        <package name="python3-python-dateutil" />
        <package name="python3-pyudev" />
        <package name="python3-rpmfile" />
        <package name="python3-tk" />
        <package name="rabbitmq-server" />
        <package name="rpcbind" />
        <package name="rsync" />
<package name="rsyslog" />
        <package name="screen" />
        <package name="sensors" />
        <package name="sharutils" />
        <package name="sle-module-python3-release" />
        <package name="smartmontools" />
        <package name="socat" />
        <package name="sudo" />
        <package name="syslinux" />
        <package name="syslog-service" />
        <package name="sysstat" />
        <package name="system-config-printer-common" />
        <package name="tcl-32bit" />
        <package name="tcl" />
        <package name="tcsh" />
        <package name="telnet" />
        <package name="tftp" />
        <package name="tk" />
        <package name="tomcat" />
        <package name="traceroute" />
        <package name="tuned" />
        <package name="udftools" />
        <package name="udisks2" />
        <package name="usbutils" />
        <package name="vim-data" />
        <package name="vim" />
        <package name="wget" />
        <package name="wqy-microhei-fonts" />
        <package name="wqy-zenhei-fonts" />
        <package name="wsmancli" />
        <package name="xclock" />
        <package name="xdpyinfo" />
        <package name="xf86-input-evdev" />
        <package name="xf86-input-keyboard" />
        <package name="xf86-input-libinput" />
        <package name="xf86-input-mouse" />
        <package name="xf86-input-wacom" />
        <package name="xfsprogs" />
        <package name="xinput" />
        <package name="xkbutils" />
        <package name="xkill" />
        <package name="xorg-x11-devel" />
        <package name="xorg-x11-driver-video" />
        <package name="xorg-x11-essentials" />
        <package name="xorg-x11-fonts-converted" />
        <package name="xorg-x11-fonts-legacy" />
        <package name="xorg-x11-fonts" />
        <package name="xorg-x11-libs" />
        <package name="xorg-x11-server" />
        <package name="xorg-x11-util-devel" />
        <package name="xorg-x11" />
        <package name="xrandr" />
        <package name="xrefresh" />
        <package name="xvidtune" />
        <package name="xwd" />
        <package name="xwininfo" />
        <package name="yast2-apparmor" />
        <package name="yast2-printer" />
        <package name="zenity" />
        <package name="zip" />
        <package name="libcrypt1-32bit" />
        <package name="libcryptsetup12-hmac-32bit" />
        <package name="libfreebl3-hmac-32bit" />
        <package name="libgcrypt20-hmac-32bit" />
        <package name="libopenssl1_1-hmac-32bit" />
        <package name="libsoftokn3-hmac-32bit" />
        <package name="fipscheck" />
        <package name="openssl" />
        <package name="python3-dicttoxml" />
        <package name="python3-libxml2" />
        <package name="xerces-j2" />
        <package name="x11vnc" />
        <package name="libpulse-mainloop-glib0" />
        <package name="libXcursor1-32bit" />
        <package name="adwaita-icon-theme" />

 Error in Kiwi build log:
[ DEBUG   ]: 19:11:08 | "grub2-install": in paths "/root/output/build/image-root/root/.vscode-server/bin/74f6148eb9ea00507ec113ec51c489d6ffb4b771/bin/remote-cli:/root/output/build/image-root/sbin:/root/output/build/image-root/usr/sbin:/root/output/build/image-root/usr/local/sbin:/root/output/build/image-root/root/bin:/root/output/build/image-root/usr/local/bin:/root/output/build/image-root/usr/bin:/root/output/build/image-root/bin" exists: "False" mode match: not checked
[ DEBUG   ]: 19:11:08 | Initialize gpt disk
[ DEBUG   ]: 19:11:08 | EXEC: [sgdisk --zap-all /dev/loop0]
[ INFO    ]: 19:11:09 | --> creating EFI CSM(legacy bios) partition
[ DEBUG   ]: 19:11:09 | EXEC: [sgdisk -n 1:2048:+2M -c 1:p.legacy /dev/loop0]
[ DEBUG   ]: 19:11:10 | EXEC: [sgdisk -t 1:EF02 /dev/loop0]
[ INFO    ]: 19:11:11 | --> creating EFI partition
[ DEBUG   ]: 19:11:11 | EXEC: [sgdisk -n 2:0:+20M -c 2:p.UEFI /dev/loop0]
[ DEBUG   ]: 19:11:12 | EXEC: [sgdisk -t 2:EF00 /dev/loop0]
[ INFO    ]: 19:11:13 | --> creating root partition [with 0 clone(s)]
[ DEBUG   ]: 19:11:13 | EXEC: [sgdisk -n 3:0:0 -c 3:p.lxroot /dev/loop0]
[ DEBUG   ]: 19:11:14 | EXEC: [sgdisk -t 3:8300 /dev/loop0]
[ DEBUG   ]: 19:11:15 | EXEC: [kpartx -s -a /dev/loop0]
[ INFO    ]: 19:11:15 | Creating EFI(fat16) filesystem on /dev/mapper/loop0p2
[ DEBUG   ]: 19:11:15 | EXEC: [mkdosfs -F16 -I -n EFI /dev/mapper/loop0p2]
[ INFO    ]: 19:11:15 | Creating root(ext3) filesystem on /dev/mapper/loop0p3
[ DEBUG   ]: 19:11:15 | EXEC: [mkfs.ext3 -L ROOT /dev/mapper/loop0p3]
[ DEBUG   ]: 19:11:16 | EXEC: [blkid /dev/mapper/loop0p3 -s PARTUUID -o value]
[ DEBUG   ]: 19:11:16 | EXEC: [blkid /dev/mapper/loop0p3 -s UUID -o value]
[ INFO    ]: 19:11:16 | Creating config.partids in boot system
[ INFO    ]: 19:11:16 | Export modprobe configuration
[ DEBUG   ]: 19:11:16 | EXEC: [rsync -a /root/output/build/image-root/etc/modprobe.d /root/output/build/image-root/etc/]
[ INFO    ]: 19:11:16 | Creating image identifier: 0x2aaf7e3d
[ INFO    ]: 19:11:16 | Creating generic system etc/fstab
[ DEBUG   ]: 19:11:16 | EXEC: [blkid /dev/mapper/loop0p3 -s UUID -o value]
[ DEBUG   ]: 19:11:16 | EXEC: [blkid /dev/mapper/loop0p3 -s TYPE -o value]
[ DEBUG   ]: 19:11:16 | EXEC: [blkid /dev/mapper/loop0p2 -s UUID -o value]
[ DEBUG   ]: 19:11:16 | EXEC: [blkid /dev/mapper/loop0p2 -s TYPE -o value]
[ INFO    ]: 19:11:16 | Creating generic dracut initrd archive
[ DEBUG   ]: 19:11:16 | EXEC: [cp /var/tmp/kiwi_vctb64ee /var/tmp/kiwi_ly65ix62]
[ DEBUG   ]: 19:11:16 | EXEC: [bash -c source /usr/lib/python3.6/site-packages/kiwi/config/functions.sh; baseQuoteFile /var/tmp/kiwi_ly65ix62]
[ DEBUG   ]: 19:11:16 | --> kiwi_align='1048576'
[ DEBUG   ]: 19:11:16 | --> kiwi_boot_timeout=''
[ DEBUG   ]: 19:11:16 | --> kiwi_bootkernel=''
[ DEBUG   ]: 19:11:16 | --> kiwi_bootloader='grub2'
[ DEBUG   ]: 19:11:16 | --> kiwi_bootloader_console=''
[ DEBUG   ]: 19:11:16 | --> kiwi_bootprofile=''
[ DEBUG   ]: 19:11:16 | --> kiwi_btrfs_root_is_snapshot=''
[ DEBUG   ]: 19:11:16 | --> kiwi_cmdline='console=ttyS0'
[ DEBUG   ]: 19:11:16 | --> kiwi_compressed=''
[ DEBUG   ]: 19:11:16 | --> kiwi_delete=''
[ DEBUG   ]: 19:11:16 | --> kiwi_devicepersistency=''
[ DEBUG   ]: 19:11:16 | --> kiwi_displayname='MROS'
[ DEBUG   ]: 19:11:16 | --> kiwi_drivers=''
[ DEBUG   ]: 19:11:16 | --> kiwi_firmware='efi'
[ DEBUG   ]: 19:11:16 | --> kiwi_fsmountoptions=''
[ DEBUG   ]: 19:11:16 | --> kiwi_gpt_hybrid_mbr=''
[ DEBUG   ]: 19:11:16 | --> kiwi_hybridpersistent=''
[ DEBUG   ]: 19:11:16 | --> kiwi_hybridpersistent_filesystem=''
[ DEBUG   ]: 19:11:16 | --> kiwi_iname='MROS'
[ DEBUG   ]: 19:11:16 | --> kiwi_initrd_system='dracut'
[ DEBUG   ]: 19:11:16 | --> kiwi_install_volid='INSTALL'
[ DEBUG   ]: 19:11:16 | --> kiwi_installboot=''
[ DEBUG   ]: 19:11:16 | --> kiwi_iversion='1.0.0'
[ DEBUG   ]: 19:11:16 | --> kiwi_keytable='us'
[ DEBUG   ]: 19:11:16 | --> kiwi_language='en_US'
[ DEBUG   ]: 19:11:16 | --> kiwi_loader_theme='SLE'
[ DEBUG   ]: 19:11:16 | --> kiwi_luks_empty_passphrase='false'
[ DEBUG   ]: 19:11:16 | --> kiwi_profiles=''
[ DEBUG   ]: 19:11:16 | --> kiwi_ramonly=''
[ DEBUG   ]: 19:11:16 | --> kiwi_revision='fd2a11bb25198f66d9b8d27c2ba3c4d948a73949'
[ DEBUG   ]: 19:11:16 | --> kiwi_rootpartuuid='9075006c-a0f6-4692-9f3f-9a3fc911e2cd'
[ DEBUG   ]: 19:11:16 | --> kiwi_sectorsize='512'
[ DEBUG   ]: 19:11:16 | --> kiwi_showlicense=''
[ DEBUG   ]: 19:11:16 | --> kiwi_splash_theme='SLE'
[ DEBUG   ]: 19:11:16 | --> kiwi_startsector='2048'
[ DEBUG   ]: 19:11:16 | --> kiwi_strip_delete=''
[ DEBUG   ]: 19:11:16 | --> kiwi_strip_libs=''
[ DEBUG   ]: 19:11:16 | --> kiwi_strip_tools=''
[ DEBUG   ]: 19:11:16 | --> kiwi_target_blocksize=''
[ DEBUG   ]: 19:11:16 | --> kiwi_target_removable=''
[ DEBUG   ]: 19:11:16 | --> kiwi_timezone='UTC'
[ DEBUG   ]: 19:11:16 | --> kiwi_type='oem'
[ DEBUG   ]: 19:11:16 | --> kiwi_vga=''
[ DEBUG   ]: 19:11:16 | --> kiwi_wwid_wait_timeout=''
[ ERROR   ]: 19:11:16 | KiwiKernelLookupError: No kernel found in /root/output/build/image-root/boot, searched for uImage-5.14.21-150400.24.69-default,Image-5.14.21-150400.24.69-default,zImage-5.14.21-150400.24.69-default,vmlinuz-5.14.21-150400.24.69-default,image-5.14.21-150400.24.69-default,vmlinux-5.14.21-150400.24.69-default
[ INFO    ]: 19:11:16 | Cleaning up FileSystemFat16 instance
[ INFO    ]: 19:11:16 | Cleaning up FileSystemExt3 instance
[ INFO    ]: 19:11:16 | Cleaning up Disk instance
[ DEBUG   ]: 19:11:16 | EXEC: [dmsetup remove /dev/mapper/loop0p1]
[ DEBUG   ]: 19:11:16 | EXEC: [dmsetup remove /dev/mapper/loop0p2]
[ DEBUG   ]: 19:11:16 | EXEC: [dmsetup remove /dev/mapper/loop0p3]
[ DEBUG   ]: 19:11:16 | EXEC: [kpartx -d /dev/loop0]
[ INFO    ]: 19:11:16 | Cleaning up LoopDevice instance
[ DEBUG   ]: 19:11:16 | EXEC: [losetup -d /dev/loop0]
[ INFO    ]: 19:11:16 | Cleaning up BootImageDracut instance
[ INFO    ]: 19:11:16 | Cleaning up BootLoaderConfigGrub2 instance

Marcus Schäfer

unread,
Aug 3, 2023, 3:12:41 AM8/3/23
to kiwi-...@googlegroups.com
Hi Jake,

> Thanks for the help I am seeing the .iso file now. I'm now trying to do
> a full build with all of the packages needed and I'm running into a new
> error. I'll put what I think are the relevant parts of config.xml and
> the kiwi log below. Thanks for any help you can give!
> Config.xml:

yep your image description does not say which kernel you want to
install. The kernel is not pulled in by a dependency. Thus you end
up with an image that has no kernel. For the type of image you
are building a kernel is required, so you see in the log:

> [ ERROR ]: 19:11:16 | KiwiKernelLookupError: No kernel found in
> /root/output/build/image-root/boot

You can fix this by telling kiwi that it should install a kernel
Typically:

<package name="kernel-default"/>

Hope this helps
signature.asc

Jake Aldridge

unread,
Aug 4, 2023, 9:49:58 AM8/4/23
to kiwi
Hi,
Thanks that is an oversight on my part! Updating the package list I was using must have removed that package. 

I had one other topic I wanted to ask you about. When building an OEM image with "installiso=true", should this be bootable on its own in something like VirtualBox? I am having an issue where the installation media / bootable material for the ISO I build cannot be found by the system I am trying to boot it on. I tried loading it in VirtualBox as a test which also was unsuccessful.

Do you have any insight you could provide on this and if there is a different build type I should use? I was originally going to use the ISO type build, but I realized it cannot use the overlayroot feature. 

Thanks,
Jake 

Marcus Schäfer

unread,
Aug 8, 2023, 4:53:04 AM8/8/23
to kiwi-...@googlegroups.com
Hi,

> I had one other topic I wanted to ask you about. When building an OEM
> image with "installiso=true", should this be bootable on its own in
> something like VirtualBox?

yes. I usually use qemu-kvm but VirtualBox or any other VM system will work too

> I am having an issue where the installation
> media / bootable material for the ISO I build cannot be found by the
> system I am trying to boot it on. I tried loading it in VirtualBox as a
> test which also was unsuccessful.

I cannot tell much about VirtualBox but if you would like to give qemu a try
this should work as follows. Example is based on our integration test:

wget https://download.opensuse.org/repositories/Virtualization:/Appliances:/Images:/Testing_x86:/tumbleweed/images/iso/kiwi-test-image-disk.x86_64-1.42.1-Build55.6.install.iso

qemu-img create mydisk 20g
qemu-kvm -cpu Broadwell-v2 -m 4096 -netdev user,id=user0 -device virtio-net-pci,netdev=user0 -serial stdio -cdrom kiwi-test-image-disk.x86_64-1.42.1-Build55.6.install.iso -hda mydisk


==> Select the pre-selected "Install ..." entry

==> Watch the process

==> Login with user "root" pwd "linux"

==> halt the system "halt -p"

Test the install by booting from mydisk

qemu-kvm -cpu Broadwell-v2 -m 4096 -netdev user,id=user0 -device virtio-net-pci,netdev=user0 -serial stdio -hda mydisk

> Do you have any insight you could provide on this and if there is a
> different build type I should use? I was originally going to use the
> ISO type build, but I realized it cannot use the overlayroot feature.

I don't see any mistake you made on building the image if the image
build process has succeeded it should be able to boot. If it doesn't
with the above procedure I need a bit more details on errors or the
image itself if possible
signature.asc

Jake Aldridge

unread,
Aug 8, 2023, 3:15:57 PM8/8/23
to kiwi
Hi Marcus,
Thanks for the response I will give the qemu test a shot. I think I have found a specific error that I'd like your opinion on. Once the build is complete, inside of /build/image-root/boot, the initrd file has a broken link: 

initrd -> initrd-5.14.21-150400.24.74-default (highlighted in red and this file does not exist)

In the build log I see this message: 
[ DEBUG   ]: 16:34:20 | system: Please run "/usr/bin/dracut -f /boot/initrd-5.14.21-150400.24.74-default 5.14.21-150400.24.74-default" as soon as your system is complete.

Does these error messages indicate any obvious problems to you? 

Thanks for all the help,
Jake 

Jake Aldridge

unread,
Aug 9, 2023, 1:32:49 PM8/9/23
to kiwi
To follow up on this, I am able to resolve the initrd issue by running a dracut command manually inside of config.sh. Even with this change, the system goes into emergency mode on boot. In the logs I am seeing the error: 

systemd-gpt-auto-generator[569]: EFI loader parition unknown, exiting. 

Thanks again for any help!

Jake 

Marcus Schäfer

unread,
Aug 11, 2023, 4:57:49 AM8/11/23
to kiwi-...@googlegroups.com
Hi Jake,

> To follow up on this, I am able to resolve the initrd issue by running
> a dracut command manually inside of config.sh. Even with this change,
> the system goes into emergency mode on boot. In the logs I am seeing
> the error:

Hmm, this sounds odd to me and I hardly can do further inspection
without the image at hand. I guess there is no way for you to share
the result .install.iso file somehow ?

> systemd-gpt-auto-generator[569]: EFI loader parition unknown, exiting.
> Thanks again for any help!

I think I have seen this sort of issue when overlayroot was in use

> Thanks for the response I will give the qemu test a shot. I think I
> have found a specific error that I'd like your opinion on. Once the
> build is complete, inside of /build/image-root/boot, the initrd file
> has a broken link:
> initrd -> initrd-5.14.21-150400.24.74-default (highlighted in red
> and this file does not exist)
> In the build log I see this message:
> [ DEBUG ]: 16:34:20 | system: Please run "/usr/bin/dracut -f
> /boot/initrd-5.14.21-150400.24.74-default
> 5.14.21-150400.24.74-default" as soon as your system is complete.
> Does these error messages indicate any obvious problems to you?

This is actually a false positive coming from the package at install
time. Many packages assumes they run on the target but when building an
image they get installed outside of their later target. That dracut
call mentioned is done by kiwi later in the process. You will find it
when browsing through the logs. The initrd link becomes valid if the
system is active or if you mount and chroot into it.

But again something seems to be odd according to your initial
description and I think I can only tell you more if I could put my
hands on the image

Best regards,
signature.asc

Jake Aldridge

unread,
Aug 15, 2023, 9:31:06 AM8/15/23
to kiwi
Hi Marcus,
Unfortunately I cannot find a way to share the file because of company restrictions. I have removed overlayroot from the options. If I send you the config.xml I am using would it be possible for you to build a copy? When I try booting the .install.iso it hangs permanently on:
loading kernel....
loading initrd....
The only issue with sending the config.xml is I cannot provide the repo links with it. Sorry for all of the added difficulty, but if you are able to replicate please let me know and I appreciate the help. 

Thanks,
Jake 

Here is my kiwi-ng and config.xml

kiwi-ng --debug system build --description ~/myimage/tree/ --target-dir ~/output/

<?xml version="1.0" encoding="utf-8"?>
<image schemaversion="7.5" name="myimage">
    <description type="system">
        <author>JA</author>
        <contact>my@email</contact>
        <specification>MyImage</specification>
    </description>
    <preferences>
        <version>1.0.0</version>
        <packagemanager>zypper</packagemanager>
        <locale>en_US</locale>
        <keytable>us</keytable>
        <timezone>UTC</timezone>
        <rpm-excludedocs>true</rpm-excludedocs>
        <rpm-check-signatures>false</rpm-check-signatures>
        <bootsplash-theme>SLE</bootsplash-theme>
        <bootloader-theme>SLE</bootloader-theme>
        <type image="oem"
        filesystem="ext3"
        kernelcmdline="console=ttyS0"
        firmware="efi"
        installiso="true"
        bootpartition="true"
        initrd_system="dracut"
        installboot="install">
        <bootloader name="grub2" console="serial" timeout="10"/>  
        <oemconfig><oem-unattended>true</oem-unattended></oemconfig>
        </type>
    </preferences>

    <users>
        <user password="linux" home="/root" name="root" groups="root"/>
    </users>a
    <packages type="bootstrap">
        <package name="udev" />
        <package name="filesystem" />
        <package name="glibc-locale" />
        <package name="cracklib-dict-full" />
        <package name="ca-certificates" />
        <package name="ca-certificates-mozilla"/>
        <package name="sles-release" />
        <package name="createrepo_c" />
        <package name="dracut" />
    </packages>

    <packages type="image">
    <!--Kiwi specific packages -->
        <package name="dracut-kiwi-live"/>
        <package name="dracut-kiwi-overlay"/>
        <package name="dracut-kiwi-oem-repart"/>
        <package name="dracut-kiwi-oem-dump"/>
        <package name="dracut-kiwi-lib"/>
        <package name="dracut-mkinitrd-deprecated" />
        <package name="grub2"/>
        <package name="grub2-x86_64-efi" arch="x86_64"/>
        <package name="grub2-i386-pc"/>
        <package name="gtk3-metatheme-adwaita" />
        <package name="gutenprint" />
        <package name="gv" />
        <package name="gvfs-backends" />
        <package name="gvfs-fuse" />
        <package name="gvfs" />
        <package name="haveged" />
        <package name="hplip-hpijs" />
        <package name="hplip" />
        <package name="icedtea-web" />
        <package name="inotify-tools" />
        <package name="insserv-compat" />
        <package name="intlfonts-arabic-bitmap-fonts" />
        <package name="intlfonts-chinese-big-bitmap-fonts" />
        <package name="intlfonts-chinese-bitmap-fonts" />
        <package name="intlfonts-euro-bitmap-fonts" />
        <package name="intlfonts-japanese-big-bitmap-fonts" />
        <package name="intlfonts-japanese-bitmap-fonts" />
        <package name="ipmitool" />
        <package name="iptables" />
        <package name="iputils" />
        <package name="kdump" />
        <package name="kernel-default"/>
    </packages>
</image>

Marcus Schäfer

unread,
Aug 17, 2023, 9:44:09 AM8/17/23
to kiwi-...@googlegroups.com
Hi,

> Unfortunately I cannot find a way to share the file because of company
> restrictions.

I see

> I have removed overlayroot from the options. If I send
> you the config.xml I am using would it be possible for you to build a
> copy? When I try booting the .install.iso it hangs permanently on:
> loading kernel....
> loading initrd....

Issues like that are usually caused by the VM not having attached
enough main memory. But as I don't know exactly what you are doing
in your network it's hard to say anything useful :)

I guess another virtual in person meeting would be the best option.

By the way I was invited to sort of a question and answer meeting
between SUSE and GEHC next Monday. The topic sound similar to the
questions you had and iirc you are working for GEHC. Out of curiosity
maybe this is related and I will meet you there

> The only issue with sending the config.xml is I cannot provide the repo
> links with it. Sorry for all of the added difficulty, but if you are
> able to replicate please let me know and I appreciate the help.

I'll add your description and try to build it against an open distribution
that is close to the one you are using

Cheers,
signature.asc

Jake Aldridge

unread,
Aug 18, 2023, 11:37:28 AM8/18/23
to kiwi
Hi Marcus,
Thanks for the info. I was able to get the ISO to boot in the VM after some adjustment to the VM provider I was using. I also added in some additional packages that may have been needed, but I haven't tested to figure out what the root of the issue was completely yet. 

I did just see the email that you were doing a Q&A with GEHC, looking forward to that! 

Thanks,
Jake 

Jake Aldridge

unread,
Sep 8, 2023, 12:45:31 AM9/8/23
to kiwi
Hi Marcus, 
I am running into an error with this OEM install ISO build and I wanted to see if you had any advice. When I burn it to a USB stick and attempt to install I am receiving the error "Failed to mount Install ISO Device". When I make some changes to the grub.cfg to point to the install device directly I am seeing the error "failed to mount install image squashfs filesystem". I know without the ISO itself you are limited in ways to help, but I wanted to check and see if these are common errors you have seen. 

Thanks,
Jake 

Reply all
Reply to author
Forward
0 new messages