Hello all,
I've scoured Google and the VMware Communities discussions for an answer to this question and I've come up dry. Now it may sound like I'm splitting hairs but I cannot find a -guestid option for "Microsoft Windows Sever 2008 (64 bit)" There is indeed an option for "Microsoft Windows Sever 2008 R2 (64 bit)" When creating a VM from the vSphere Client it's possible to get the former as a Guest OS. However when working in PowerCLI I can only seem to get the latter as a Guest OS. I'm not entirely sure what I'm missing. How do I get the new-vm cmdlet to set the Guest OS of my new vm to "Microsoft Windows Sever 2008 (64 bit)"?
Thank you.
Try winLonghorn64Guest
Twitter: @sixfootdad
Blog: damiankarlson.com
Try winLonghorn64Guest
Twitter: @sixfootdad
Blog: damiankarlson.com
The guestId for a Windows 2008 64-bit is "winLonghorn64Guest".
You can find all the guestIds in the SDK Reference in the VirtualMachineGuestOsIdentifier enumeration type.
This OS was introduced in API 2.5 as experimental and I suspect VMware never updated the identifier in later API version for compatibility reasons.
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank both of you, that worked. I'll try more experimenting next time!
Hello,
you can find GuestID options in New-VM help:
http://www.vmware.com/support/developer/windowstoolkit/wintk40u1/html/New-VM.html
Vitali
PowerCLI Team
Hi Vitali,
It seems the list in the New-VM is not up-to-date.
The vSphere 4.1 additions are missing (centosGuest,centos64Guest,eComStationGuest...).
I don't think it's a good idea to replicate the official list, perhaps a link to the official list is better ?
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks for the note Luc
Vitali
PowerCLI Team