Created
December 24, 2021 04:39
-
-
Save brandonros/0d6a275c280ba9bcca9269aa3221db6d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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 |
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
qemu-img create -f qcow2 alpine.qcow2 15G