DISK=disk.raw
CD=$1
+FS=FS.sqfs
PCODE=/usr/share/OVMF/OVMF_CODE_4M.fd
PVARS=/usr/share/OVMF/OVMF_VARS_4M.fd
cp $PVARS pvars.bin
exec $QEMU -name "${CD%.img}" -m 2G -M pc,accel=kvm -cpu host \
-drive media=disk,format=raw,file=$CD \
-drive media=disk,format=raw,file=$DISK \
+ -virtfs local,path=FS,mount_tag=FS,security_model=passthrough \
-serial mon:stdio -echr 0x1c -vga std \
$NET
# -boot menu=on,splash-time=60000 \
-# -virtfs local,path=FS,mount_tag=FS,security_model=passthrough \
# -kernel FS/vmlinuz -initrd FS/initrd.img \
# -append "root=FS rootfstype=9p console=ttyS0"