We help IT Professionals succeed at work.

Change Guest OS via CLI

182 Views
Last Modified: 2018-08-27
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

David FavorFractional CTO
CERTIFIED EXPERT
Distinguished Expert 2019

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
CERTIFIED EXPERT

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
CERTIFIED EXPERT
Fellow
Expert of the Year 2017
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
David FavorFractional CTO
CERTIFIED EXPERT
Distinguished Expert 2019

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
CERTIFIED EXPERT

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 PRO / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

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

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions