From cc3fa8ac884d9df24ea93caf5f1f81eec3d47e7f Mon Sep 17 00:00:00 2001 From: kneutron <50146127+kneutron@users.noreply.github.com> Date: Mon, 19 Feb 2024 11:58:26 -0700 Subject: [PATCH] Update newvm-proxmox.sh --- proxmox/newvm-proxmox.sh | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/proxmox/newvm-proxmox.sh b/proxmox/newvm-proxmox.sh index c06a3eb..7556984 100644 --- a/proxmox/newvm-proxmox.sh +++ b/proxmox/newvm-proxmox.sh @@ -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 - -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'