In order for testimage to be run in containers where the tun/tap device is not available, we need to support running testimage using user mode netowrking (slirp).
Was in the progress of implementation, but due to 7887 switching off.
A status update was requested, Robert took 7887, but that bug is still open. I know patches went to the list, but it doesn't appear anything was merged.
7887 merged now.
This is useful as it allows us to run testimage in containers.
*** Bug 12447 has been marked as a duplicate of this bug. ***
Manually launched qemu with slirp, then ssh to qemu from host machine using port binded. In progress of code exploration for testimage.bbclass, OEQemuTarget, & OERuntimeTestContextExecutor.
Enabled testimage to work with slirp and enable connection from host machine to qemu with slirp using SSH. After enabled testimage to work with slirp, found that oe-selftest was impacted by this changes. There are 2 options related to oe-selftest. 1. Disable the qemu with slirp and connection to qemu from host machine using SSH for oe-selftest 2. Enable this for oe-selftest Currently, working on option (2), in progress of developing and testing.
Received inputs from Anuj to only focus the enhancement for testimage while make sure changes does not impact oe-selftest. Completed the enhancement and now performing further testing.
Tested this for testimage & oe-selftest, qemu slirp worked as expected. Also tested CROPS running testimage, worked as expected. Submitted patches http://lists.openembedded.org/pipermail/openembedded-core/2018-November/276334.html http://lists.openembedded.org/pipermail/openembedded-core/2018-November/276335.html http://lists.openembedded.org/pipermail/openembedded-core/2018-November/276336.html http://lists.openembedded.org/pipermail/openembedded-core/2018-November/276337.html
There was improvement needed for oeqa/runtime. Currently, ssh test assumed ping to target will be available all the time. That was not true when using qemu with slirp, while enabling testimage with slirp, host machine running testimage will connect to the target qemu through "localhost:<port_binded_to_qemu>". Furthermore, when using qemu with slirp, the ping test will ping "localhost" as the self.runner.ip = 'localhost'.
Patches accepted.