Building a vagrant box for Leap Micro 5.5. / 6.1 on OBS: No support for vagrant disk format: No module named 'kiwi.storage.subformat.vagrant'
Hi all, I recently sent a SR to add a vagrant box for the Leap Micro 6.0 images. Now I was asked if the same would be possible for 5.5 and the upcoming 6.1.
https://build.opensuse.org/package/show/home:ojkastl_buildservice:branches:o...
https://build.opensuse.org/project/show/home:ojkastl_buildservice:branches:o...
But both fail due to a missing kiwi component (at least that is how I read this).
[ 181s] [ INFO ]: 18:42:44 | Creating vagrant Disk Format [ 181s] [ ERROR ]: 18:42:44 | KiwiDiskFormatSetupError: No support for vagrant disk format: No module named 'kiwi.storage.subformat.vagrant'
I dug throuh the prjconf of the 6.0 project, but could not find anything in this regard. What needs to be added to which project to get this working? I am surprised that 6.0 seems to have this, but 5.5 as well as 6.1 seem to not have it... Thanks in advance! Puzzled, Johannes
Hi,
[ 181s] [ INFO ]: 18:42:44 | Creating vagrant Disk Format [ 181s] [ ERROR ]: 18:42:44 | KiwiDiskFormatSetupError: No support for vagrant disk format: No module named 'kiwi.storage.subformat.vagrant'
Looks like that there is no provider configured. Can you share the <type> section ? Thanks Regards, Marcus -- Public Key available via: https://keybase.io/marcus_schaefer/key.asc keybase search marcus_schaefer
Hi Marcus, On 16.10.24 11:06 Marcus Schäfer wrote:
Hi,
[ 181s] [ INFO ]: 18:42:44 | Creating vagrant Disk Format [ 181s] [ ERROR ]: 18:42:44 | KiwiDiskFormatSetupError: No support for vagrant disk format: No module named 'kiwi.storage.subformat.vagrant'
Looks like that there is no provider configured. Can you share the <type> section ?
I guess you mean the actual x86-vagrant type section? I compared the working and non-working ones and noted some differences, but nothing looks related to vagrant. Failing:
https://build.opensuse.org/projects/home:ojkastl_buildservice:branches:openS...
https://build.opensuse.org/projects/home:ojkastl_buildservice:branches:openS...
Working:
https://build.opensuse.org/projects/home:ojkastl_buildservice:branches:openS...
Kind Regards, Johannes
Hi Johannes,
I guess you mean the actual x86-vagrant type section? I compared the working and non-working ones and noted some differences, but nothing looks related to vagrant.
There is a difference.
Failing:
https://build.opensuse.org/projects/home:ojkastl_buildservice:branches:openS...
This configuration doesn't have a provider setup and therefore fails
https://build.opensuse.org/projects/home:ojkastl_buildservice:branches:openS...
Working:
This configuration has a libvirt provider setup <vagrantconfig provider="libvirt" virtualsize="24"/> and therefore builds. If you add a provider config to the Micro:5.5 it will also build Actually a provider config is required to build a vagrant box. We should enforce this in kiwi such that the build doesn't start if its's missing. The error message you get today is not very helpful. Could you add an issue on the kiwi github so we don't forget ? Thanks Regards, Marcus -- Public Key available via: https://keybase.io/marcus_schaefer/key.asc keybase search marcus_schaefer
On 17.10.24 10:42 Marcus Schäfer wrote:
This configuration has a libvirt provider setup
<vagrantconfig provider="libvirt" virtualsize="24"/>
and therefore builds.
If you add a provider config to the Micro:5.5 it will also build
Damn, I overlooked that. Thanks Marcus! Added to both images now, let's see what happens.
Actually a provider config is required to build a vagrant box. We should enforce this in kiwi such that the build doesn't start if its's missing. The error message you get today is not very helpful.
Could you add an issue on the kiwi github so we don't forget ?
Will do, sure. Kind Regards, Johannes
participants (2)
-
Johannes Kastl
-
Marcus Schäfer