Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1802
  • Last Modified:

vm not visible in the datastore from vsphere but visible from the console

A VM is no longer visible from the vsphere client in the datastore.  But I can see it and all files from the console in vmfs\volumes...

I would like to put it back online.  

Thank you
0
quadrumane
Asked:
quadrumane
  • 5
  • 4
  • 4
3 Solutions
 
coolsport00Commented:
all you need to do is right click on the .vmx file and select add to inventory :)
~coolsport00
0
 
Paul SolovyovskyCommented:
Most likely it was unregistered from inventory.  Perform the steps that coolsport provided and it should be added in.
0
 
quadrumaneAuthor Commented:
I think I didn't not explain correctly.  I cannot click on the file when I< in putty.  I cannot see the vm files from the vsphere client but I can see it from putty.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
coolsport00Commented:
Oh...so if you browse the datastore, theyre not there but are in SSH?
0
 
coolsport00Commented:
Oh...so if you browse the datastore, theyre not there but are in SSH?
0
 
coolsport00Commented:
Sorry 4 the dbl post :)
0
 
Paul SolovyovskyCommented:
Download veeam  fastscp client, it uses ssh.  Copy it over to a safe place first to ensure you have  a good backup.  Rename folder and copy back to datastore if you have room.  Register VM and test.  If all works delete the old folder via putty.
0
 
quadrumaneAuthor Commented:
yes in SSH all files are there.  I've  probably done something I can't remember of but now the files still there for sure but I need to register it from putty (command line)  
0
 
quadrumaneAuthor Commented:
Ok, but I thought I could use a command in SSH to put it back online
0
 
quadrumaneAuthor Commented:
Are you sure we can't make it visible in the datastore without copying all files ?  It's a file serveur so it<s huge
0
 
coolsport00Commented:
Again...are the files not visible within the Client when you browse the datastore? If they are...just follow my instructions. If not, Paul's suggestion is best option...
0
 
Paul SolovyovskyCommented:
You could try

vmware-cmd -s register path_to_vmx_file
0
 
Paul SolovyovskyCommented:
vmware-cmd -s register vmfs/volume/vmfslabel/VMName/VMName.vmx

Use the path with the UUID (vmfslabel) where requested when using vmware-cmd and you can use vmware-cmd -l command to retrieve the UUID
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

  • 5
  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now