系統 - Debian - QEMU - 如何設定Port Forward



QEMU

$ qemu-system-i386 \
    -cpu pentium3 \
    -m 512 \
    -vga cirrus \
    -accel tcg \
    -display gtk \
    -hda /opt/qemu/win7.qcow2 \
    -boot c \
    -monitor stdio \
    -machine pc-i440fx-7.2 \
    -netdev user,id=net0,hostfwd=tcp:127.0.0.1:10000-127.0.0.1:9999 \
    -device rtl8139,netdev=net0

Win7

10.0.2.2:9999
10.0.2.2:10000

Host

127.0.0.1:9999