| Summary: | runqemu can not launch qemu image in Build Appliance | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Runtime | Reporter: | Yi Zhao <yi.zhao> | ||||
| Component: | build-appliance | Assignee: | Juro Bystricky <juro.bystricky> | ||||
| Status: | VERIFIED FIXED | QA Contact: | Yi Zhao <yi.zhao> | ||||
| Severity: | normal | ||||||
| Priority: | Medium+ | CC: | jose.perez.carranza, randy.macleod, ross.burton, yi.zhao | ||||
| Version: | 2.2 | ||||||
| Target Milestone: | 2.3 M1 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | Need backport to 2.2.1 | ||||||
| OS type for building Yocto: | --- | Type of Regression: | Regression (Used to work) | ||||
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |||||
| Attachments: |
|
||||||
|
Description
Yi Zhao
2016-10-14 05:36:59 UTC
The problem is /sbin is not in PATH, so "ip" is not found. "ip" is needed by the runqemu script. You can verify this by: $ which ip Hence the error message: runqemu-ifup, runqemu-ifdown or ip not found After $ export PATH=$PATH:/sbin it is possible to run qemu, for example: $ bitbake core-image-minimal $ runqemu qemux86 Patch sent to the mailing list: http://lists.openembedded.org/pipermail/openembedded-core/2016-October/127842.html Patch merged to master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=74f30e91bca1f6af3bef0ff9e652c0591013b412 This issue still exists in 2.2 rc6 build ( git rev: morty/dc8508f609974cc99606b9042bfa7f870ce80228) And I filed a new bug 10504 for other issue. I believe I found the problem. Verifying the fix. Created attachment 3509 [details]
fixed patch, PATH as intended
The new problem was by the previous "fix": When modifying the PATH variable in .bashrc, double quote characters were used, resulting in expanding the variable $PATH with the value of PATH of the system building the Build Appliance. The original intent was to enter an un-expanded (literal) $PATH. In order to that, one must use single quotes instead of double quotes. Surprisingly, this corrupted PATH still allowed to build an image and run it in qemu within BA, so the problem was not detected early enough. However, the Build Appliance built by Auto Builder had a significantly more complex path so the problem was manifested immediately. I attached a new patch I am presently testing. Tested was successful, tested with local.conf: MACHINE = "qemux86-64" $ bitbake build-appliance-image Ran the resulting image in VirtualBox. Once in VirtualBox, both terminals were present. Verified proper PATH was exported. ran $ bitbake core-image-sato $ runqemu qemux86 Correct sato image was built and subsequently displayed in qemu. patch sent to the mailing list: http://lists.openembedded.org/pipermail/openembedded-core/2016-October/128140.html Fixed in oe-core 6238faf901956e2a350315a66ca1ce557deaa513. Verified with 2.3 M1 RC1 build git rev: master/573c646d4cc62dcd0c230381df4940bdf314d495 |