Re: [RFC] remove x86 qemu images

2020-12-07 Thread Alberto Bursi




On 06/12/20 10:06, Paul Spooren wrote:

Hi,

openwrt.git includes an old version of QEMU (0.14 vs 5.1.0 in 
packages.git) only to convert x86 images to vdi and vmdk. Is there 
anyone actively using the vanilla x86 QEMU images from the upstream 
servers or can can we remove that "feature"?


This would allow to remove tools/qemu and create less files per build.

Best,
Paul



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



Could this be worked around by requiring the tool to be installed on the 
host running the image builder or build system?


I mean I understand the need for reproducible builds but does using a 
host tool to convert a disk image to a different format produce 
different results? I don't think it's the case.


If the option is selected and no such tool is installed, the build 
system can error out or something.


The commands are simple, if qemu is installed.

qemu-img -f raw -O vmdk /data/source.img /data/output.vmdk -p

qemu-img -f raw -O vdi /data/source.img /data/output.vdi -p


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [RFC] remove x86 qemu images

2020-12-07 Thread Philip Prindeville


> On Dec 7, 2020, at 1:28 AM, Florian Eckert  wrote:
> 
> Hi,
> 
>> openwrt.git includes an old version of QEMU (0.14 vs 5.1.0 in
>> packages.git) only to convert x86 images to vdi and vmdk. Is there
>> anyone actively using the vanilla x86 QEMU images from the upstream
>> servers or can can we remove that "feature"?
> 
> I am building my own openwrt.
> So I do not use the upstream vmdk image.
> But I use the generated vmdk image by the image builder for a few tests.
> 
> If we remove a feature, then we should offer an alternative.
> Even if it is only a command.
> 
> Regards
> 
> Florian


I have a few cheap (Xeon-D) KVM servers lying around that I wouldn’t mind 
putting into a CI/CD pipeline for testing x86 (and x86_64) builds, but don’t 
have the time.

If someone else wanted to do the integration I would host it (hint, hint).

So potentially, Qemu integration is still useful.  That said, though, I’d 
probably test .img’s and not .vmdk files…

-Philip


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [RFC] remove x86 qemu images

2020-12-07 Thread Florian Eckert

Hi,


openwrt.git includes an old version of QEMU (0.14 vs 5.1.0 in
packages.git) only to convert x86 images to vdi and vmdk. Is there
anyone actively using the vanilla x86 QEMU images from the upstream
servers or can can we remove that "feature"?


I am building my own openwrt.
So I do not use the upstream vmdk image.
But I use the generated vmdk image by the image builder for a few tests.

If we remove a feature, then we should offer an alternative.
Even if it is only a command.

Regards

Florian

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel