Browse code

Enable Xen/DevStackDomU to have larger disk

* Size of xvda can be specified via xenrc

* Fixes bug 1076430

Change-Id: Ia4ffef98b01fa9572e43c46275a132b2b1e5f689

Stef T authored on 2012/11/09 00:46:48
Showing 2 changed files
... ...
@@ -45,6 +45,7 @@ fi
45 45
 # Clone built-in template to create new template
46 46
 new_uuid=$(xe vm-clone uuid=$builtin_uuid \
47 47
     new-name-label="$UBUNTU_INST_TEMPLATE_NAME")
48
+disk_size=$(($OSDOMU_VDI_GB * 1024 * 1024 * 1024))
48 49
 
49 50
 # Some of these settings can be found in example preseed files
50 51
 # however these need to be answered before the netinstall
... ...
@@ -73,6 +74,7 @@ xe template-param-set uuid=$new_uuid \
73 73
     PV-args="$pvargs" \
74 74
     other-config:debian-release="$UBUNTU_INST_RELEASE" \
75 75
     other-config:default_template=true \
76
+    other-config:disks='<provision><disk device="0" size="'$disk_size'" sr="" bootable="true" type="system"/></provision>' \
76 77
     other-config:install-arch="$UBUNTU_INST_ARCH"
77 78
 
78 79
 echo "Ubuntu template installed uuid:$new_uuid"
... ...
@@ -11,6 +11,7 @@ GUEST_NAME=${GUEST_NAME:-DevStackOSDomU}
11 11
 # Size of image
12 12
 VDI_MB=${VDI_MB:-5000}
13 13
 OSDOMU_MEM_MB=1024
14
+OSDOMU_VDI_GB=8
14 15
 
15 16
 # VM Password
16 17
 GUEST_PASSWORD=${GUEST_PASSWORD:-secrete}