diff options
author | Andreas Fankhauser hiddenalpha.ch | 2023-11-16 01:12:26 +0100 |
---|---|---|
committer | Andreas Fankhauser hiddenalpha.ch | 2023-11-16 01:12:26 +0100 |
commit | c258d0107091b941b556d5e31923430cc1b9e50f (patch) | |
tree | 3269151e86319dc8b241118f9ff14e8b05fe7a37 | |
parent | 40b09678fa9317ba6d6fdbdadd53e9172c764743 (diff) | |
download | UnspecifiedGarbage-c258d0107091b941b556d5e31923430cc1b9e50f.zip UnspecifiedGarbage-c258d0107091b941b556d5e31923430cc1b9e50f.tar.gz |
Some qemu notes
-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: |