Revision 971a3e68
b/snf-image-host/common.sh.in | ||
---|---|---|
452 | 452 |
: ${HELPER_SOFT_TIMEOUT:=120} |
453 | 453 |
: ${HELPER_HARD_TIMEOUT:=5} |
454 | 454 |
: ${HELPER_USER:="nobody"} |
455 |
: ${HELPER_MEMORY:="256"} |
|
455 | 456 |
: ${PITHOS_DB:="sqlite:////@localstatedir@/lib/pithos/backend.db"} |
456 | 457 |
: ${PITHOS_DATA:="@localstatedir@/lib/pithos/data/"} |
457 | 458 |
: ${PROGRESS_MONITOR:="@PROGRESS_MONITOR@"} |
b/snf-image-host/defaults.in | ||
---|---|---|
38 | 38 |
# HELPER_USER imeddiately before starting execution of the helper VM. |
39 | 39 |
# HELPER_USER="nobody" |
40 | 40 |
|
41 |
# HELPER_MEMORY: Virtual RAM size in megabytes to be given to the helper VM. |
|
42 |
# HELPER_MEMORY="256" |
|
43 |
|
|
41 | 44 |
# MULTISTRAP_CONFIG: Configuration file to be used with multistrap to create |
42 | 45 |
# the rootfs of the helper image. |
43 | 46 |
# MULTISTRAP_CONFIG="@MULTISTRAP_CONFIG@" |
b/snf-image-host/kvm-common.sh | ||
---|---|---|
35 | 35 |
|
36 | 36 |
$TIMEOUT -k "$HELPER_HARD_TIMEOUT" "$HELPER_SOFT_TIMEOUT" \ |
37 | 37 |
kvm -runas "$HELPER_USER" -drive file="$HELPER_DIR/image",format=raw,if=virtio,readonly \ |
38 |
-drive file="$blockdev",format=raw,if=virtio,cache=none \ |
|
38 |
-drive file="$blockdev",format=raw,if=virtio,cache=none -m "$HELPER_MEMORY" \
|
|
39 | 39 |
-boot c -serial stdio -serial "file:$(printf "%q" "$result_file")" \ |
40 | 40 |
-serial file:>(./helper-monitor.py ${MONITOR_FD}) \ |
41 | 41 |
-fda "$floppy" -vga none -nographic -parallel none -monitor null \ |
b/snf-image-host/xen-common.sh | ||
---|---|---|
32 | 32 |
|
33 | 33 |
xm create /dev/null \ |
34 | 34 |
kernel="$HELPER_DIR/kernel" ramdisk="$HELPER_DIR/initrd" \ |
35 |
root="/dev/xvda1" memory="256" boot="c" vcpus=1 name="$name" \
|
|
35 |
root="/dev/xvda1" memory="$HELPER_MEMORY" boot="c" vcpus=1 name="$name" \
|
|
36 | 36 |
extra="console=hvc0 hypervisor=$HYPERVISOR snf_image_activate_helper \ |
37 | 37 |
ipv6.disable=1 rules_dev=/dev/xvdc ro boot=local helper_ip=10.0.0.1 \ |
38 | 38 |
monitor_port=48888 init=/usr/bin/snf-image-helper" \ |
Also available in: Unified diff