Created
October 23, 2025 18:59
-
-
Save chapmanjacobd/0c87d93f4e1df745ef237f45fff1e5a5 to your computer and use it in GitHub Desktop.
alpine arm64 qemu/kvm
This file contains hidden or 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/qemu-system-arm64 \ | |
| -name alpine-v3.22,process=alpine-v3.22 \ | |
| -machine virt,accel=kvm \ | |
| -cpu max \ | |
| -smp cores=3 \ | |
| -m 4G \ | |
| # -boot d | |
| -device virtio-balloon \ | |
| -pidfile alpine-v3.22.pid \ | |
| -rtc base=utc,clock=host \ | |
| -device virtio-rng-pci,rng=rng0 \ | |
| -object rng-random,id=rng0,filename=/dev/urandom \ | |
| -device qemu-xhci,id=spicepass \ | |
| -chardev spicevmc,id=usbredirchardev1,name=usbredir \ | |
| -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1 \ | |
| -chardev spicevmc,id=usbredirchardev2,name=usbredir \ | |
| -device usb-redir,chardev=usbredirchardev2,id=usbredirdev2 \ | |
| -chardev spicevmc,id=usbredirchardev3,name=usbredir \ | |
| -device usb-redir,chardev=usbredirchardev3,id=usbredirdev3 \ | |
| -device pci-ohci,id=smartpass \ | |
| -device usb-ccid \ | |
| -chardev spicevmc,id=ccid,name=smartcard \ | |
| -device ccid-card-passthru,chardev=ccid \ | |
| -device usb-ehci,id=input \ | |
| -device usb-kbd,bus=input.0 \ | |
| -k en-us \ | |
| -device usb-tablet,bus=input.0 \ | |
| -audiodev pa,id=audio0 \ | |
| -device intel-hda \ | |
| -device hda-micro,audiodev=audio0 \ | |
| -device virtio-net,netdev=nic \ | |
| -netdev user,hostname=alpine-v3.22,hostfwd=tcp::22221-:22,id=nic \ | |
| -drive if=pflash,format=raw,unit=0,file=/usr/share/AAVMF/AAVMF_CODE.fd,readonly=on \ | |
| -drive if=pflash,format=raw,unit=1,file=AAVMF_VARS.fd \ | |
| -drive media=cdrom,index=0,file=alpine-virt-3.22.2-aarch64.iso \ | |
| -device virtio-blk-pci,drive=SystemDisk \ | |
| -drive id=SystemDisk,if=none,format=qcow2,file=disk.qcow2 \ | |
| -monitor unix:alpine-v3.22-monitor.socket,server,nowait \ | |
| -serial unix:alpine-v3.22-serial.socket,server,nowait \ | |
| -nographic -serial mon:stdio | |
| socat STDIO,cfmakeraw UNIX:alpine-v3.22-serial.socket | |
| socat STDIO,cfmakeraw,isig=1 UNIX:alpine-v3.22-monitor.socket |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment