- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If your VMware Tools are on the correct version, you can use the Get-VMGuestDisk cmdlet.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have PowerCLI 12.0.1 installed, but we are still on vSphere 6.7, so we get this message:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's been a couple of months and I am just getting back to this after getting our vCenters upgraded to 7.0. The command Get-VMGuestDisk is useful, but it does not appear to give the details of SCSI device or the VMDK's location in storage. It does contain a reference back to the VM object (VMGuest), but no clear way to like the GuestDisks to VMDKs, like a UID or objectID.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have a look at New Release – PowerCLI 12, that explains how the link works.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the reply, but it is still not working for me. Here is what I am working with:
PowerCLI 12.2
VMware Tools 11.2.97 installed on the target VM
vCenter 7.0.1
when I run the commands, this is what I get:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The error is clear, that VM doesn't provide the Guest DIsk mapping.
That would mean one of the requirements for this to work is not met.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the RTFM response, and I am mostly kidding. I thought I had provided all the required info to show that I had already double-checked the prerequisites listed here. I did notice that the VM was still on an old version of virtual hardware, and upgraded it to v15. However, I am still getting the same results. I even checked the Developer Documentation on the command and found nothing additional. Any suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are some more requirements, not all of them documented in the PowerCLI Reference.
You might want to have a look at Cody's post What’s New in vSphere 7.0 Storage Part III: GuestInfo VirtualDiskMapping Linux, PowerCLI support
He lists his conclusion at the end of the post.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Crap - my ESXi hosts are still on 6.7 and ESXi 7.0 is required. I didn't find that specific piece of info until I checked out Part II of Cody's post.
I will move forward with my script that will work in both 6.7 and 7.0. It is not perfect because I am depending on the drives returned by Get-HardDrive to have been added in the same order they appear in the Get-VMGuestDisk. I will need to add some additional logic to verify.
Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How can I make this disk association to Linux server partitions (Red Hat Enterprise)