Increase memory and turn on io apic (so it can use all the CPUs)
Ensure git is present
Do an apt-get update before we start so package installs do not fail with 404 errors