I have just attempted to virtualize :debian: :linux: on my :ubuntu: system using QEMU with the TCG accelerator. If you have security advice regarding virtual machines with an architectural mismatch (as with my latest video on :youtube:, with an AArch64 virtual machine clearly operating on my x86_64 host), please feel free to insert additional recommendations. For performance enhancements, please also feel free to insert modification suggestions to the code below:
qemu-system-aarch64 -machine virt,gic-version=max -m 512M -cpu max -smp 4 -netdev user,id=vnet,hostfwd=:127.0.0.1:0-:22 -device virtio-net-pci,netdev=vnet -drive file=QEMU/out.img,if=none,id=drive0,cache=writeback,format=raw,media=disk -device virtio-blk,drive=drive0,bootindex=0 -drive file=debian-12.11.0-arm64-netinst.iso,if=none,id=drive1,cache=writeback,format=raw,media=cdrom -device virtio-blk,drive=drive1,bootindex=1 -drive file=flash0.img,format=raw,if=pflash -drive file=flash1.img,format=raw,if=pflash -device virtio-gpu-pci -device usb-ehci,id=ehci -device usb-kbd -device usb-mouse
https://youtu.be/z9u2TIqctyw?si=0830UjN8lkOOuJ1U