creating SUSE-MicroOS

112 views
Skip to first unread message

Mohammad Yasir

unread,
Oct 27, 2022, 5:25:48 PM10/27/22
to kiwi
Creating SUSE-MicroOS with kiwi-ng

downloaded all the file listed https://build.opensuse.org/package/show/SUSE:SLE-15-SP3:Update:Products:MicroOS51/SUSE-MicroOS
sles15:~/kiwi/reference/susu-image-micro # ls -l
total 60
-rw-r--r-- 1 root root  6633 Sep 21 09:40 SUSE-MicroOS.changes
-rw-r--r-- 1 root root 21387 Sep 27 10:27 SUSE-MicroOS.kiwi
-rw-r--r-- 1 root root   102 Sep 21 09:49 _constraints
-rw-r--r-- 1 root root   408 Sep 21 09:47 _multibuild
drwxr-xr-x 2 root root  4096 Sep 27 09:58 backup
-rw-r--r-- 1 root root  8169 Sep 21 09:38 config.sh
-rw-r--r-- 1 root root  1438 Sep 21 09:46 editbootinstall_pine64.sh
-rw-r--r-- 1 root root  1319 Sep 21 09:42 editbootinstall_rpi.sh
sles15:~/kiwi/reference/susu-image-micro #

Running the kiwi command as below but getting error, please assist me


sles15:~/kiwi/reference/susu-image-micro # kiwi-ng system build --description=/root/kiwi/reference/susu-image-micro  --target-dir=/tmp
[ INFO    ]: 17:24:44 | Reading runtime config file: '/etc/kiwi.yml'
[ INFO    ]: 17:24:44 | Loading XML description
[ INFO    ]: 17:24:44 | Support for XML markup available
[ ERROR   ]: 17:24:44 | KiwiConfigFileFormatNotSupported: Configuration file could not be parsed. In case your configuration file is XML it most likely contains a syntax error. For other formats the Python anymarkup module is required.
sles15:~/kiwi/reference/susu-image-micro #

Marcus Schäfer

unread,
Oct 28, 2022, 3:33:38 AM10/28/22
to kiwi-...@googlegroups.com
Hi,

> Creating SUSE-MicroOS with kiwi-ng
>
> downloaded all the file
> listed https://build.opensuse.org/package/show/SUSE:SLE-15-SP3:Update:P
> roducts:MicroOS51/SUSE-MicroOS

I fetched it via:

osc co SUSE:SLE-15-SP3:Update:Products:MicroOS51/SUSE-MicroOS

> sles15:~/kiwi/reference/susu-image-micro # kiwi-ng system build
> --description=/root/kiwi/reference/susu-image-micro --target-dir=/tmp

You need to specify at least one target profile e.g:

--profile x86

See the <profiles> section in SUSE-MicroOS.kiwi

> [ INFO ]: 17:24:44 | Reading runtime config file: '/etc/kiwi.yml'
> [ INFO ]: 17:24:44 | Loading XML description
> [ INFO ]: 17:24:44 | Support for XML markup available
> [ ERROR ]: 17:24:44 | KiwiConfigFileFormatNotSupported: Configuration
> file could not be parsed. In case your configuration file is XML it
> most likely contains a syntax error. For other formats the Python
> anymarkup module is required.

This exception is raised if something is broken with the SUSE-MicroOS.kiwi
input file. You said you copied it ? how ? maybe an encoding issue.
SUSE-MicroOS.kiwi is actually an XML type file, so you can check
if it is valid XML with the following command:

xmllint --noout --nonet SUSE-MicroOS.kiwi

In my case the command just returned, which means all good.
So I cannot reproduce this error so far


Once you get over this issue you might also realize the repo settings
are configured as:

<repository type="rpm-md" >
<source path='obsrepositories:/'/>
</repository>

This means this image uses the repos from the buildservice project
configuration and does not define repos such that you can build
the image outside of obs. To make this work you need to look at
the repo configuration in the obs project:

SUSE:SLE-15-SP3:Update:Products:MicroOS51

and add the repos to the SUSE-MicroOS.kiwi file. Depending on
what repos are used you might hit the issue that they are not
available outside obs. If you reach this state let's discuss
further options.

I also would like to mention that the SUSE-MicroOS image
description is not maintained by myself. I'm happy to help with
build issues but for further assistance regarding SUSE-MicroOS
itself it would be good to approach the MicroOS team at SUSE

Hope this helps to unblock you

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

Mohammad Yasir

unread,
Nov 8, 2022, 12:33:07 PM11/8/22
to kiwi
hi Marcus,

Thanks for the response.

could you please help with the files as we facing if issues while coping , how can we copy these, do we have git repo reference of these files.

Mohammad Yasir

unread,
Nov 11, 2022, 9:53:20 AM11/11/22
to kiwi
HI Marcus, 

validated that KIWI file is valid and added profile in command but getting following error , can you please further assist on this


sles15:~/sles_micro_file #
sles15:~/sles_micro_file #
sles15:~/sles_micro_file # xmllint --noout --nonet SUSE-MicroOS.kiwi
sles15:~/sles_micro_file #
sles15:~/sles_micro_file #
sles15:~/sles_micro_file # kiwi-ng --profile=x86 system build --description=/root/sles_micro_file  --target-dir=/tmp
[ INFO    ]: 09:50:15 | Reading runtime config file: '/etc/kiwi.yml'
[ INFO    ]: 09:50:15 | Loading XML description
[ INFO    ]: 09:50:15 | Support for XML markup available
[ INFO    ]: 09:50:16 | RelaxNG validation failed. See jing report:
[ INFO    ]: 09:50:16 | --> jing: stderr: (no output on stderr), stdout: /var/tmp/kiwi_xslt-eyzyqyd1:128:333: error: value of attribute "devicepersistency" is invalid; must be equal to "by-label" or "by-uuid"
/var/tmp/kiwi_xslt-eyzyqyd1:150:363: error: value of attribute "devicepersistency" is invalid; must be equal to "by-label" or "by-uuid"
/var/tmp/kiwi_xslt-eyzyqyd1:172:339: error: value of attribute "devicepersistency" is invalid; must be equal to "by-label" or "by-uuid"

[ ERROR   ]: 09:50:16 | KiwiDescriptionInvalid: Failed to validate schema and/or schematron rules. Use --debug for more details

Mohammad Yasir

unread,
Nov 11, 2022, 10:06:43 AM11/11/22
to kiwi
Hi Marcus,


After doing some changes getting following error as you mentioned in above mail , could you please assist on this to proceed 

sles15:~/sles_micro_file # kiwi-ng --profile=x86 system build --description=/root/sles_micro_file  --target-dir=/tmp
[ INFO    ]: 10:05:05 | Reading runtime config file: '/etc/kiwi.yml'
[ INFO    ]: 10:05:05 | Loading XML description
[ INFO    ]: 10:05:05 | Support for XML markup available
[ INFO    ]: 10:05:06 | --> loaded /root/sles_micro_file/SUSE-MicroOS.kiwi
[ INFO    ]: 10:05:06 | --> Selected build type: oem
[ INFO    ]: 10:05:06 | --> Selected profiles: x86,bootloader
[ INFO    ]: 10:05:06 | Preparing new root system
[ INFO    ]: 10:05:06 | Setup root directory: /tmp/build/image-root
[ INFO    ]: 10:05:06 | Setting up repository obsrepositories:/
[ INFO    ]: 10:05:06 | --> Type: rpm-md
[ ERROR   ]: 10:05:06 | KiwiUriStyleUnknown: Only the buildservice can use the obsrepositories schema
[ INFO    ]: 10:05:06 | Cleaning up SystemPrepare instance

Mohammad Yasir

unread,
Nov 11, 2022, 11:05:44 AM11/11/22
to kiwi

can you help here or redirect to some alais who knows it 

which source path URL to use here for SUSE 

<repository type="rpm-md" >
<source path='obsrepositories:/'/>
</repository>

Srinidhi B

unread,
Nov 11, 2022, 11:22:40 AM11/11/22
to kiwi-...@googlegroups.com
Hi,

On Fri, 2022-11-11 at 08:05 -0800, Mohammad Yasir wrote:

can you help here or redirect to some alais who knows it 

which source path URL to use here for SUSE 


As the error suggests:

[ ERROR   ]: 10:05:06 | KiwiUriStyleUnknown: Only the buildservice can use the obsrepositories schema

If you are building the KIWI profile manually or, in other words, you are not building the KIWI profile in a Build Service instance, then you need to replace the "obsrepositories:/" entry with the URL of the individual repositories you want to include.

<repository type="rpm-md" >
<source path='obsrepositories:/'/>
</repository>

I have not used MicroOS but a quick search on the openSUSE Wiki resulted in the following page that contains the list of repositories used in MicroOS:


Add each of these repositories in it's own <repository type="rpm-md">...</repository> entry and try building again.

Hope this helps,
Srinidhi.

Mohammad Yasir

unread,
Nov 22, 2022, 4:00:49 PM11/22/22
to kiwi
Thanks Srinidhi, it worked but now facing new error


[ INFO    ]: 14:47:17 | --> collection: microos-defaults
[ INFO    ]: 14:47:17 | --> collection: microos-hardware
[ INFO    ]: Processing: [########################################] 100%
[ ERROR   ]: 14:47:35 | KiwiInstallPhaseFailed: System package installation failed: warning: Found bdb_ro Packages database while attempting ndb backend: using bdb_ro backend.
warning: Found bdb_ro Packages database while attempting ndb backend: using bdb_ro backend.
warning: Found bdb_ro Packages database while attempting ndb backend: using bdb_ro backend.
Package 'grub2-branding-SLE' not found.
No provider of 'SUSE-MicroOS-release' found.
No provider of 'pattern:microos-defaults' found.
No provider of 'pattern:microos-hardware' found.
No provider of 'systemd-presets-branding-SMO' found.

[ INFO    ]: 14:47:35 | Cleaning up SystemPrepare instance

Need assistance.

Srinidhi B

unread,
Nov 23, 2022, 1:29:49 AM11/23/22
to kiwi-...@googlegroups.com
Hi,

On Tue, 2022-11-22 at 13:00 -0800, Mohammad Yasir wrote:
Thanks Srinidhi, it worked but now facing new error


Glad it worked!

<snip/>

Package 'grub2-branding-SLE' not found.
No provider of 'SUSE-MicroOS-release' found.
No provider of 'pattern:microos-defaults' found.
No provider of 'pattern:microos-hardware' found.
No provider of 'systemd-presets-branding-SMO' found.


You need to add repositories of microOS to your project's path if you are using "obsrepositories:/" or individual <repository> element inside your KIWI file. 

If you are building in a private OBS instance with individual "<repository>" elements in the KIWI file, please make sure that you are using the correct project and repository name in your "obs://<project>/<repository>" value.

Hope this helps!

Regards,
Srinidhi.

Mohammad Yasir

unread,
Nov 30, 2022, 11:56:40 AM11/30/22
to kiwi
HI Srinidhi,

Tried to use different repo urls here  in kiwi file, but did't worked. can you suggest a correct repo url or file. 

  <repository type="rpm-md">
           <source path="https://durjpd.artifactory.cec.lab.emc.com/ui/native/common-suse-rpm/Updates/SUSE-MicroOS/5.2/x86_64/update" />
   </repository>


quick help on this is appreciated . 

thanks

Srinidhi B

unread,
Dec 1, 2022, 3:03:02 AM12/1/22
to kiwi-...@googlegroups.com
Hi,

On Wed, 2022-11-30 at 08:56 -0800, Mohammad Yasir wrote:
HI Srinidhi,

Tried to use different repo urls here  in kiwi file, but did't worked. can you suggest a correct repo url or file. 


I had already provided the Wiki page containing the repository links in my previous replies:


Regards,
Srinidhi.

Mohammad Yasir

unread,
Dec 1, 2022, 7:52:43 AM12/1/22
to kiwi-...@googlegroups.com
Hi Srinidhi, 


These repository are not working, tried all of these.

--
You received this message because you are subscribed to a topic in the Google Groups "kiwi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kiwi-images/j5Ebfwed2kc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kiwi-images...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kiwi-images/fd8c0c7d02d10651c3ee417ee42d850a81039f65.camel%40microfocus.com.

Srinidhi B

unread,
Dec 1, 2022, 10:48:31 AM12/1/22
to kiwi-...@googlegroups.com
Hi,

Which version of MicroOS are you building against? 

I checked the update repository mentioned in the Wiki page and it is indeed empty with only the update-test-* packages in it.

If you are okay to build against MicroOS 5.3, then the following repository seems to have the packages you are looking for:


Regards,
Srinidhi.

Mohammad Yasir

unread,
Dec 5, 2022, 11:56:03 AM12/5/22
to kiwi
Yes Tried using above URL in repo but getting following error 


[ INFO    ]: 11:55:11 | Setup root directory: /tmp/build/image-root
[ INFO    ]: 11:55:11 | Setting up repository https://download.opensuse.org/repositories/openSUSE:/Leap:/Micro:/5.3/standard/
[ INFO    ]: 11:55:11 | --> Type: rpm-md
[ INFO    ]: 11:55:11 | --> Translated: https://download.opensuse.org/repositories/openSUSE:/Leap:/Micro:/5.3/standard/
[ INFO    ]: 11:55:11 | --> Alias: 298748fb5c5bbdd5a9496eae2f64f493
[ INFO    ]: 11:55:11 | Using package manager backend: zypper
[ INFO    ]: 11:55:11 | Installing bootstrap packages
[ INFO    ]: 11:55:11 | --> collection type: onlyRequired
[ INFO    ]: 11:55:11 | --> package: filesystem
[ INFO    ]: 11:55:11 | --> package: zypper
[ INFO    ]: Processing: [########################################] 100%
[ ERROR   ]: 11:55:13 | KiwiBootStrapPhaseFailed: Bootstrap package installation failed: No provider of 'zypper' found.
No provider of 'filesystem' found.

[ INFO    ]: 11:55:13 | Cleaning up SystemPrepare instance

Mohammad Yasir

unread,
Dec 20, 2022, 11:06:23 AM12/20/22
to kiwi
Hi, 

any solution on this ? 

Message has been deleted

Mohammad Yasir

unread,
Dec 21, 2022, 5:01:05 PM12/21/22
to kiwi
building sles micro 5.1
still same error with below repo

sles15:~/sles_micro_file # kiwi-ng --profile=x86 system build --description=/root/sles_micro_file  --target-dir=/tmp
[ INFO    ]: 16:59:46 | Reading runtime config file: '/etc/kiwi.yml'
[ INFO    ]: 16:59:46 | Loading XML description
[ INFO    ]: 16:59:46 | Support for XML markup available
[ INFO    ]: 16:59:46 | --> loaded /root/sles_micro_file/SUSE-MicroOS.kiwi
[ INFO    ]: 16:59:46 | --> Selected build type: oem
[ INFO    ]: 16:59:46 | --> Selected profiles: x86,bootloader
[ INFO    ]: 16:59:46 | Preparing new root system
[ INFO    ]: 16:59:46 | Setup root directory: /tmp/build/image-root
[ INFO    ]: 16:59:46 | Setting up repository obs://openSUSE:Leap:15.1/standard
[ INFO    ]: 16:59:46 | --> Type: rpm-md
[ INFO    ]: 16:59:48 | --> Translated: http://download.opensuse.org/distribution/leap/15.1/repo/oss/
[ INFO    ]: 16:59:48 | --> Alias: Leap_15_1
[ INFO    ]: 16:59:48 | Setting up repository https://download.opensuse.org/repositories/openSUSE:/Leap:/Micro:/5.1:/Update/standard/
[ INFO    ]: 16:59:48 | --> Type: rpm-md
[ INFO    ]: 16:59:48 | --> Translated: https://download.opensuse.org/repositories/openSUSE:/Leap:/Micro:/5.1:/Update/standard/
[ INFO    ]: 16:59:48 | --> Alias: Leap_15_1
[ INFO    ]: 16:59:48 | Using package manager backend: zypper
[ INFO    ]: 16:59:48 | Installing bootstrap packages
[ INFO    ]: 16:59:48 | --> collection type: onlyRequired
[ INFO    ]: 16:59:48 | --> package: filesystem
[ INFO    ]: 16:59:48 | --> package: zypper
[ INFO    ]: Processing: [########################################] 100%
[ ERROR   ]: 16:59:50 | KiwiBootStrapPhaseFailed: Bootstrap package installation failed: No provider of 'filesystem' found.

No provider of 'zypper' found.

[ INFO    ]: 16:59:50 | Cleaning up SystemPrepare instance
sles15:~/sles_micro_file #

Reply all
Reply to author
Forward
0 new messages