Make backing image changes, fix minor spelling
This commit is contained in:
parent
ee7f0dbfe2
commit
2f60e2715e
@ -5,11 +5,12 @@
|
||||
# POSIX or die
|
||||
|
||||
vmname="$1"
|
||||
template_file="/tank/img/$2"
|
||||
# resolve the .qcow2 symlink so backing images never change
|
||||
template_file="/tank/img/$(readlink /tank/img/$2)"
|
||||
vcpus="$3"
|
||||
memory="$4"
|
||||
pubkeys="$5"
|
||||
root_voume_size="25G"
|
||||
root_volume_size="25G"
|
||||
|
||||
if echo "$vmname" | grep -vqE '^capsul-[a-z0-9]{10}$'; then
|
||||
echo "vmname $vmname must match "'"^capsul-[a-z0-9]{10}$"'
|
||||
@ -55,7 +56,7 @@ done
|
||||
|
||||
cloud-localds "$cdrom" /tmp/cloudinit.yml
|
||||
|
||||
qemu-img resize "$disk" "$root_voume_size"
|
||||
qemu-img resize "$disk" "$root_volume_size"
|
||||
virt-install \
|
||||
--memory "$memory" \
|
||||
--vcpus "$vcpus" \
|
||||
|
Loading…
Reference in New Issue
Block a user