Compare commits

..

No commits in common. "15e88c0b382fccaa52ce429ee35b6fce004823a0" and "8e7f50c2e504439bbb314c18a7b49c942eb5585c" have entirely different histories.

View File

@ -139,14 +139,7 @@ fi
echo "Creating VM with RR ... "
# 获取可用的 VMID
last_vmid=$(qm list | awk 'NR>1{print$1}' | sort -n | tail -1 2>/dev/null)
if [ -z "$last_vmid" ]; then
# 如果 last_vmid 是空字符串说明没有VM设置一个起始ID
VMID=100
else
# 否则在最后一个ID的基础上加1
VMID=$((last_vmid + 1))
fi
VMID="$(($(qm list | awk 'NR>1{print $1}' | sort -n | tail -1 2>/dev/null || echo 99) + 1))"
ARGS=""
SATAIDX=0