mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-30 05:02:54 +08:00
Update newvm-proxmox.sh
This commit is contained in:
parent
6529db012a
commit
cc3fa8ac88
@ -2,10 +2,11 @@
|
|||||||
|
|
||||||
source ~/bin/failexit.mrg
|
source ~/bin/failexit.mrg
|
||||||
|
|
||||||
# converted qcows from vbox
|
# converted qcows from vbox are here
|
||||||
cd /mnt/seatera4-xfs
|
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
|
if [ "$1" = "" ]; then
|
||||||
failexit 101 "1st arg not supplied, must be VMNAME"
|
failexit 101 "1st arg not supplied, must be VMNAME"
|
||||||
@ -13,11 +14,11 @@ else
|
|||||||
newname="$1"
|
newname="$1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#linux=126
|
#linux=l26
|
||||||
#oldlinux=124
|
#oldlinux=l24
|
||||||
|
|
||||||
# integer / number
|
# integer / number
|
||||||
declare -i ram lastid newid #newidarg
|
declare -i ram lastid newid
|
||||||
|
|
||||||
if [ "$2" = "" ]; then
|
if [ "$2" = "" ]; then
|
||||||
ram=4096
|
ram=4096
|
||||||
@ -67,8 +68,3 @@ exit;
|
|||||||
|
|
||||||
L, not One
|
L, not One
|
||||||
--ostype <l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win11 | win7 | win8 | wvista | wxp>
|
--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'
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user