VMware Cloud Community
cheerze
Contributor
Contributor

Changing Guest OS from command line

I'm looking for a way to change the Guest OS from the command line, since I can't access the GUI from a particular machine.
I couldn't find a way through vim-cmd, but I might have overlooked something. In this particular case I would like to change the Guest OS from Windows 8 to Windows Server 2016.

0 Kudos
4 Replies
DavoudTeimouri
Virtuoso
Virtuoso

Do you want change guest OS within virtual machine or guest OS on configuration?

Both are possible via different way but you need to unattended installation if you want to change guest OS within virtual machine.  

-------------------------------------------------------------------------------------
Davoud Teimouri - https://www.teimouri.net - Twitter: @davoud_teimouri Facebook: https://www.facebook.com/teimouri.net/
0 Kudos
cheerze
Contributor
Contributor

cheerze_0-1656600805683.png

This Windows machine should be Windows Server 2016, when I power it down I can't access VMWare any longer from the GUI. I can connect a monitor/keyboard to the machine and make changes from the CLI. Is it possible to change this from within the CLI and change it? I hope it could be as easy as upgrading the VM compatibility (vim-cmd vmsvc/upgrade {VMID} vmx-{HW-version}).

 

0 Kudos
DavoudTeimouri
Virtuoso
Virtuoso

I think that you can not upgrade hardware compatibility when virtual machine is powered-on and also may be you can't change OS version on settings.

If you can not power-off VM, so leave the settings without any change. You select Windows!.

Please consider that HW version is not related to OS family and version.

-------------------------------------------------------------------------------------
Davoud Teimouri - https://www.teimouri.net - Twitter: @davoud_teimouri Facebook: https://www.facebook.com/teimouri.net/
0 Kudos
continuum
Immortal
Immortal

Using putty and winscp ....
1. power off VM
2. unregister VM with esxcli / putty
3. edit vmx with embedded editor of winscp
4. register VM again with esxcli / putty
5. start VM

Ulli


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos