crops / poky-container

A container image that is able to run bitbake/poky. It has helpers to create users and groups within the container. This is so that the output generated in the container will be readable by the user on the host.
GNU General Public License v2.0
209 stars 95 forks source link

Question: Does it make any sense to enable the TUN network interface in a Docker container? #65

Closed HenrikBach1 closed 3 years ago

HenrikBach1 commented 3 years ago

Hi

Does it make any sense to enable the TUN network interface in a Docker container?:

pokyuser@2bd6d55fa9fe:/yocto/poky/build$ bitbake core-image-sato
Loading cache: 100% |##################################################################################| Time: 0:00:00
Loaded 1438 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.50.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "qemux86-64"
DISTRO               = "poky"
DISTRO_VERSION       = "3.3.1"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta                 
meta-poky            
meta-yocto-bsp       = "my-yocto-3.3.1:05a8aad57ce250b124db16705acec557819905ae"

Initialising tasks: 100% |#############################################################################| Time: 0:00:06
Sstate summary: Wanted 0 Local 0 Network 0 Missed 0 Current 2725 (0% match, 100% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 6851 tasks of which 6851 didn't need to be rerun and all succeeded.
pokyuser@2bd6d55fa9fe:/yocto/poky/build$ runqemu qemux86-64
runqemu - INFO - Running MACHINE=qemux86-64 bitbake -e ...
runqemu - ERROR - TUN control device /dev/net/tun is unavailable; you may need to enable TUN (e.g. sudo modprobe tun)
runqemu - INFO - Cleaning up
pokyuser@2bd6d55fa9fe:/yocto/poky/build$ 

Thank you.