#!/bin/sh

set -x
qemu-system-arm \
    -nographic \
    -machine virt \
    -m 2G \
    -smp 4 \
    -device virtio-blk-device,drive=disk \
    -drive file=rootfs.qcow,if=none,id=disk \
    -device virtio-net-device,netdev=net \
    -netdev user,id=net,hostfwd=tcp::2222-:22 \
    -kernel vmlinuz-6.1.0-27-armmp-lpae \
    -initrd initrd.img-6.1.0-27-armmp-lpae \
    -append "ip=dhcp console=ttyAMA0"
