: ${HELPER_SOFT_TIMEOUT:=120}
: ${HELPER_HARD_TIMEOUT:=5}
: ${HELPER_USER:="nobody"}
+: ${HELPER_MEMORY:="256"}
: ${PITHOS_DB:="sqlite:////@localstatedir@/lib/pithos/backend.db"}
: ${PITHOS_DATA:="@localstatedir@/lib/pithos/data/"}
: ${PROGRESS_MONITOR:="@PROGRESS_MONITOR@"}
# HELPER_USER imeddiately before starting execution of the helper VM.
# HELPER_USER="nobody"
+# HELPER_MEMORY: Virtual RAM size in megabytes to be given to the helper VM.
+# HELPER_MEMORY="256"
+
# MULTISTRAP_CONFIG: Configuration file to be used with multistrap to create
# the rootfs of the helper image.
# MULTISTRAP_CONFIG="@MULTISTRAP_CONFIG@"
$TIMEOUT -k "$HELPER_HARD_TIMEOUT" "$HELPER_SOFT_TIMEOUT" \
kvm -runas "$HELPER_USER" -drive file="$HELPER_DIR/image",format=raw,if=virtio,readonly \
- -drive file="$blockdev",format=raw,if=virtio,cache=none \
+ -drive file="$blockdev",format=raw,if=virtio,cache=none -m "$HELPER_MEMORY" \
-boot c -serial stdio -serial "file:$(printf "%q" "$result_file")" \
-serial file:>(./helper-monitor.py ${MONITOR_FD}) \
-fda "$floppy" -vga none -nographic -parallel none -monitor null \
xm create /dev/null \
kernel="$HELPER_DIR/kernel" ramdisk="$HELPER_DIR/initrd" \
- root="/dev/xvda1" memory="256" boot="c" vcpus=1 name="$name" \
+ root="/dev/xvda1" memory="$HELPER_MEMORY" boot="c" vcpus=1 name="$name" \
extra="console=hvc0 hypervisor=$HYPERVISOR snf_image_activate_helper \
ipv6.disable=1 rules_dev=/dev/xvdc ro boot=local helper_ip=10.0.0.1 \
monitor_port=48888 init=/usr/bin/snf-image-helper" \