[Buildroot] network/ssh issue on qemuriscv32

Alistair Francis alistair23 at gmail.com
Sun Jun 12 22:39:02 UTC 2022


On Mon, Jun 13, 2022 at 2:24 AM snathick <snathicktechno at gmail.com> wrote:
>
> Hi,
>
> Unable to connect to network in qemuriscv32
>
> steps to reproduce the issue as follows
> 1. $ cd buildroot-2022.02.2
> 2. $ make qemu_riscv32_virt_defconfig
> 3. $ make menuconfig
>    changed init to systemd
>    enabled openssh
> 4. $ make
> 5. $ cd output/images
>      ./start-qemu.sh

I suspect this uses SLIRP by default

> Able to boot the image succesfully.
> echo nameserver 8.8.8.8 > /etc/resolv.conf
> when i am trying to ping as follows
> ping 8.8.8.8

SLIRP doesn't support ICMP, so this won't work.

> no response
>
> unable to ssh into qemu from the host machine.

Did you setup port forwarding with QEMU?

See the QEMU networking documentation:
https://wiki.qemu.org/Documentation/Networking

> Hereby attaching my config file.
>
> Please help me to resolve my issue.
> --
> Thanks & Regards,
> Snathick
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot



More information about the buildroot mailing list