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?
LateNaiteCEO and FounderAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
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.
0
Scott SilvaNetwork AdministratorCommented:
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...
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
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...
0
Scott SilvaNetwork AdministratorCommented:
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...
0
LateNaiteCEO and FounderAuthor 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!
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
No problems, glad to help out with your issues. Have a good day.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.