Implemented running mic under VM
authorEd Bartosh <eduard.bartosh@intel.com>
Wed, 4 Sep 2013 17:39:50 +0000 (20:39 +0300)
committerHasan Wan <hasan.wan@intel.com>
Wed, 11 Sep 2013 02:11:02 +0000 (19:11 -0700)
commit3ef502c35344717b07e88268ef075a7864e793e7
tree1baf73e4ac4c50fe0bfa3cb3cc4bffc47ad86ae2
parentfb0aca8664c3eaf9eb28f1e2fa2c3a58028497ae
Implemented running mic under VM

If configuration variable USE_VM is set to 1 in jobs/configuration
job_imager will try to run qemu with -hda <mic seed image> and
accelerator choices: kvm:xen:tcg. It means that qemu will first try to
run image with kvm and then with xen if kvm is not found.

There are number of optional VM related parameters that can be set in
jobs/configuration: VM_IMAGE($JENKINS_HOME/mic-seed.tar by default),
VM_MEMORY(8Mb by default) and VM_CPUS(8 cpus by default).

mic appliance implemented in mic-seed expects configuration file in
mic/out directory. It will automatically run mic and put image and other
build results also into mic/out.

Fixes: #1146

Change-Id: I3a1fd07306372912a1909fd4774d06f5e8523f97
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/6306
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Hasan Wan <hasan.wan@intel.com>
job_imager.py