vmware ESXI copy VM from one datastore to another datastore
for i in ./*.vmdk ; do
if [ -n "${i%%*flat.vmdk}" ]; then
# testmystring does not contain c0
echo $i;
vmkfstools -i "$i" "/vmfs/volumes/sun-nfs/vcsa8.mhasin.local/${i}";
fi
done
Ak su chyby pri kopirovani (vid obrazok subor 12 a 14) tak treba prikaz opakovat manualne:
vmkfstools -i ./vcsa8.mhasin.local_14.vmdk /vmfs/volumes/sun-nfs/vcsa8.mhasin
.local/vcsa8.mhasin.local_14.vmdk
Okopirovanie VMX suboru:
cp *.vmx /vmfs/volumes/sun-nfs/vcsa8.mhasin.local/