Re: Build chain for centos7 boxes (oz. imagefactory)
> setup.py should generate the file Version.py , perhaps you have to
> run setup.py sdist - I didn't try it.
>  https://apps.fedoraproject.org/packages/imagefactory/sources/spec/
>> All of this look interesting, as using these tools would spare me the
>> custom writing of cloud format converts for OVF. Seems oz is already
>> packaged in Debian and has Debian too ( via calling the debian-installer
>> on a disk image I suppose)
> That's right, it uses Oz. Maybe it's easier to reuse just the image
> conversion routines, than add full Debian support to ImageFactory.
Thanks for your help
So I managed to install imagefactory using setup.py sdist and grepping
the rpm spec file for dependency but did not get very far.
It seems to use a daemon somewhere but without documentation it's very
much a time consuming trial and error.
I had a look at oz too, since it's packaged in Debian and was a bit
disappointed to see its 737 line long
/usr/lib/python2.7/dist-packages/oz/Debian.py unpacks a debian iso to
modify the boot parameter.
Also I could not get it to work to create a Debian 8 image, it fails
downloading the iso.
So it looks oz is not up to the task for the job it would need serious
work, so I am going to stick with packer ( or maybe virt-install ) for
I also found out this week it's trivial to create a debian image using
virt-install from the libvirt folks with a preseed file. Works in text
mode, don't require an ISO, as non root.
--connect qemu:///session \
--name debian \
--ram 512 \
--vcpus 1 \
--file debuan.qcow2 \
--virt-type kvm \
--os-variant Debian8 \
--graphics none \
--console pty,target_type=serial \
--extra-args "auto=true hostname=debian domain=