Bug 8691

Summary: Allow runqemu to start with a raw disk
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Daniel Istrate <daniel.alexandrux.istrate>
Component: deploymentAssignee: Ed Bartosh <eduard.bartosh>
Status: RESOLVED FIXED QA Contact: Daniel Istrate <daniel.alexandrux.istrate>
Severity: enhancement    
Priority: Medium CC: alexandru.c.georgescu, bill.randle, bogdanx.a.voiculescu, eduard.bartosh, richard.purdie, ross.burton
Version: 2.1   
Target Milestone: 2.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)
Bug Depends on:    
Bug Blocks: 8498, 8499    

Description Daniel Istrate 2015-11-13 13:55:44 UTC
Hi,

Runqemu should be able to start with a raw disk (like one created with wic).

Some of the parameters runqemu is using right now, like sysroot, kernel, ip are no longer needed as they are included in the raw disk.
The mechanism that handles qemu machines IPs should also be updated to allow multiple qemu machines running at the same time.


$ wic create qemux86-directdisk -e core-image-minimal -o wic-img/
Checking basic build environment...
Done.

Creating image(s)...

Info: The new image(s) can be found here:
  wic-img/build/qemux86-directdisk-201511131543-sda.direct

The following build artifacts were used to create the image(s):
  ROOTFS_DIR:                   /media/ssd/poky-build2/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs
  BOOTIMG_DIR:                  /media/ssd/poky-build2/tmp/sysroots/qemux86/usr/share
  KERNEL_DIR:                   /media/ssd/poky-build2/tmp/deploy/images/qemux86
  NATIVE_SYSROOT:               /media/ssd/poky-build2/tmp/sysroots/x86_64-linux
Comment 1 Cristian Iorga 2015-12-07 15:11:49 UTC
Investigation started.
Comment 2 Cristian Iorga 2015-12-17 18:36:47 UTC
Implementation started.
Comment 3 Cristian Iorga 2015-12-17 18:37:11 UTC
Testing.
Comment 4 Ed Bartosh 2016-02-02 09:42:45 UTC
Fix has been sent for review: http://lists.openembedded.org/pipermail/openembedded-core/2016-February/116626.html