Site Tools


vmware:troubleshooting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
vmware:troubleshooting [2021/01/07 11:04] lunetikkvmware:troubleshooting [2021/09/16 17:17] lunetikk
Line 231: Line 231:
 To fix the logrotate/cron, check [[https://kb.vmware.com/s/article/2149278|VMware KB 2149278]] To fix the logrotate/cron, check [[https://kb.vmware.com/s/article/2149278|VMware KB 2149278]]
  
 +==== Restore from different datastore ====
  
 +A VM is broken and needs to be restored. To do so you need to copy the VM from the backup datastore to your productive one \\
 +
 +__Reason:__ \\
 +You dont want to run VMs from your backup datastore \\
 +
 +__Fix:__ \\
 +Connect to your esx host via ssh and copy the files with "cp" or "vmkfstools"\\
 +Make sure you either rename your old .vmdk + flatfile to .old or your restore to something different (rename flat in .vmdk)
 +<code bash>
 +cp -a myvm.vmdk /vmfs/volumes/prod_datastore/myvm/myvm.vmdk
 +cp -a myvm-flat.vmdk /vmfs/volumes/prod_datastore/myvm/myvm-flat.vmdk
 +</code>
 +
 +With vmkfstools you dont need to edit the flat name inside .vmdk, the tool does this for you if you choose another name
 +<code bash>
 +vmkfstools -i myvm.vmdk /vmfs/volumes/prod_datastore/myvm/myvm.vmdk
 +</code>
 +
 +\\
vmware/troubleshooting.txt · Last modified: 2022/09/03 16:27 by lunetikk