chore: enable user networking and ssh port forwarding for QEMU#6
chore: enable user networking and ssh port forwarding for QEMU#6zevorn merged 1 commit intozevorn:mainfrom
Conversation
|
LGTM, Thanks for the contribution! |
|
Run the cmd in qemu guest: |
Thanks for the reply, I will update the user manual. |
Add section 4.5 to the cosim usage guide (both en/zh) documenting how to configure guest networking and SSH into the guest via the port forwarding enabled in PR #6. Steps: identify NIC name with `ip a`, configure netplan DHCP, then `ssh -p 2222 gem5@localhost` from the host. Signed-off-by: Chao Liu <[email protected]>
Add params for QEMU:
-netdev "user,id=net0,hostfwd=tcp::2222-:22"
-device "virtio-net-pci,netdev=net0"
to enable user networking and ssh port forwarding.