Skip to content
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

runqemu does not work inside docker container #265

Open
kraj opened this issue Feb 5, 2020 · 2 comments
Open

runqemu does not work inside docker container #265

kraj opened this issue Feb 5, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@kraj
Copy link
Contributor

kraj commented Feb 5, 2020

running

bitbake core-image-sato-sdk -ctestimage

ends up with this error

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

following works ok

DOCKER_REPO=none bitbake core-image-sato-sdk -ctestimage
@kraj kraj added the bug Something isn't working label Mar 1, 2020
kraj added a commit that referenced this issue Feb 11, 2021
…dded sources/meta-qcom sources/meta-ti sources/openembedded-core

* sources/bitbake 7bb7c045...9f23fa60 (5):
  > bitbake: Bump release to 1.49.1
  > logging: Make bitbake logger compatible with python logger
  < debug fixup
  < bitbake: Bump release to 1.49.1
  < logging: Make bitbake logger compatible with python logger

* sources/meta-arm e5523d6...aa63e31 (3):
  > kas: microbit-v1 testing
  > arm/microbit-v1: Fix build break
  > arm-bsp: create u-boot 2020.10 to resolve warning

* sources/meta-openembedded 6575ed1e3...d95c423e0 (26):
  > XXX: Add Github actions CI support
  > python3-pykickstart: update to 3.32
  > python3-pychromecast: update to 8.1.0
  > python3-protobuf: update to 3.14.0
  > python3-pika: update to 1.2.0
  > python3-idna: update to 3.1
  > gtkmm3: upgrade 3.24.2 -> 3.24.3
  > atkmm4: initial add 2.36.0
  > pangomm4: initial add 2.48.0
  > cairomm4: initial add 1.16.0
  > glibmm4: Initial add 2.68.0
  > libsigc++-2.0: upgrade 2.10.3 -> 2.10.6
  > gtk+: upgrade 2.24.32 -> 2.24.33
  > gegl: upgrade 0.4.26 -> 0.4.28
  > babl: upgrade 0.1.82 -> 0.1.84
  > xfce4-cpugraph-plugin: upgrade 1.2.0 -> 1.2.1
  > mousepad: upgrade 0.5.1 -> 0.5.2
  > fluidsynth: upgrade 2.1.6 -> 2.1.7
  > poppler: upgrade 21.01.0 -> 21.02.0
  > rsyslog: upgrade 8.2006.0->8.2012.0
  > libconfig add UPSTREAM_CHECK_URI
  > iqrencode: update to 4.1.1
  > wireshark: update to 3.4.3
  > fetchmail: udpate to 6.4.16
  > pydbus_manager: new package
  < XXX: Add Github actions CI support

* sources/meta-qcom a50e7c5...e6303d6 (1):
  > Merge pull request #265 from alimon/mesa_git

* sources/meta-ti c0a0281e...e1476fc2 (1):
  > am64xx-sk Add combined boot build support

* sources/openembedded-core d54be140a8...06459985f0 (34):
  > security_flags.inc: Add same O<level> as in SELECTED_OPTIMIZATION
  > tcf-agent: Fix build on riscv32
  > multilib_header.bbclass: Do not install the stubs for non-multilib case
  > runit: Add runit and related recipes
  > report-error.bbclass: replace angle brackets with &lt; and &gt;
  > linux-yocto: Add powerpc64le support
  > qemuppc64: Add a QEMU machine definition for ppc64
  > qemux86: Add identical qemux86copy variant for tests
  > qemu-system-native: install qmp python module
  > Customize prompt string for SDKs
  > oe-pkgdata-util: Check if environment script is initialized
  > mpg123: Add support for FPU-less targets
  > opkg: Fix patch glitches
  > parted: upgrade 3.3 -> 3.4
  > documentation.conf: add both CVE_CHECK_LAYER_*
  > Fix up bitbake logging compatibility
  > sanity.conf: Increase minimum bitbake version due to logging function change
  < security_flags.inc: Add same O<level> as in SELECTED_OPTIMIZATION
  < tcf-agent: Fix build on riscv32
  < multilib_header.bbclass: Do not install the stubs for non-multilib case
  < runit: Add runit and related recipes
  < report-error.bbclass: replace angle brackets with &lt; and &gt;
  < linux-yocto: Add powerpc64le support
  < qemuppc64: Add a QEMU machine definition for ppc64
  < qemux86: Add identical qemux86copy variant for tests
  < Fix up bitbake logging compatibility
  < sanity.conf: Increase minimum bitbake version due to logging function change
  < oe-pkgdata-util: Check if environment script is initialized
  < mpg123: Add support for FPU-less targets
  < opkg: Fix patch glitches
  < parted: upgrade 3.3 -> 3.4
  < documentation.conf: add both CVE_CHECK_LAYER_*
  < qemu-system-native: install qmp python module
  < Customize prompt string for SDKs

Signed-off-by: Khem Raj <[email protected]>
kraj added a commit that referenced this issue Feb 13, 2021
… sources/meta-freescale sources/meta-intel sources/meta-openembedded sources/meta-qcom sources/meta-qt5 sources/meta-riscv sources/meta-rust sources/meta-ti sources/openembedded-core

* sources/bitbake a9451746...9f23fa60 (10):
  > bitbake: Bump release to 1.49.1
  > logging: Make bitbake logger compatible with python logger
  > bblayers/action: When adding layers, catch BBHandledException
  > cooker: Ensure reparsing is handled correctly
  > BBHandler: Don't classify shell functions that names start with "python*" as python function
  > hashserv: Add get-outhash message
  > hashserv: server: Support searching upstream for outhash
  > hashserv: Add short forms of remaining command line arguments
  > hashserv: Support upstream command line argument
  > hashserv: Support read-only server

* sources/meta-96boards 29fe207...ea81086 (1):
  > Merge pull request #344 from YoeDistro/yoe/mut

* sources/meta-arm 3be0996...aa63e31 (6):
  > kas: microbit-v1 testing
  > arm/microbit-v1: Fix build break
  > arm-bsp: create u-boot 2020.10 to resolve warning
  > kas: disable uninative to work around uninative-2.33 failures
  > arm-bsp/tc0: add Theodul DSU support
  > arm-bsp/linux: add asymmetric AArch32 EL0 support for TC0

* sources/meta-freescale 23416520...79eccd2e (16):
  > imx-sc-firmware: Upgrade to 1.7.1
  > imx8qm-mek: Add device tree for esai
  > imx8mq-evk: Add device trees for rm67199
  > imx8mm-lpddr4-evk: Add device tree for QCA Wi-Fi
  > weston-init: Update weston.ini for IVI
  > weston-init: Update weston.ini
  > linux-fslc-imx: update to v5.4.97
  > linux-fslc-imx: update to v5.4.96
  > linux-fslc-imx: update to v5.4.95
  > linux-fslc: update to v5.10.15
  > linux-fslc: update to v5.10.14
  > linux-fslc: update to v5.10.13
  > linux-imx-headers: Update release branch and LOCALVERSION for 5.4.70 release
  > linux-imx: Upgrade to 5.4.70
  > linux-imx: Add comment for local defconfig change
  > imx-base.inc: Add PREFERRED_PROVIDER_u-boot-mfgtool

* sources/meta-intel d4b48224...9deb61d0 (3):
  > itt: upgrade 3.15.12 -> 3.18.10
  > lms: upgrade 2046.0.0.0 -> 2052.1.0.0
  > level-zero: upgrade 1.0.26 -> 1.1.0

* sources/meta-openembedded 8cc800b1e9...7206f7f5bc (30):
  > ttf-abyssinica: update to 2.000
  > hexedit: update to 1.5
  > xfce4-session: increase ALTERNATIVE_PRIORITY
  > libgit2: update to 1.1.0
  > ceres-solver: update to 2.0.0
  > gtkmm3: upgrade 3.24.2 -> 3.24.3
  > libsigc++-2.0: upgrade 2.10.3 -> 2.10.6
  > gtk+: upgrade 2.24.32 -> 2.24.33
  > gegl: upgrade 0.4.26 -> 0.4.28
  > babl: upgrade 0.1.82 -> 0.1.84
  > xfce4-cpugraph-plugin: upgrade 1.2.0 -> 1.2.1
  > mousepad: upgrade 0.5.1 -> 0.5.2
  > fluidsynth: upgrade 2.1.6 -> 2.1.7
  > poppler: upgrade 21.01.0 -> 21.02.0
  > libconfig add UPSTREAM_CHECK_URI
  > iqrencode: update to 4.1.1
  > wireshark: update to 3.4.3
  > fetchmail: udpate to 6.4.16
  > fluentbit: Fix SIGSEGV caused by using flb_free instead of mk_mem_free
  > fluentbit: fix systemd input plugin
  > lxdm: disallow empty new password
  > lxdm: support to change user password
  > ndpi: fix autoconf-2.71 compatibility
  > python3-periphery: upgrade 2.1.0 -> 2.2.0
  > python3-twitter: update to 3.10.0
  > python3-greenstalk: update to 2.0.0
  > python3-flask-socketio: update to 4.3.1
  > python3-aws-iot-device-sdk-python: update to 1.4.9
  > kernel-selftest: Disable building bpf
  > mosquitto: Upgrade 1.6.12 -> 2.0.7

* sources/meta-qcom 753b742...3eb5a78 (6):
  > Merge pull request #266 from lumag/lt9611uxc-autoupd
  > Merge pull request #270 from lumag/rb5-5.11
  > Merge pull request #212 from lumag/qcom-armv8a
  > Merge pull request #269 from alimon/master_5.10
  > Merge pull request #265 from alimon/mesa_git
  > Merge pull request #252 from lumag/rb5-board-data2

* sources/meta-qt5 9029ee4...23f7a1c (1):
  > qtdeclarative: overwrite do_install_ptest

* sources/meta-riscv 94ec885...25e7762 (5):
  > riscv32: Disable textrels check for rust-hello-world
  > rng-tools: rngd uses 100% cpu on qemu/riscv32
  > u-boot: Fix build for rv32
  > recipes: Remove textrel skipping for some recipes
  > tcf-agent: Enable builds on riscv32

* sources/meta-rust 81d4b4c...341a3c7 (3):
  > Merge pull request #305 from akiernan/master
  > Merge pull request #306 from ColinFinck/remove-old-versions
  > Merge pull request #304 from meta-rust/jmesmon-patch-readme

* sources/meta-ti c0a0281e...fb4726a8 (3):
  > linux-ti-staging: Update 5.4 kernel to 07.03.00.000
  > ti-uboot-staging: Update to the latest commit
  > am64xx-sk Add combined boot build support

* sources/openembedded-core d26f5601d0...4d6ad6d611 (33):
  > glibc: add workaround for faccessat2 being blocked by seccomp filters
  > npm.bbclass: avoid building target nodejs for native npm recipes
  > security_flags.inc: Add same O<level> as in SELECTED_OPTIMIZATION
  > tcf-agent: Fix build on riscv32
  > connman: update to 1.39
  > pseudo: Update for rename and faccessat fixes
  > oe-pkgdata-util: Check if environment script is initialized
  > mpg123: Add support for FPU-less targets
  > opkg: Fix patch glitches
  > parted: upgrade 3.3 -> 3.4
  > documentation.conf: add both CVE_CHECK_LAYER_*
  > Fix up bitbake logging compatibility
  > sanity.conf: Increase minimum bitbake version due to logging function change
  > u-boot: upgrade 2020.10 -> 2021.01
  > wic: debug mode to keep tmp directory
  > autoconf: Fix typo for prefuncs
  > initrdscripts: init-install-efi.sh install extra files for ESP
  > cve-check: add include/exclude layers
  > cve-check.bbclass: add layer to cve log
  > python3-packaging: upgrade 20.8 -> 20.9
  > libdrm: upgrade 2.4.103 -> 2.4.104
  > bind: upgrade 9.16.10 -> 9.16.11
  > spirv-tools: correct version check
  > shaderc: correct version check
  > at: correct upstream version check
  > tar: update 1.32 -> 1.33
  > libhandy: upgrade 1.0.2 -> 1.0.3
  > dpkg: update 1.20.5 -> 1.20.7.1
  > vulkan-samples: update to latest revision
  > ruby: update 2.7.2 -> 3.0.0
  > python3-setuptools: update 51.0.0 -> 52.0.0
  > gptfdisk: update 1.0.5 -> 1.0.6
  > distcc: update 3.3.3 -> 3.3.5

Signed-off-by: Khem Raj <[email protected]>
@kdsch
Copy link
Contributor

kdsch commented May 24, 2024

@kraj Do you know if this still a problem?

@kraj
Copy link
Contributor Author

kraj commented May 24, 2024

@kraj Do you know if this still a problem?

I have solved it by creating https://github.com/YoeDistro/yoe-distro/blob/master/envsetup.sh#L763
and then I also do

export DOCKER_PORTS="8000:8000"
DOCKER_EXTRA_ARGS="--net=host"

see

https://github.com/YoeDistro/yoe-distro/blob/master/local.sh.example#L33-L43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants