!/bin/bash
namePrefix="RCXXX"
ipPrefix="10.2.10."
ipStart=1
ipStop=2
os="template-centos6.9-50g.ova"
for i in seq $ipstart $ipStop
do
    echo $i
    vmname="$namePrefix-$ipPrefix$i"
    echo $vmname
    ovftool -dm=thin -ds=10K '--net:105=vlan4'  '--numberOfCpus:template-centos6.9-50g=2' '--coresPerSocket:template-centos6.9-50g=2' '--memorySize:template-centos6.9-50g=1024' --overwrite "--name=$vmname" 
http://172.16.10.104:1280/ovf/${os} 'vi://root:123@172.16.10.41'
done
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2018-03-06 16:40:09

results matching ""

    No results matching ""