Update vmcreate1.sh

This commit is contained in:
2025-10-28 08:31:31 +00:00
parent 7f44fd6c50
commit f0286cfe32

View File

@@ -298,14 +298,15 @@ do
cat /etc/pve/qemu-server/${vmid}.conf
exit 102
###
echo -n "Migrating VM $vmid to pve${node}....."
qm migrate $vmid pve${node} &&
if [ $? -eq 0 ]; then
echo "OK"
else
echo "ERROR"
exit 9
fi
# # Migrate VM to target node
# echo -n "Migrating VM $vmid to pve${node}....."
# qm migrate $vmid pve${node} &&
# if [ $? -eq 0 ]; then
# echo "OK"
# else
# echo "ERROR"
# exit 9
# fi
# qm start $vmid ВРЕМЕННО ОТКЛЮЧЕНО
if [ $harule ]; then
ha-manager add vm:$vmid --state started --max_relocate 2