Revision 4e11824c snf-image-host/create
b/snf-image-host/create | ||
---|---|---|
102 | 102 |
|
103 | 103 |
"$QEMU_IMG" create -f qcow2 -b "$HELPER_IMG" "$snapshot" |
104 | 104 |
|
105 |
echo "$(date +%Y:%m:%d-%H:%M:%S.%N) Starting helper VM..." |
|
105 | 106 |
"$TIMELIMIT" -t "$HELPER_SOFT_TIMEOUT" -T "$HELPER_HARD_TIMEOUT" \ |
106 | 107 |
kvm -runas "$HELPER_USER" -drive file="$snapshot" \ |
107 | 108 |
-drive file="$root_dev",format=raw,if=virtio,cache=none \ |
... | ... | |
110 | 111 |
-kernel "$HELPER_KERNEL" -initrd "$HELPER_INITRD" \ |
111 | 112 |
-append "quiet ro root=/dev/sda1 console=ttyS0,9600n8 snf_image_activate_helper" \ |
112 | 113 |
2>&1 | sed 's|^|HELPER: |g' |
114 |
echo "$(date +%Y:%m:%d-%H:%M:%S.%N) Helper VM finished." |
|
113 | 115 |
|
114 | 116 |
if [ $? -ne 0 ]; then |
115 | 117 |
if [ $? -gt 128 ]; then |
Also available in: Unified diff