moka5

script the import of VMs in the Baremetal edition

I was wondering if anyone knew a way to script the importing of VMs into the baremetal edition.

I am constantly switching out VMs and I'd like to just be able to plug in my USB hard drive, mount it, and run a shell script that does all the imports for me.

The graphical interface is kind of a pain when I want to import 4 different VMs, all with real long names.

I'm picturing someting like this:

vm1import.sh
import /mnt/machine.co.com/redhat linux enterprise edition 4.vmx

vm2import.sh
import /mnt/machine2.co.com/redhat linux enterprise edition 4.vmx

and so forth and so on.

thanks for any help or ideas.

Sure. Press F5 to bring up

Sure. Press F5 to bring up an xterm and type:

do_rpc localhost 29524 op import_app path /path/to/your/vmxfile

You can script just about everything using the RPC interface. Let me know if you are interested and I can tell you more commands.

-John