diff --git a/scripts/buildvm.sh b/scripts/buildvm.sh index 3096f9d..8e82519 100644 --- a/scripts/buildvm.sh +++ b/scripts/buildvm.sh @@ -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 diff --git a/scripts/buildvm_extraip.sh b/scripts/buildvm_extraip.sh index c87d040..765a50d 100644 --- a/scripts/buildvm_extraip.sh +++ b/scripts/buildvm_extraip.sh @@ -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 diff --git a/scripts/buildvm_manual_ip.sh b/scripts/buildvm_manual_ip.sh index cb4e42e..9f0fca9 100644 --- a/scripts/buildvm_manual_ip.sh +++ b/scripts/buildvm_manual_ip.sh @@ -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