cheatsheets devlog projects

notes-alpine.md

Installing Alpine using Qemu

2022-09-17 1

The commands to quickly get a alpine image going.

wget https://dl-cdn.alpinelinux.org/alpine/v3.16/releases/x86/alpine-standard-3.16.2-x86.iso

qemu-img create -f raw alpine.img 500M
qemu-system-x86_64 -m 512 -nic user -boot d -cdrom alpine-standard-3.16.2-x86.iso -drive file=alpine.img,format=raw

# Inside alpine now:
# Choose to use a disk and the way to use it is sys.

setup-alpine
poweroff

# Outside alpine, alpine is shutdown, this is the reboot
qemu-system-x86_64 -m 512 -nic user -hda alpine.img