Avatar of LateNaite
LateNaite
Flag for United States of America asked on

Change Guest OS via CLI

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?
LinuxVirtualizationOperating SystemsVMware

Avatar of undefined
Last Comment
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

8/22/2022 - Mon
David Favor

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 Silva

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...
ASKER CERTIFIED SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
David Favor

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...
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Scott Silva

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...
LateNaite

ASKER
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 PRO / EE Fellow/British Beekeeper)

No problems, glad to help out with your issues. Have a good day.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.