VMware Cloud Community
Thuizt
Contributor
Contributor
Jump to solution

edit VM settings through config files ??

Hello,

Is it possible to edit the settings of a VM by directly editing config files on the esxi host ?

And does anyone know where these files are stored ? Searched for them but couldn't find any (yet)

Say use winscp to edit the config file that reflects the VM ??

Thanks

0 Kudos
1 Solution

Accepted Solutions
DSTAVERT
Immortal
Immortal
Jump to solution

Remove the original VM. Right click on the VM an "Remove from Inventory". Open the Datastore and browse to the vmx file. Right click and "Add to Inventory"

-- David -- VMware Communities Moderator

View solution in original post

0 Kudos
9 Replies
AntonVZhbankov
Immortal
Immortal
Jump to solution

VM config files are .vmx


---

VMware vExpert '2009

http://blog.vadmin.ru

EMCCAe, HPE ASE, MCITP: SA+VA, VCP 3/4/5, VMware vExpert XO (14 stars)
VMUG Russia Leader
http://t.me/beerpanda
0 Kudos
weinstein5
Immortal
Immortal
Jump to solution

Yes you can edit the VMX file directly and as Anton pointed out they have a file extension .vmx. They are typically stored with the boot virtual disk and vm log file. If the VM is running you will need to power off and power on the VM for the changes to take effect.

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
0 Kudos
Penic_Albin
Hot Shot
Hot Shot
Jump to solution

And if you dont know where are VM boot files.

/vmfs/volumes/datastore_name/VM_Name

If you find this information useful, please award points for "correct" or "helpful".

If you find this information useful, please award points for "correct" or "helpful".
0 Kudos
Thuizt
Contributor
Contributor
Jump to solution

OK, that I know. But the following.

on my datastore is a folder vm1 that contains all the files, including the vmx file

If I rename this folder to vm2 it is not updated in the VMIC. There the VM still points to the folder vm1

So I thought there might be somewhere a config file that lists these settings.

Thank for the replies.

0 Kudos
Penic_Albin
Hot Shot
Hot Shot
Jump to solution

As i remember you must set full path for VMDK or at least put ./ before file locator in VMX file if you wish to archive that

If you find this information useful, please award points for "correct" or "helpful".

If you find this information useful, please award points for "correct" or "helpful".
0 Kudos
DSTAVERT
Immortal
Immortal
Jump to solution

Remove the original VM. Right click on the VM an "Remove from Inventory". Open the Datastore and browse to the vmx file. Right click and "Add to Inventory"

-- David -- VMware Communities Moderator
0 Kudos
Penic_Albin
Hot Shot
Hot Shot
Jump to solution

Or just remove virtual disk and re add it thru vcenter. But as i can understand you wish to manage everything thru CLI.

If you find this information useful, please award points for "correct" or "helpful".

If you find this information useful, please award points for "correct" or "helpful".
0 Kudos
Thuizt
Contributor
Contributor
Jump to solution

Adding again to the inventory does indeed solve the issue but though correct doesn't answer the original question.

Where are those settings stored ????

Thanks for all your answers.

0 Kudos
TomHowarth
Leadership
Leadership
Jump to solution

What exactly are you attempting to acheive here. the *.VMX file is defines the VMguest in terms of hardware and functionality. if we had a better idea of your final goal we could help you better, you can not just rename a directory and expect the VM to work, even removing and adding will not slove this issue. by changing the folder name you have changed to path for the VMDK file. and it will no longer be able to find it.

In short a little bit more infomatin as to what you are attempting to do will result in more focused answers and not ones that can cause further issues.

There is a great adage " A little knowledge is a dangerous thing."

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

Tom Howarth VCP / vExpert

VMware Communities User Moderator

Blog: www.planetvm.net

Contributing author for the upcoming book "[VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment|http://my.safaribooksonline.com/9780136083214]”. Currently available on roughcuts

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410
0 Kudos