mirror of https://github.com/tteck/Proxmox.git
commit
71d320074e
|
@ -79,6 +79,8 @@ function default_settings() {
|
||||||
RAM_SIZE="512"
|
RAM_SIZE="512"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
|
echo -e "${DGN}Using Gateway Address ${BGN}NONE${CL}"
|
||||||
|
GATE=" "
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}NONE${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}NONE${CL}"
|
||||||
VLAN=" "
|
VLAN=" "
|
||||||
}
|
}
|
||||||
|
@ -209,6 +211,29 @@ header_info
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
read GATE1
|
||||||
|
if [ -z $GATE1 ]; then GATE1="NONE" GATE=" ";
|
||||||
|
echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
|
||||||
|
else
|
||||||
|
GATE="gw=$GATE1"
|
||||||
|
echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
|
||||||
|
fi;
|
||||||
|
echo -e " ${CM}${CL} \n"
|
||||||
|
sleep 1
|
||||||
|
clear
|
||||||
|
header_info
|
||||||
|
|
||||||
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
|
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
|
echo -e "${DGN}Using ID ${BGN}$CT_ID${CL}"
|
||||||
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
||||||
read VLAN1
|
read VLAN1
|
||||||
if [ -z $VLAN1 ]; then VLAN1="NONE" VLAN=" ";
|
if [ -z $VLAN1 ]; then VLAN1="NONE" VLAN=" ";
|
||||||
|
@ -230,6 +255,7 @@ header_info
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
||||||
|
|
||||||
read -p "Are these settings correct(y/n)? " -n 1 -r
|
read -p "Are these settings correct(y/n)? " -n 1 -r
|
||||||
|
|
|
@ -78,6 +78,8 @@ function default_settings() {
|
||||||
RAM_SIZE="2048"
|
RAM_SIZE="2048"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
|
echo -e "${DGN}Using Gateway Address ${BGN}NONE${CL}"
|
||||||
|
GATE=" "
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}NONE${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}NONE${CL}"
|
||||||
VLAN=" "
|
VLAN=" "
|
||||||
}
|
}
|
||||||
|
@ -208,6 +210,29 @@ header_info
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
read GATE1
|
||||||
|
if [ -z $GATE1 ]; then GATE1="NONE" GATE=" ";
|
||||||
|
echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
|
||||||
|
else
|
||||||
|
GATE="gw=$GATE1"
|
||||||
|
echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
|
||||||
|
fi;
|
||||||
|
echo -e " ${CM}${CL} \n"
|
||||||
|
sleep 1
|
||||||
|
clear
|
||||||
|
header_info
|
||||||
|
|
||||||
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
|
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
|
echo -e "${DGN}Using ID ${BGN}$CT_ID${CL}"
|
||||||
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
||||||
read VLAN1
|
read VLAN1
|
||||||
if [ -z $VLAN1 ]; then VLAN1="NONE" VLAN=" ";
|
if [ -z $VLAN1 ]; then VLAN1="NONE" VLAN=" ";
|
||||||
|
@ -229,6 +254,7 @@ header_info
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
||||||
|
|
||||||
read -p "Are these settings correct(y/n)? " -n 1 -r
|
read -p "Are these settings correct(y/n)? " -n 1 -r
|
||||||
|
|
|
@ -80,6 +80,8 @@ function default_settings() {
|
||||||
RAM_SIZE="1024"
|
RAM_SIZE="1024"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
|
echo -e "${DGN}Using Gateway Address ${BGN}NONE${CL}"
|
||||||
|
GATE=" "
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}NONE${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}NONE${CL}"
|
||||||
VLAN=" "
|
VLAN=" "
|
||||||
}
|
}
|
||||||
|
@ -210,6 +212,29 @@ header_info
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
read GATE1
|
||||||
|
if [ -z $GATE1 ]; then GATE1="NONE" GATE=" ";
|
||||||
|
echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
|
||||||
|
else
|
||||||
|
GATE="gw=$GATE1"
|
||||||
|
echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
|
||||||
|
fi;
|
||||||
|
echo -e " ${CM}${CL} \n"
|
||||||
|
sleep 1
|
||||||
|
clear
|
||||||
|
header_info
|
||||||
|
|
||||||
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
|
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
|
echo -e "${DGN}Using ID ${BGN}$CT_ID${CL}"
|
||||||
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
||||||
read VLAN1
|
read VLAN1
|
||||||
if [ -z $VLAN1 ]; then VLAN1="NONE" VLAN=" ";
|
if [ -z $VLAN1 ]; then VLAN1="NONE" VLAN=" ";
|
||||||
|
@ -231,8 +256,8 @@ header_info
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
||||||
|
|
||||||
read -p "Are these settings correct(y/n)? " -n 1 -r
|
read -p "Are these settings correct(y/n)? " -n 1 -r
|
||||||
echo
|
echo
|
||||||
if [[ ! $REPLY =~ ^[Yy]$ ]]
|
if [[ ! $REPLY =~ ^[Yy]$ ]]
|
||||||
|
|
|
@ -78,6 +78,8 @@ function default_settings() {
|
||||||
RAM_SIZE="2048"
|
RAM_SIZE="2048"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
|
echo -e "${DGN}Using Gateway Address ${BGN}NONE${CL}"
|
||||||
|
GATE=" "
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}NONE${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}NONE${CL}"
|
||||||
VLAN=" "
|
VLAN=" "
|
||||||
}
|
}
|
||||||
|
@ -208,6 +210,29 @@ header_info
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
read GATE1
|
||||||
|
if [ -z $GATE1 ]; then GATE1="NONE" GATE=" ";
|
||||||
|
echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
|
||||||
|
else
|
||||||
|
GATE="gw=$GATE1"
|
||||||
|
echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
|
||||||
|
fi;
|
||||||
|
echo -e " ${CM}${CL} \n"
|
||||||
|
sleep 1
|
||||||
|
clear
|
||||||
|
header_info
|
||||||
|
|
||||||
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
|
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
|
echo -e "${DGN}Using ID ${BGN}$CT_ID${CL}"
|
||||||
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
||||||
read VLAN1
|
read VLAN1
|
||||||
if [ -z $VLAN1 ]; then VLAN1="NONE" VLAN=" ";
|
if [ -z $VLAN1 ]; then VLAN1="NONE" VLAN=" ";
|
||||||
|
@ -229,6 +254,7 @@ header_info
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
||||||
|
|
||||||
read -p "Are these settings correct(y/n)? " -n 1 -r
|
read -p "Are these settings correct(y/n)? " -n 1 -r
|
||||||
|
|
|
@ -79,6 +79,8 @@ function default_settings() {
|
||||||
RAM_SIZE="2048"
|
RAM_SIZE="2048"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
|
echo -e "${DGN}Using Gateway Address ${BGN}NONE${CL}"
|
||||||
|
GATE=" "
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}NONE${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}NONE${CL}"
|
||||||
VLAN=" "
|
VLAN=" "
|
||||||
}
|
}
|
||||||
|
@ -209,6 +211,29 @@ header_info
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
read GATE1
|
||||||
|
if [ -z $GATE1 ]; then GATE1="NONE" GATE=" ";
|
||||||
|
echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
|
||||||
|
else
|
||||||
|
GATE="gw=$GATE1"
|
||||||
|
echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
|
||||||
|
fi;
|
||||||
|
echo -e " ${CM}${CL} \n"
|
||||||
|
sleep 1
|
||||||
|
clear
|
||||||
|
header_info
|
||||||
|
|
||||||
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
|
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
|
echo -e "${DGN}Using ID ${BGN}$CT_ID${CL}"
|
||||||
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
||||||
read VLAN1
|
read VLAN1
|
||||||
if [ -z $VLAN1 ]; then VLAN1="NONE" VLAN=" ";
|
if [ -z $VLAN1 ]; then VLAN1="NONE" VLAN=" ";
|
||||||
|
@ -230,6 +255,7 @@ header_info
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
||||||
|
|
||||||
read -p "Are these settings correct(y/n)? " -n 1 -r
|
read -p "Are these settings correct(y/n)? " -n 1 -r
|
||||||
|
|
|
@ -84,6 +84,8 @@ function default_settings() {
|
||||||
RAM_SIZE="2048"
|
RAM_SIZE="2048"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
|
echo -e "${DGN}Using Gateway Address ${BGN}NONE${CL}"
|
||||||
|
GATE=" "
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}NONE${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}NONE${CL}"
|
||||||
VLAN=" "
|
VLAN=" "
|
||||||
}
|
}
|
||||||
|
@ -214,6 +216,29 @@ header_info
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
read GATE1
|
||||||
|
if [ -z $GATE1 ]; then GATE1="NONE" GATE=" ";
|
||||||
|
echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
|
||||||
|
else
|
||||||
|
GATE="gw=$GATE1"
|
||||||
|
echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
|
||||||
|
fi;
|
||||||
|
echo -e " ${CM}${CL} \n"
|
||||||
|
sleep 1
|
||||||
|
clear
|
||||||
|
header_info
|
||||||
|
|
||||||
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
|
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
|
echo -e "${DGN}Using ID ${BGN}$CT_ID${CL}"
|
||||||
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
||||||
read VLAN1
|
read VLAN1
|
||||||
if [ -z $VLAN1 ]; then VLAN1="NONE" VLAN=" ";
|
if [ -z $VLAN1 ]; then VLAN1="NONE" VLAN=" ";
|
||||||
|
@ -235,6 +260,7 @@ header_info
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
||||||
|
|
||||||
read -p "Are these settings correct(y/n)? " -n 1 -r
|
read -p "Are these settings correct(y/n)? " -n 1 -r
|
||||||
|
|
|
@ -79,6 +79,8 @@ function default_settings() {
|
||||||
RAM_SIZE="512"
|
RAM_SIZE="512"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
|
echo -e "${DGN}Using Gateway Address ${BGN}NONE${CL}"
|
||||||
|
GATE=" "
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}NONE${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}NONE${CL}"
|
||||||
VLAN=" "
|
VLAN=" "
|
||||||
}
|
}
|
||||||
|
@ -209,6 +211,29 @@ header_info
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
read GATE1
|
||||||
|
if [ -z $GATE1 ]; then GATE1="NONE" GATE=" ";
|
||||||
|
echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
|
||||||
|
else
|
||||||
|
GATE="gw=$GATE1"
|
||||||
|
echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
|
||||||
|
fi;
|
||||||
|
echo -e " ${CM}${CL} \n"
|
||||||
|
sleep 1
|
||||||
|
clear
|
||||||
|
header_info
|
||||||
|
|
||||||
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
|
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
|
echo -e "${DGN}Using ID ${BGN}$CT_ID${CL}"
|
||||||
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
||||||
read VLAN1
|
read VLAN1
|
||||||
if [ -z $VLAN1 ]; then VLAN1="NONE" VLAN=" ";
|
if [ -z $VLAN1 ]; then VLAN1="NONE" VLAN=" ";
|
||||||
|
@ -230,6 +255,7 @@ header_info
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
||||||
|
|
||||||
read -p "Are these settings correct(y/n)? " -n 1 -r
|
read -p "Are these settings correct(y/n)? " -n 1 -r
|
||||||
|
@ -267,7 +293,7 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
-net0 name=eth0,bridge=vmbr0,ip=$NET
|
-net0 name=eth0,bridge=vmbr0,$GATE,ip=$NET
|
||||||
$VLAN
|
$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
|
|
|
@ -80,6 +80,8 @@ function default_settings() {
|
||||||
RAM_SIZE="1024"
|
RAM_SIZE="1024"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
|
echo -e "${DGN}Using Gateway Address ${BGN}NONE${CL}"
|
||||||
|
GATE=" "
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}NONE${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}NONE${CL}"
|
||||||
VLAN=" "
|
VLAN=" "
|
||||||
}
|
}
|
||||||
|
@ -210,6 +212,29 @@ header_info
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
read GATE1
|
||||||
|
if [ -z $GATE1 ]; then GATE1="NONE" GATE=" ";
|
||||||
|
echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
|
||||||
|
else
|
||||||
|
GATE="gw=$GATE1"
|
||||||
|
echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
|
||||||
|
fi;
|
||||||
|
echo -e " ${CM}${CL} \n"
|
||||||
|
sleep 1
|
||||||
|
clear
|
||||||
|
header_info
|
||||||
|
|
||||||
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
|
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
|
echo -e "${DGN}Using ID ${BGN}$CT_ID${CL}"
|
||||||
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
||||||
read VLAN1
|
read VLAN1
|
||||||
if [ -z $VLAN1 ]; then VLAN1="NONE" VLAN=" ";
|
if [ -z $VLAN1 ]; then VLAN1="NONE" VLAN=" ";
|
||||||
|
@ -231,8 +256,8 @@ header_info
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
||||||
|
|
||||||
read -p "Are these settings correct(y/n)? " -n 1 -r
|
read -p "Are these settings correct(y/n)? " -n 1 -r
|
||||||
echo
|
echo
|
||||||
if [[ ! $REPLY =~ ^[Yy]$ ]]
|
if [[ ! $REPLY =~ ^[Yy]$ ]]
|
||||||
|
|
|
@ -79,6 +79,8 @@ function default_settings() {
|
||||||
RAM_SIZE="1024"
|
RAM_SIZE="1024"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
|
echo -e "${DGN}Using Gateway Address ${BGN}NONE${CL}"
|
||||||
|
GATE=" "
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}NONE${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}NONE${CL}"
|
||||||
VLAN=" "
|
VLAN=" "
|
||||||
}
|
}
|
||||||
|
@ -209,6 +211,29 @@ header_info
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
read GATE1
|
||||||
|
if [ -z $GATE1 ]; then GATE1="NONE" GATE=" ";
|
||||||
|
echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
|
||||||
|
else
|
||||||
|
GATE="gw=$GATE1"
|
||||||
|
echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
|
||||||
|
fi;
|
||||||
|
echo -e " ${CM}${CL} \n"
|
||||||
|
sleep 1
|
||||||
|
clear
|
||||||
|
header_info
|
||||||
|
|
||||||
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
|
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
|
echo -e "${DGN}Using ID ${BGN}$CT_ID${CL}"
|
||||||
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
||||||
read VLAN1
|
read VLAN1
|
||||||
if [ -z $VLAN1 ]; then VLAN1="NONE" VLAN=" ";
|
if [ -z $VLAN1 ]; then VLAN1="NONE" VLAN=" ";
|
||||||
|
@ -230,6 +255,7 @@ header_info
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using IP Address ${BGN}$NET${CL}"
|
||||||
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
||||||
|
|
||||||
read -p "Are these settings correct(y/n)? " -n 1 -r
|
read -p "Are these settings correct(y/n)? " -n 1 -r
|
||||||
|
|
Loading…
Reference in New Issue