AdoptOpenJDK / openjdk-virtual-images

Virtual Images for the Adopt OpenJDK programme
11 stars 9 forks source link

Update packer configuration to use netboot image rather than full ISO #20

Open msuriar opened 10 years ago

msuriar commented 10 years ago

Saves bandwidth/time when producing a new Packer base image. (Netboot images are ~25MB, vs 700MB).

http://archive.ubuntu.com/ubuntu/dists/raring/main/installer-amd64/current/images/netboot/

karianna commented 10 years ago

Seems to only be 'current' though, no 13.04 LTS base I could find?

msuriar commented 10 years ago

http://cdimage.ubuntu.com/netboot/

msuriar commented 10 years ago

After some playing around, this appears decidedly non-trivial. It appears that the netboot installer needs different arguments in order for it to process the preseed file correctly (if it supports them at all).

Also, conveniently for this testing (although decidedly inconveniently in general), my home internet connecting is experiencing very variable performance today, making download times very... non-deterministic, shall we say. One issue with using the netboot install is that the majority of package downloads end up taking place inside the installer process, which will be running in headless mode. Makes detecting them more difficult than when packer complains "failed to download ISO".

I think this might be something we do for the buildfarm only, although even for that I'm leaning towards generating a custom installer which has all the stuff we need pre-included, to minimise the amount we need to download from Ubuntu repos.