Bug 10211 - New runqemu makes it harder to use on hosts other than the build machine
Summary: New runqemu makes it harder to use on hosts other than the build machine
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.2 M3
Assignee: Joshua Lock
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-09-02 16:04 UTC by Joshua Lock
Modified: 2016-09-09 12:49 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Lock 2016-09-02 16:04:02 UTC
I've long used the patter of performing builds on a powerful headless build machine, then copying artefacts to my laptop in order to test them with runqemu.

Unfortunately with the new runqemu this is broken and I can't just `runqemu /path/to/kernel /path/to/image` as I used to.

Even if I copy the extra *.qemuboot.conf artefact I can't simply pass that to runqemu, I have to edit the configuration file to change the hardcoded paths from subdirectories of TMPDIR on the buildhost to the relevant paths on my laptop.

We should support running images on machines other than the build host more easily, this could be either

a) writing TMPDIR to the conf file and creating other paths relative to that
b) massaging paths to be relative to the .conf file when a conf file is loaded

We also need to make sure the new runqemu is fully documented so that any surprises are covered in the migration guide.
Comment 1 Joshua Lock 2016-09-02 22:22:14 UTC
I have some lightly tested changes locally to resolve this. Will test further, clean up and submit on Monday.
Comment 2 Robert Yang 2016-09-03 02:44:33 UTC
Hi Joshua:

Did you try something like:

$ cp tmp/deploy/images/qemux86/ /tmp/mymachine -r
$ runqemu /tmp/mymachine/

It works well for me.
Comment 4 Joshua Lock 2016-09-09 12:49:50 UTC
Fixed in OE-Core/Poky master.