so tiredserver died and templates are all over the place. where are they, really?
PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI>
foreach($vmhost in get-vmhost){get-template -Location $vmhost | select name,@{n='VMHOST';e={$vmhost.name}},@{n='VMTX';e={$_.extensiondata.config.files.VmPathName}}}
Name VMHOST VMTX
---- ------ ----
win2008 192.168.0.190 [tiredserver] win2k8R2-64-ffan/win2k8R2-64-ffan.vmtx
SLES11-64-JAVA1.7-15GB 192.168.0.190 [esx--host05] clone-vm/clone-vm.vmtx
SLES11-64 192.168.0.190 [awakeserver] SLES11-64/SLES11-64.vmtx
SLES11Clone 192.168.0.190 [esx--host05] SLES11Clone/SLES11Clone.vmtx
SLES11-64-JAVA1.7 192.168.0.190 [awakeserver] SLES11-64-JAVA1.7/SLES11-64-JAVA1.7.vmtx
win2012-gui 192.168.0.190 [esx--host05] win2012-gui/win2012-gui.vmtx
win2012-core 192.168.0.190 [esx--host05] win2012-core/win2012-core.vmtx
tmpl 192.168.0.190 [esx--host05] tmpl/tmpl.vmtx
and then you edit the vmtx files to point somewhere else. and then you register them. yes, you do.
vim-cmd solo/registervm /vmfs/volumes/datastore_name/VM_directory/VM_name.vmtx
No comments:
Post a Comment