Am Montag, 8. Februar 2021, 14:19:13 CET schrieb Mathias Homann:
Am Montag, 8. Februar 2021, 10:03:23 CET schrieb Fabian Vogt:
Hi,
Am Samstag, 6. Februar 2021, 11:04:45 CET schrieb Dan Čermák:
Hi Mathias,
Mathias Homann <Mathias.Homann@opensuse.org> writes:
Hi,
I'm trying to get my hands dirty with building VM and ISO images on OBS... and i'm kinda lost,
my first attempt is in home:lemmy04:astrotoolbox/baseimage, it's supposed to be a generic image that provides the user with a login to a GUI, with Plasma and XFCE being available. The final result will be based on that, and have pretty much all astronomical software installed - stellarium, skymap, xephem, kstars and so on, and should work as VM image or from DVD/USB...
...but right now it won't build at all, and the error message does not mean anything to me - it talks about something like "duplicate configuration" or something? but I'm working with a very generic kiwi template that should "just work"...
I'd suggest to drop by in https://app.element.io/#/room/#kiwi:matrix.org and ask your questions there as the Kiwi devs hang out there and will be able to help you with kiwi specific issues.
Seconded.
Though in this case the error is simple: You have more than one <preferences/> per profile. So either you merge the <preferences/> or make use of profiles.
Now it complains like this:
[ 41s] Conflicting image type setup detected [ 41s] [ 41s] The selected image type 'oem' in the ['Default'] profile [ 41s] selection is not unique. There are the followng type [ 41s] settings which overrides each other: [ 41s] [ 41s] <type firmware="efi" filesystem="ext4" image="oem" kernelcmdline="splash"> [ 41s] <bootloader name="grub2"/> [ 41s] <oemconfig> [ 41s] <oem-resize>false</oem-resize> [ 41s] </oemconfig> [ 41s] </type> [ 41s] [ 41s] <type firmware="efi" filesystem="ext4" initrd_system="dracut" image="oem" installiso="true" kernelcmdline="splash"> [ 41s] <bootloader name="grub2"/> [ 41s] <machine HWversion="4" guestOS="suse" memory="512"> [ 41s] <vmdisk controller="ide" id="0"/> [ 41s] <vmnic driver="e1000" interface="0" mode="bridged"/> [ 41s] </machine> [ 41s] <oemconfig> [ 41s] <oem-device-filter>/dev/ram</oem-device-filter> [ 41s] <oem-multipath-scan>false</oem-multipath-scan> [ 41s] <oem-swap>true</oem-swap> [ 41s] <oem-systemsize>2048</oem-systemsize> [ 41s] </oemconfig> [ 41s] </type> [ 41s] [ 41s] To solve this conflict please move the image type [ 41s] setup into its own profile and select them using [ 41s] the --profile option at call time.
but for the life of me I can't even SEE two "image=oem" sections anywhere in my kiwi file.
Me neither, but in recent versions kiwi treats "vmx" as a subtype of "oem". I suppose the migration code introduces this error. It appears like you misunderstand how "type" actually works though: <packages type="iso"/> and <packages type="oem"/> are not a thing. What you're looking for instead is to use profiles to build different images using a single .kiwi file. Cheers, Fabian
Maybe I am just too bad at reading XML for this.
Any pointers?
Cheers MH