How to edit offline vmx file using python
sasikiran2k7 at gmail.com
sasikiran2k7 at gmail.com
Thu Feb 28 00:29:27 EST 2013
Hi,
I am new to python, how can we edit a .vmx file offline or just simply a file containing the data in the below format.
My file sample.vmx contains data
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
hpet0.present = "TRUE"
nvram = "testvmdk.nvram"
virtualHW.productCompatibility = "hosted"
powerType.powerOff = "soft"
powerType.powerOn = "hard"
I need to update those values and the updated file should contains the data
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
hpet0.present = "TRUE"
nvram = "testing.nvram"
virtualHW.productCompatibility = "hosted"
powerType.poweroff='hard"
powerType.poweron="sof't"
Can anyone please help me in solving this problem
Thanks,
Sasikiran
More information about the Python-list
mailing list