Change Guest OS via CLI

LateNaite
LateNaite used Ask the Experts™
on
Is there a way to change the Guest Operation System via CLI without damaging the VM?

I am getting this error:

The configured guest OS (Other (64-bit)) for this virtual machine does not match the guest that is currently running (Red Hat Linux 6 (64-bit).  You should specify the correct guest OS to allow for guest-specific optimizations ..

I selected other since I didn't know the OS format of the ISO image that I loaded and now I am getting the error after the VM is deployed with that ISO image and has some configuraiton.

When I try to go to edit settings under VM Options, General Options and Guest OS, it is greyed out and I can't select the other OS.  Do you know if there is a way to change this (through CLI perhaps) without having to re-image and recreate the VM again?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
David FavorFractional CTO
Distinguished Expert 2018

Commented:
You asked...

Is there a way to change the Guest Operation System via CLI without damaging the VM?

Yes.

And, you'll do this by simply installing a new OS, which will obliterate all data associated with the previous OS.

So your VM settings will remain intact + all OS related will get nuked.

Unsure if this is really what you're after.
Scott SilvaNetwork Administrator

Commented:
You can try to change it, but what actually gets changed is many things from what kind of hard drive is emulated to chipsets and even network cards... It is usually just easier to reinstall...
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
I selected other since I didn't know the OS format of the ISO image that I loaded and now I am getting the error after the VM is deployed with that ISO image and has some configuraiton.

WHAT ???? you don't know the OS you are installing so you selected Other.... So what are you going to change the OS to, if you don't know what it is ?

Are you editing, when the VM is Powered ON ?

Try turning the VM Off.

I am getting this error:

The configured guest OS (Other (64-bit)) for this virtual machine does not match the guest that is currently running (Red Hat Linux 6 (64-bit).  You should specify the correct guest OS to allow for guest-specific optimizations ..

This error is mainly cosmetic, all these options do is setup the recommended template for the OS, e.g. Recommended CPU, Memory and Disk Size, it does not do anything really important!!!

Maybe recommended network, and storage controller to use.... but it's your VM, you control what devices and specifications it uses!

I would not lose sleep over it!

e.g. you could set it to Windows 7, and you are using Windows 10 - the world is not going to implode!
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

David FavorFractional CTO
Distinguished Expert 2018

Commented:
Also, VM settings are... well... barely any settings at all...

If you get in a bind, just delete the VM + start over.

VM level settings can be duplicated in a few seconds... usually...
Scott SilvaNetwork Administrator

Commented:
I believe the biggest change is scsi card emulation, or at least it used to be. Some OS's had native drivers for Buslogic, and some didn't...
LateNaiteCEO and Founder

Author

Commented:
Thank you Andrew!  I knew you would have the answer!  

I didn't turn off the VM before editing. I"m all set.

Thank you!
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
No problems, glad to help out with your issues. Have a good day.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial