You need use VMWare tools installed on your guests and run commands inside the guest. This article illustrates how to do so using vijava: http://www.doublecloud.org/2012/02/run-program-in-guest-operating-system-on-vmware/
If you use windows I recommend PowerCLI + Invoke-VmScript
cmdlet(https://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Invoke-VMScript.html)
It will allow you to run a powershell command (for a windows boxes) to determine partition layout. The following lines will return $True
if GPT partition is detected.
$disks = gwmi -query "Select * from Win32_DiskPartition"
foreach($disk in $disks) {
if ($disk.Type.StartsWith("GPT")){
return $true
}
}
Similarly, on a linux guests something like this will achieve desired effect:
fdisk -l | grep -i gpt > /dev/null ; echo $?
Above command will return 0 if GPT partitions exits because you should get a warning "WARNING: GPT (GUID Partition Table) detected on.." which grep -i gpt
will pick up.