[Kimchi-devel] [PATCH] Setup VM's boot order.

Paulo Vital pvital at linux.vnet.ibm.com
Fri Feb 14 16:04:59 UTC 2014


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/>
-- 
1.8.3.1




More information about the Kimchi-devel mailing list