Skip to content

Instantly share code, notes, and snippets.

@brandonros
Created December 24, 2021 04:39
Show Gist options
  • Save brandonros/0d6a275c280ba9bcca9269aa3221db6d to your computer and use it in GitHub Desktop.
Save brandonros/0d6a275c280ba9bcca9269aa3221db6d to your computer and use it in GitHub Desktop.
#/bin/sh
# download from https://dl-cdn.alpinelinux.org/alpine/edge/releases/x86_64/netboot/
qemu-system-x86_64 \
-m 512 \
-kernel ~/Downloads/alpine-edge-x86_64/vmlinuz-lts \
-initrd ~/Downloads/alpine-edge-x86_64/initramfs-lts \
-append "console=ttyS0 ip=dhcp alpine_repo=http://dl-cdn.alpinelinux.org/alpine/edge/main/" \
-nographic
@brandonros
Copy link
Author

qemu-img create -f qcow2 alpine.qcow2 15G

@brandonros
Copy link
Author

qemu-system-x86_64 \
  -M q35 \
  -m 512 \
  -nic user \
  -cdrom alpine-standard-3.15.0-x86_64.iso \
  -drive file=alpine.qcow2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment