Skip to content

Commit

Permalink
riscv64: Fix VM network
Browse files Browse the repository at this point in the history
Change `nameserver` from `8.8.8.8` to `10.0.2.3` as QEMU User Networking
(SLIRP)[1] documents.

[1] https://wiki.qemu.org/Documentation/Networking

Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
  • Loading branch information
TimePrinciple authored and roypat committed Sep 6, 2024
1 parent 44e5d18 commit 15f474a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions riscv64/build_finalize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ Host riscv-qemu
StrictHostKeyChecking no
EOF

# Set `nameserver` for `resolv.conf`
echo 'nameserver 8.8.8.8' > $ROOTFS_DIR/etc/resolv.conf
# Set `nameserver` to `10.0.2.3` as QEMU User Networking documented.
# See: https://wiki.qemu.org/Documentation/Networking
echo 'nameserver 10.0.2.3' > $ROOTFS_DIR/etc/resolv.conf

0 comments on commit 15f474a

Please sign in to comment.