[PATCH] Setup VM's boot order.

In order to prevent the VM to boot *only* by virtual disk during the first boot, setup the boot order to: 1st option: disk; 2nd option: cdrom. This configuration guarantees that the virtual firmware will boot by cdrom after check there is no boot section on default disk. Signed-off-by: Paulo Vital <pvital@linux.vnet.ibm.com> --- src/kimchi/vmtemplate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kimchi/vmtemplate.py b/src/kimchi/vmtemplate.py index 37994c2..999473c 100644 --- a/src/kimchi/vmtemplate.py +++ b/src/kimchi/vmtemplate.py @@ -277,6 +277,8 @@ class VMTemplate(object): <vcpu>%(cpus)s</vcpu> <os> <type arch='%(arch)s'>hvm</type> + <boot dev='hd'/> + <boot dev='cdrom'/> </os> <features> <acpi/> -- 1.8.3.1

Reviewed-by: Daniel Barboza <danielhb@linux.vnet.ibm.com> On 02/14/2014 02:04 PM, Paulo Vital wrote:
In order to prevent the VM to boot *only* by virtual disk during the first boot, setup the boot order to: 1st option: disk; 2nd option: cdrom.
This configuration guarantees that the virtual firmware will boot by cdrom after check there is no boot section on default disk.
Signed-off-by: Paulo Vital <pvital@linux.vnet.ibm.com> --- src/kimchi/vmtemplate.py | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/src/kimchi/vmtemplate.py b/src/kimchi/vmtemplate.py index 37994c2..999473c 100644 --- a/src/kimchi/vmtemplate.py +++ b/src/kimchi/vmtemplate.py @@ -277,6 +277,8 @@ class VMTemplate(object): <vcpu>%(cpus)s</vcpu> <os> <type arch='%(arch)s'>hvm</type> + <boot dev='hd'/> + <boot dev='cdrom'/> </os> <features> <acpi/>

Reviewed-by: Crístian Viana <vianac@linux.vnet.ibm.com> Am 14-02-2014 14:04, schrieb Paulo Vital:
In order to prevent the VM to boot *only* by virtual disk during the first boot, setup the boot order to: 1st option: disk; 2nd option: cdrom.
This configuration guarantees that the virtual firmware will boot by cdrom after check there is no boot section on default disk.
Signed-off-by: Paulo Vital <pvital@linux.vnet.ibm.com>
participants (4)
-
Aline Manera
-
Crístian Viana
-
Daniel H Barboza
-
Paulo Vital