Skip to content

Instantly share code, notes, and snippets.

@vbatts
Created June 24, 2020 21:27
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vbatts/0409a0a85a74ff2de55a1d08933983db to your computer and use it in GitHub Desktop.
Save vbatts/0409a0a85a74ff2de55a1d08933983db to your computer and use it in GitHub Desktop.
run a local flatcar VM for testing
#!/bin/sh
set -eu
curl -LO https://www.flatcar-linux.org/security/image-signing-key/Flatcar_Image_Signing_Key.asc
gpg --import Flatcar_Image_Signing_Key.asc
wget \
https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_qemu_image.img.bz2 \
https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_qemu.sh \
https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_qemu.README \
https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_qemu_image.img.bz2.DIGESTS \
https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_qemu_image.img.bz2.DIGESTS.asc
gpg --verify flatcar_production_qemu_image.img.bz2.DIGESTS.asc
sha512sum -c flatcar_production_qemu_image.img.bz2.DIGESTS
bunzip2 flatcar_production_qemu_image.img.bz2
sh ./flatcar_production_qemu.sh -a ~/.ssh/authorized_keys -p 2223 -- -curses
# and then `ssh -l core -A -p 2223 localhost` from another terminal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment