VMware Communities
m2mexpert
Contributor
Contributor

unattended install on linux host help needed

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?

Tags (3)
0 Kudos
2 Replies
continuum
Immortal
Immortal

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>


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
m2mexpert
Contributor
Contributor

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.

0 Kudos