Add support for using the bootloader in xen-pvm
authorJun Futagawa <jfut@integ.jp>
Tue, 29 Sep 2009 07:43:15 +0000 (16:43 +0900)
committerMichael Hanselmann <hansmi@google.com>
Mon, 5 Oct 2009 09:31:46 +0000 (11:31 +0200)
commit2f2dbb4b215d495f8e7d43e8bd1e6f1ab18dbdc7
treed18b41caf7543096d87c2cfee6545c2041ffa008
parent11c684bfdc93fce42419a363b8fdc7f390f35bb1
Add support for using the bootloader in xen-pvm

This patch adds three optional parameters:
  - 'use_bootloader', whether use or not the bootloader
  - 'bootloader_path', absolute path to the bootloader
  - 'bootloader_args', extra arguments to the bootloader

Syntax:
  gnt-cluster modify --hypervisor-parameters \
    xen-pvm:bootloader_path=/usr/bin/pygrub,use_bootloader=False
  gnt-instance modify -H use_bootloader=True instance1.example.com

If use_bootloader is True, each domU can boot with its own kernel
instead of using the dom0 kernel.

Signed-off-by: Jun Futagawa <jfut@integ.jp>
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: ultortter
Makefile.am
configure.ac
lib/constants.py
lib/hypervisor/hv_xen.py