mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-01-31 10:09:03 +08:00
2023.08.02
This commit is contained in:
parent
2d84a8c6d1
commit
e559e52104
3 changed files with 9 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue