Xen support
authorDimitris Aragiorgis <dimara@grnet.gr>
Thu, 27 Sep 2012 00:34:47 +0000 (03:34 +0300)
committerDimitris Aragiorgis <dimara@grnet.gr>
Fri, 28 Sep 2012 17:17:26 +0000 (20:17 +0300)
commit72052003a29d5c2f85a1b6e6ab30b82b31b83b71
treecf07a7bc26716ec71c6fc17583a5d0a1a633ad75
parenteafa172834a3ce95a8f5bbaafa2a9b4c218ea738
Xen support

Support launching helper domain on top of Xen hypervisor under PV mode.

Helper VM becomes hypervisor aware by passing hypervisor=$HYPERVISOR
in the kernel command line and thus acts accordingly (which logging
devices to use, what disk/floppy devices to expect, etc)

We separate all hypervisor specific functions and vars and source them
according to $HYPERVISOR env var.

Due to the fact that multiconsole for PV domains is supported only after
linux kernel 3.2 (Stefano Stabellini tree - branch 3.2-multiconsole-2
git://xenbits.xen.org/people/sstabellini/linux-pvhvm.git) all
output/error report and logging is done via hvc0.

Helper domain is debootstraped with 2 kernels (linux-image-amd64,
linux-image-xen-amd64) and is booted accordingly.

Floppy is not supported in PV so floppy is passed as another disk.

The images created can run on top of xen-hvm and xen-pvm hypervisor.

Change logging to start with HELPER_MONITOR_ in order to parse it when
having only one console.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
snf-image-helper/common.sh
snf-image-host/Makefile.am
snf-image-host/common.sh.in
snf-image-host/create
snf-image-host/defaults
snf-image-host/helper-monitor.py
snf-image-host/kvm-common.sh [new file with mode: 0644]
snf-image-host/snf-image-update-helper.in
snf-image-host/xen-common.sh [new file with mode: 0644]