mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-03-04 01:38:12 +08:00
Update create_vm.sh
This commit is contained in:
parent
5814d7ff59
commit
4c1eed30f6
1 changed files with 2 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# from
|
||||
# https://github.com/spiritLHLS/pve
|
||||
# 2023.04.24
|
||||
# 2023.05.30
|
||||
|
||||
# cd /root
|
||||
|
||||
|
@ -132,13 +132,7 @@ build_new_vms(){
|
|||
if [ -z "$storage" ]; then
|
||||
storage="local"
|
||||
fi
|
||||
output=$(pvesm list | grep "$storage")
|
||||
if [ -n "$output" ]; then
|
||||
echo "存储盘 '$storage' 存在于Proxmox VE中。"
|
||||
break
|
||||
else
|
||||
echo "存储盘 '$storage' 不存在于Proxmox VE中,请重新输入"
|
||||
fi
|
||||
done
|
||||
while true; do
|
||||
reading "每个虚拟机分配多少硬盘?(若每个虚拟机分配5G硬盘,则输入5):" disk_nums
|
||||
|
|
Loading…
Reference in a new issue