My Qemu setup for Debian Bullseye (LTS - Aug 2026) --------------------------------------------------- qemu invocation:- qemu-system-x86_64 -enable-kvm -smp 4 --nographic -nic user,hostfwd=tcp::8022-:22 -m 2G -hdb repo-drive.img debian11.img qemu-img invocation:- qemu-img create repo-drive.img 5G make linux partition:- /sbin/fdisk repo-drive.img to mount it:- mount -o loop,offset=1048576 repo-drive.img /mnt/repo sbin/mke2fs:- maybe from debian11 rescue .. or maybe using losetup? [ losetup -f -o 1048576 repo-drive.img; mke2fs /dev/loopX; losetup -d /dev/loopX ] where loopX is the assigned loop # ssh from host (port 8022) to guest on port 22:- i.e. ssh [-X] -p 8022 isafam@localhost [X forwarding]