Am Mon, 1 Nov 2021 00:55:07 -0700 (PDT) schrieb Moustafa Nofal <[email protected]>:
> > > > >Might well be very little documentation on that. The code would be > > >under tools/jailhouse-cell-linux which might give a little more > > >insight on what it does and how. > > > > >And "./jailhouse-cell-linux --help" might help > > > Yes, it was necessary and very helpful. > > >Maybe start with the virtual qemu target, in which things should > >work. > >Not sure if that second linux will have its own uart there, but it > >should come up and be reachable via network a few secs after start. > I used vmlinux and rootfs.cpio from jailhouse-image to run a non-root > linux cell on RPi4(5.3 with compiled Jailhouse). Good to hear you made progress. > So the current > situation is: 1 CPU @ RootCell, 2 CPUs @non-root LinuxCell, and 1 CPU > @BareMetalCell. I have another problem regarding the network. the IP > was assigned, but the cell is accessible only with UART1, the cell > has an IP, but it cannot be reached.( Destination unreachable) when > pinged or ssh'ed. I attached 2 screenshots, just for the information. Not sure how you ended up assigning that IP (i do not look at screenshots). But i guess your network setup is that you have one physical NIC which still belongs to the root cell. And you have a virtual network with two jailhouse shmem network adapters going between your non-root and root-cell. An i further guess that the non-root cell got its IP via its kernel cmdline. To hook that up to the root-cell, the root-cell will need an IP from the same subnet. And that additional subnet should not overlap with the subnet your root-cell is already using on the physical NIC. That way you should eventually be able to "ping" and "ssh" between root and non-root. What you might want to do later would be to create a bridge on the root-cell, where you would attach the physical NIC and the jailhouse-NIC ... that would connect you non-root cell to your LAN and allow for DHCP and external communication. Nothing jailhouse specific really, simple Linux networking stuff. The only thing really needed is the jailhouse NIC driver on the root cell, i assume a new NIC appeared after your "jailhouse enable" ... Henning > Thanks for your support. > Regards, > Moustafa Noufale > -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/20211102095459.3a17440d%40md1za8fc.ad001.siemens.net.
