XenServer: new build and install scripts
Change-Id: Ia13a9c8073e59edf98415ba5b9f3a9cbd1453d32
diff --git a/tools/xen/scripts/install-os-vpx.sh b/tools/xen/scripts/install-os-vpx.sh
index 14240a7..fe5e810 100755
--- a/tools/xen/scripts/install-os-vpx.sh
+++ b/tools/xen/scripts/install-os-vpx.sh
@@ -332,17 +332,11 @@
{
local v="$1"
local args=$KERNEL_PARAMS
- local cmdline=$(cat /proc/cmdline)
- for word in $cmdline
- do
- if echo "$word" | grep -q "geppetto"
- then
- args="$word $args"
- fi
- done
if [ "$args" != "" ]
then
echo "Passing Geppetto args to VPX: $args."
+ pvargs=$(xe vm-param-get param-name=PV-args uuid="$v")
+ args="$pvargs $args"
xe vm-param-set PV-args="$args" uuid="$v"
fi
}
@@ -429,13 +423,17 @@
elif [ "$TEMPLATE_NAME" ]
then
echo $TEMPLATE_NAME
- vm_uuid=$(xe_min vm-install template="$TEMPLATE_NAME" new-name-label="DevstackOSDomu")
+ vm_uuid=$(xe_min vm-install template="$TEMPLATE_NAME" new-name-label="$NAME_LABEL")
destroy_vifs "$vm_uuid"
set_auto_start "$vm_uuid"
create_gi_vif "$vm_uuid"
create_vm_vif "$vm_uuid"
create_management_vif "$vm_uuid"
create_public_vif "$vm_uuid"
+ set_kernel_params "$vm_uuid"
+ xe vm-param-set other-config:os-vpx=true uuid="$vm_uuid"
+ xe vm-param-set actions-after-reboot=Destroy uuid="$vm_uuid"
+ set_memory "$vm_uuid"
else
if [ ! -f "$VPX_FILE" ]
then