|
...
|
...
|
@@ -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"
|