Update newvm-proxmox.sh

This commit is contained in:
kneutron 2024-02-19 11:58:26 -07:00 committed by GitHub
parent 6529db012a
commit cc3fa8ac88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,10 +2,11 @@
source ~/bin/failexit.mrg
# converted qcows from vbox
# converted qcows from vbox are here
cd /mnt/seatera4-xfs
echo "Usage: \$1=name-of-vm \$2=RAM-in-GB [optional] \$3=newvmnumber"
echo "Usage: \$1=name-of-vm \$2=RAM-in-GB [optional] \$3=newvmnumber [optional]"
# Use 3rd arg in case of new vm number not taking containers into account
if [ "$1" = "" ]; then
failexit 101 "1st arg not supplied, must be VMNAME"
@ -13,11 +14,11 @@ else
newname="$1"
fi
#linux=126
#oldlinux=124
#linux=l26
#oldlinux=l24
# integer / number
declare -i ram lastid newid #newidarg
declare -i ram lastid newid
if [ "$2" = "" ]; then
ram=4096
@ -67,8 +68,3 @@ exit;
L, not One
--ostype <l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win11 | win7 | win8 | wvista | wxp>
400 Parameter verification failed.
ostype: value '126' does not have a
value in the enumeration 'other, wxp, w2k, w2k3, w2k8, wvista, win7, win8,
win10, win11, l24, l26, solaris'