Download and start the CoreOS development image in a container. Make sure to bind writable directories over the kernel's build and install paths.
wget 'http://alpha.release.core-os.net/amd64-usr/current/coreos_developer_container.bin.bz2'
bzcat coreos_developer_container.bin.bz2 > coreos_developer_container.bin
mkdir boot modules src
sudo systemd-nspawn \
--bind="$PWD/boot:/boot" \
--bind="$PWD/modules:/lib/modules" \
--bind="$PWD/src:/usr/src" \