Update qmcreate.sh

This commit is contained in:
2025-10-22 15:37:42 +00:00
parent 41e8437f68
commit f28bab46c8

View File

@@ -13,10 +13,6 @@ do
## preparing custom CloudInit snippets ## preparing custom CloudInit snippets
cp ./user.yaml /mnt/pve/syno-tigra/snippets/${vmnum}_user.yaml cp ./user.yaml /mnt/pve/syno-tigra/snippets/${vmnum}_user.yaml
sed -i "s/HOSTNAME/$hostname/g" /mnt/pve/syno-tigra/snippets/${vmnum}_user.yaml sed -i "s/HOSTNAME/$hostname/g" /mnt/pve/syno-tigra/snippets/${vmnum}_user.yaml
if [ -e "./gfx.pub" ]
then echo "key OK"
else echo "key ERROR. Put the public key named 'gfx.pub'"; exit 2
fi
qm resize $vmnum scsi0 +50G qm resize $vmnum scsi0 +50G
qm set $vmnum --cicustom "user=syno-tigra:snippets/${vmnum}_user.yaml" qm set $vmnum --cicustom "user=syno-tigra:snippets/${vmnum}_user.yaml"
qm set $vmnum --ipconfig0 ip=$ip/24,gw=10.10.35.1 qm set $vmnum --ipconfig0 ip=$ip/24,gw=10.10.35.1