diff options
-rw-r--r-- | doc/note/qemu/qemu.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/note/qemu/qemu.txt b/doc/note/qemu/qemu.txt index 214fb81..1c98baa 100644 --- a/doc/note/qemu/qemu.txt +++ b/doc/note/qemu/qemu.txt @@ -36,14 +36,14 @@ Windoof: ## Example Params (Usage: CopyPaste, then delege what is not needed) qemu-system-x86_64 \ - -enable-kvm -m size=4G -smp cores=$(nproc) \ + -accel kvm:whpx:hax:tcg -m size=4G -smp cores=$(nproc) \ -monitor stdio \ `# Drives & Boot.` \ -boot order=dc \ -cdrom "path/to/cd.iso" \ -hda "$(dirname "$(realpath "$0")")/hda.qcow2" \ - `# Isolated Network` \ - -netdev user,id=n1,ipv6=off,restrict=y \ + `# Isolated Network plus host port/cmd reachable from guest` \ + -netdev 'user,id=n1,ipv6=off,restrict=y,guestfwd=guestfwd=tcp:10.0.2.9:80-cmd:ncat 127.0.0.1 80' \ -device e1000,netdev=n1 \ `# 10.0.2.x network with host redirect` \ -netdev user,id=n0,ipv6=off,hostfwd=tcp:127.0.0.1:${SSH_PORT:-2222}-:22 \ @@ -53,12 +53,13 @@ qemu-system-x86_64 \ -device e1000,netdev=n1 \ `# Fix broken host systems` \ -L "${QEMU_HOME:?}/Bios" -bios "${QEMU_HOME:?}/Bios/bios-256k.bin" \ + `# Fix broken guest systems` \ -device usb-ehci,id=usb,bus=pci.0,addr=0x4 -device usb-tablet \ `# Choose ONE of those for graphic output` \ -nographic \ -display sdl,grab-mod=rctrl \ -display gtk,show-menubar=on \ - -display vnc=127.0.0.1:0 `#HINT: 0 is port 5900` \ + -display vnc=127.0.0.1:0,to=99 `#HINT: 0 is port 5900` \ ; ### Example manual adapter setup (inside VM) for socket mcast network: |