Bug 8691 - Allow runqemu to start with a raw disk
Summary: Allow runqemu to start with a raw disk
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: deployment (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 2.1 M2
Assignee: Ed Bartosh
QA Contact: Daniel Istrate
URL:
Whiteboard:
Depends on:
Blocks: 8498 8499
  Show dependency tree
 
Reported: 2015-11-13 13:55 UTC by Daniel Istrate
Modified: 2016-02-18 16:11 UTC (History)
6 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 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