#!/bin/sh

qemu-system-s390x \
    -nographic \
    -machine s390-ccw-virtio \
    -cpu max,zpci=on \
    -m 2G \
    -smp 4 \
    -drive file=rootfs.qcow \
    -device virtio-net-ccw,netdev=net \
    -kernel vmlinuz-6.11.0-9-s390x \
    -initrd initrd.img-6.11.0-9-s390x \
    -netdev user,id=net,hostfwd=tcp::2222-:22 \
    -append "root=/dev/vda1 ip=dhcp"
