Need documentation for automated-ec2-builds to rebuild with smaller disk than 10GB

Asked by KC


I'm attempting to recreate the .ova package for 14.04 (trusty-server-cloudimg-amd64.ova), but with a smaller disk size than the 10GB default. I've been experimenting with the source code checkout of automated-ec2-builds, but other than "--help", there is no detailed documentation to indicate how to correctly use this set of build tools.

I was hoping I could do something like this (overriding size=10 with size=5):

$ ./automated-ec2-builds/ovf/diskimg2ova --prefix resizetest --size 5 --disk /tmp/trusty-server-cloudimg-amd64-disk1.img --out /tmp

However the result of this command is an .ova file containing an unbootable ~250MB virtual disk, so it looks like size must be changed upstream somewhere (where?) prior to diskimg2ova being run.

Would it be possible to post the script that shows the commands and their arguments used to generate trusty-server-cloudimg-amd64.ova, and/or explain how to go about changing the disk size?


Question information

English Edit question
Ubuntu vm-builder Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
KC (kcoyle-9) said :

Update: I believe I've solved this issue--I was not getting a valid .ova file from diskimg2ova because I had not converted trusty-server-cloudimg-amd64-disk1.img from QCOW2 format back to RAW format prior to running diskimg2ova:

$ qemu-img convert -O raw trusty-server-cloudimg-amd64-disk1.img trusty-server-cloudimg-amd64-disk1.raw
$ ./automated-ec2-builds/ovf/diskimg2ova --prefix halfsizetest --size 5G --disk trusty-server-cloudimg-amd64-disk1.raw --out .