qemu
Installation
SKILL.md
QEMU
QEMU is the default public tool for cross-architecture user-mode execution and full-system virtual machines.
Choose mode
| Need | Mode |
|---|---|
| Run one Linux/BSD ELF with syscalls forwarded to host | qemu-<arch> user-mode |
| Run a process inside an extracted rootfs | qemu-<arch>-static in chroot/proot/container |
| Boot kernel/initrd/rootfs/disk/firmware | qemu-system-<arch> |
| Debug kernel, bootloader, or process before start | -S -gdb ... or user-mode -g |
| Expose serial/UART | -serial stdio, -serial unix:..., -chardev ... |
| Expose guest services | -netdev user,hostfwd=tcp:127.0.0.1:<host>-:<guest> |