2023.08.02

This commit is contained in:
spiritlhl 2023-08-02 03:50:21 +00:00
parent 2d84a8c6d1
commit e559e52104
3 changed files with 9 additions and 6 deletions

View file

@ -100,8 +100,8 @@ if [ "$system_arch" = "x86" ]; then
"ubuntu20"
"ubuntu22"
"centos7"
"archlinux"
"almalinux8"
"archlinux"
"almalinux8"
"almalinux9"
"fedora33"
"fedora34"
@ -218,6 +218,7 @@ user_ip="172.16.1.${num}"
qm set $vm_num --ipconfig0 ip=${user_ip}/24,gw=172.16.1.1
qm set $vm_num --cipassword $password --ciuser $user
# qm set $vm_num --agent 1
sleep 3
qm resize $vm_num scsi0 ${disk}G
if [ $? -ne 0 ]; then
if [[ $disk =~ ^[0-9]+G$ ]]; then

View file

@ -97,8 +97,8 @@ if [ "$system_arch" = "x86" ]; then
"ubuntu20"
"ubuntu22"
"centos7"
"archlinux"
"almalinux8"
"archlinux"
"almalinux8"
"almalinux9"
"fedora33"
"fedora34"
@ -275,6 +275,7 @@ qm set $vm_num --nameserver 8.8.8.8
qm set $vm_num --searchdomain 8.8.4.4
qm set $vm_num --ipconfig0 ip=${user_ip}/${user_ip_range},gw=${gateway}
qm set $vm_num --cipassword $password --ciuser $user
sleep 3
# qm set $vm_num --agent 1
qm resize $vm_num scsi0 ${disk}G
if [ $? -ne 0 ]; then

View file

@ -125,8 +125,8 @@ if [ "$system_arch" = "x86" ]; then
"ubuntu20"
"ubuntu22"
"centos7"
"archlinux"
"almalinux8"
"archlinux"
"almalinux8"
"almalinux9"
"fedora33"
"fedora34"
@ -279,6 +279,7 @@ qm set $vm_num --searchdomain 8.8.4.4
qm set $vm_num --ipconfig0 ip=${user_ip}/${user_ip_range},gw=${gateway}
qm set $vm_num --cipassword $password --ciuser $user
# qm set $vm_num --agent 1
sleep 3
qm resize $vm_num scsi0 ${disk}G
if [ $? -ne 0 ]; then
if [[ $disk =~ ^[0-9]+G$ ]]; then