I'm attempting to write an unattended install script to restore my media server automatically. My host is Ubuntu 13.04 and I run a Win 7 VM. I'm using Workstation 10 for linux.
I can initiate a console install and pass the key OK. What I cannot seem to figure out is how to pass the arguments for my shared VM directory automatically. Is there a way to set up a config file that can be read to feed in the options?
Add a few lines to your script that echo the settings you need into the involved configfiles.
The path goes into datastores.xml and looks like
<path>/home/shared-vms</path>
Thw whole file looks like
<ConfigRoot>
<LocalDatastores>
<_length>1</_length>
<_type>hostd.host.LocalDatastoreEntry[]</_type>
<e id="0">
<_type>hostd.host.LocalDatastoreEntry</_type>
<id>1</id>
<name>standard</name>
<path>/home/shared-vms</path>
</e>
</LocalDatastores>
<NasVolumes>
<_length>0</_length>
<_type>hostd.host.NasDatastoreEntry[]</_type>
</NasVolumes>
</ConfigRoot>
I'm not sure this is what I'm looking for. When I execute the install script, I pass settings like --console --eulas-agreed --set-setting vmware-workstation serialNumber --custom
What I need to do is pass values to the --custom option automatically so I can set the shared directory location and not have to hit enter on all the other default choices.