After your booted up the 2nd linux, you could setup virtual network using
below steps:
How to setup network for 2nd linux using network



   1. After first linux boots up
      1.

      sysctl -w net.ipv4.ip_forward=1
      sysctl -p /etc/sysctl.conf
      2. After root cell enabled
      1. iptables -A FORWARD -i eth1 -j ACCEPT

      iptables -A FORWARD -o eth1 -j ACCEPT
      iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
      3.

   After 2nd linux boots up
   1.

      ifconfig eth1 or 2 192.168.1.4 for the 1st linux


      2.

      ifconfig eth0 192.168.1.5 for the 2nd linux
      3.

      "ip route add default via 192.168.1.4 dev eth0" for the 2nd linux
      "ip route add 10.193.108.0/24 via 192.168.1.4 dev eth0" for 2nd linux
      4. Now you could "mount -t nfs 10.193.108.xx:/home/xxx/nfs /mnt"


Regards,
Peng.

Vipul Suneja <[email protected]> 于2020年8月12日周三 下午8:43写道:

>
> I could run yocto bsp 5.4.24 image in root cell(SD card) & non root
> cell(emmc). Trying to copy some binary (from host machine)to run on
> non-root cell image but unable to copy via ethernet. I found ivshmem in
> configuration for communication between cells. What are the steps to use it
> & to share data between cells.
>
> Thanks
> Vipul
>
> --
> 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/d5e0edf5-118c-4827-b21e-37975bbddffeo%40googlegroups.com
> <https://groups.google.com/d/msgid/jailhouse-dev/d5e0edf5-118c-4827-b21e-37975bbddffeo%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


--

-- 
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/CAEfxd-_oGgCuE5CH5OaS4RjtbXKFW2vViOfaYVLeqGcJSAK8Tg%40mail.gmail.com.

Reply via email to