Skip to content

Commit ac2cfe7

Browse files
committed
Set default options when creating ESXi resource pool
1 parent a06ad9f commit ac2cfe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

create-esxi-resource-pool.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ fi
77

88
POOL_NAME=$1
99

10-
POOL_ID=`vim-cmd hostsvc/rsrc/create ha-root-pool $POOL_NAME | sed -rn "s/'vim.ResourcePool:(.+)'/\1/p"`
10+
POOL_ID=`vim-cmd hostsvc/rsrc/create --cpu-min-expandable=true --cpu-shares=normal --mem-min-expandable=true --mem-shares=normal ha-root-pool $POOL_NAME | sed -rn "s/'vim.ResourcePool:(.+)'/\1/p"`
1111
echo $POOL_ID
1212

0 commit comments

Comments
 (0)