-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get networking in Native emulation. #131
Comments
I have some result. Here is what i did :
Now i'm able to get networking inside the virtual Pi and i'm able to log in ssh. So now i can do port forwarding if required to test stuff thru SSH. |
But now i'm wondering if it's possible to connect my qemu RPI to my local bridge to have full networking since my port frowarding are limited to SSH with this techinque. |
You should be able to create a network tap using QEMU. Then use bridge-utils to bridge your network and tap interface. The reason why networking does not work with all distro images is because (native) ethernet emulation is done through a virtual USB ethernet adapter. This adapter requires kernel modules USB_ETH and USB_DWC2, that are installed under |
I'm trying to get a special raspi image to boot (eblocker-2.6). It won't start with the way Jugulaire shows above (thanks!). So I first repeated what Jugulaire did, with the same raspbian image/version mentioned above - that works fine, i.e. with the image "2021-01-11-raspios-buster-armhf". I then used the kernel (5.4.83-v8+) and dtb extracted from the "2021-01-11" image in conjunction with the eblocker-2.6 image. THAT combination then boots. But eblocker then misses its network, because it tries to load the respective module from the kernel version folders it was booted with (5.4.83-v8+) - which of course differ from those in the image itself (5.10.17 something). So, it seems to heavily depend on what kernel version is used with qemu, even though all three images tested are dedicated raspi-3 compatible images. Anyone got a clue what distinguishes the 2021-01-11 / 5.4.83-v8+ kernel from the one in the 2021-05-07 image? (edit: I mean, sure, a ton of things; but what might be relevant for qemu (not) even booting the first few basic steps?) Would like to know what causes the one to work with qemu but not the other. |
Just to add my experience:
|
Hey !
I have successfully started Raspbian in QEMU with this command :
But i'm unable to get networking inside this box. I've followed the QEMU guide, but I cannot figure out.
Did someone have successfully booted a native emulated raspbian with networking enabled ?
Thanks in advance.
The text was updated successfully, but these errors were encountered: