Enable Xen/DevStackDomU to have larger disk

* Size of xvda can be specified via xenrc

  * Fixes bug 1076430

Change-Id: Ia4ffef98b01fa9572e43c46275a132b2b1e5f689
This commit is contained in:
Stef T 2012-11-08 10:46:48 -05:00
parent 8ac888d7dc
commit f993b2353f
2 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,7 @@ fi
# Clone built-in template to create new template
new_uuid=$(xe vm-clone uuid=$builtin_uuid \
new-name-label="$UBUNTU_INST_TEMPLATE_NAME")
disk_size=$(($OSDOMU_VDI_GB * 1024 * 1024 * 1024))
# Some of these settings can be found in example preseed files
# however these need to be answered before the netinstall
@ -73,6 +74,7 @@ xe template-param-set uuid=$new_uuid \
PV-args="$pvargs" \
other-config:debian-release="$UBUNTU_INST_RELEASE" \
other-config:default_template=true \
other-config:disks='<provision><disk device="0" size="'$disk_size'" sr="" bootable="true" type="system"/></provision>' \
other-config:install-arch="$UBUNTU_INST_ARCH"
echo "Ubuntu template installed uuid:$new_uuid"

View File

@ -11,6 +11,7 @@ GUEST_NAME=${GUEST_NAME:-DevStackOSDomU}
# Size of image
VDI_MB=${VDI_MB:-5000}
OSDOMU_MEM_MB=1024
OSDOMU_VDI_GB=8
# VM Password
GUEST_PASSWORD=${GUEST_PASSWORD:-secrete}