Why does this mismatch happen?
As you are upgrading your OS to a newer version or simply chose the wrong (VM Guest Operating Setting) profile to run a different OS.
From Cloud Portal you might see something like this. In this example all virtual machines are running Windows Server 2016, however Cloud portal is showing Microsoft Windows Server 2008
From the vss-cli you might see something like this. Let's proceed to show the virtual machines filtered by name.
vss-cli --columns moref,name,admin,guest_id,guest_full_name,guest_id_run,guest_full_name_run compute vm ls -f name=<NAME_OF_VM>
output:
moref name guest_id guest_full_name guest_id_run guest_full_name_run ------- ------------------ --------------------- -------------------------------------- --------------------- ----------------------------------------------- vm-XXXX <NAME_OF_VM> windows8Server64Guest Microsoft Windows Server 2012 (64-bit) windows9Server64Guest Microsoft Windows Server 2016 or later (64-bit)
The importance of this output is the mismatch between the guest_full_name column and guest_full_name_run. What it means is that you are running Windows Server 2016 with a profile of Windows Server 2012.
How does this affect your environment?
The profile attached to the VM will help to take advantages of the OS features. Windows 2016 won’t take advantage of all the features because is configured with the Windows 2012 profile.
How can you fix the mismatch configuration?
VSS-CLI
List the guest_id that matches the full_name OS you are looking for
vss-cli compute os ls
output:
id guest_id full_name family ---- ----------------------- -------------------------------------------------------------------- ---------------- 30 rhel7Guest Red Hat Enterprise Linux 7 linuxGuest 28 solaris6Guest Solaris 6 None 31 solaris7Guest Solaris 7 None 94 asianux8_64Guest Asianux Server 8 (64 bit) None 88 oracleLinux6_64Guest Oracle 6 (64-bit) None 89 oracleLinux6Guest Oracle 6 None 90 oracleLinux7_64Guest Oracle 7 (64-bit) None 91 oracleLinux7Guest Oracle 7 None 92 asianux5_64Guest Asianux Server 5 (64 bit) None 93 asianux7_64Guest Asianux Server 7 (64 bit) None 3 winNetStandard64Guest Microsoft Windows Server 2003 Standard Edition (64 bit) windowsGuest 8 centosGuest CentOS 4/5 linuxGuest 9 other24xLinux64Guest Linux 2.4x Kernel (64 bit) (experimental) linuxGuest 10 fedoraGuest Fedora Linux linuxGuest 17 slesGuest Suse Linux Enterprise Server 9 linuxGuest 23 rhel3Guest Red Hat Enterprise Linux 3 linuxGuest 95 vmwarePhoton64Guest VMware Photon (64 bit) linuxGuest
Tun off the Virtual Machine
vss-cli compute vm set <VM_ID> state off
Configure the right OS, replace the Windows2012 profile to Windows 2016 profile
vss-cli compute vm set <VM_ID> os windows9Server64Guest
Turn of the Virtual Machine
vss-cli compute vm set <VM_ID> state on