VMware Cloud Community
cbcampbell
Contributor
Contributor
Jump to solution

How Do I Set the Guest OS Version for a VM?

How do I set a VM's Guest OS Fullname via powercli?  I'm able to create a windows vm, assign IP info, set CPU, RAM, Disk, etc.  But I cannot figure out how to assign it a correct Guest OS Version i.e. "Microsoft Windows Server 2016 (64 bit)".  Any help is greatly appreciated.

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

There are two different indications of the guest OS.

One you can do when you create the VM with the New-VM cmdlet and the GuestId parameter.

And you can change that setting with the Set-VM cmdlet, again with the GuestId parameter.

The values you can specify are defined in the VirtualMachineGuestOsIdentifier enumerator.

But this setting is not binding, in fact you could pass the value windows9Guest, which would mean Windows 10, but you could still install for example a Linux OS on that VM.

The second one is the name of the guest OS, as determined by the VMware Tools (so you need to have VMware Tools installed to have this working).

This one you can not change.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
1 Reply
LucD
Leadership
Leadership
Jump to solution

There are two different indications of the guest OS.

One you can do when you create the VM with the New-VM cmdlet and the GuestId parameter.

And you can change that setting with the Set-VM cmdlet, again with the GuestId parameter.

The values you can specify are defined in the VirtualMachineGuestOsIdentifier enumerator.

But this setting is not binding, in fact you could pass the value windows9Guest, which would mean Windows 10, but you could still install for example a Linux OS on that VM.

The second one is the name of the guest OS, as determined by the VMware Tools (so you need to have VMware Tools installed to have this working).

This one you can not change.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos