Skip to content

Commit 15f474a

Browse files
RuoqingHeroypat
authored andcommitted
riscv64: Fix VM network
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>
1 parent 44e5d18 commit 15f474a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

riscv64/build_finalize.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ Host riscv-qemu
1818
StrictHostKeyChecking no
1919
EOF
2020

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

0 commit comments

Comments
 (0)