[Kimchi-devel] [PATCH] Setup VM's boot order.
Daniel H Barboza
danielhb at linux.vnet.ibm.com
Fri Feb 14 16:20:42 UTC 2014
Reviewed-by: Daniel Barboza <danielhb at 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 at 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/>
More information about the Kimchi-devel
mailing list