VMware
1 2 Previous Next 17 Replies Last post: Jul 28, 2009 12:58 AM by Aldupon  

Automator Actions posted: Sep 2, 2008 6:25 PM

Click to view etung's profile Guru 11,086 posts since
Oct 15, 2006
I've been toying with Automator recently, and came up with some actions for Fusion. Currently, the actions include:
  • List running virtual machines
  • List virtual machines in the Virtual Machine Library
  • Perform power operation on a list of virtual machines
    • Power On
    • Shut Down (soft)
    • Power Off (hard)
    • Reboot (soft)
    • Reset (hard)
    • Suspend
    • Pause
    • Unpause

Suggestions for more actions are welcome.



I will update this top post if and when I make updates so you don't have to search through the thread.

Nothing too exciting yet, this is mostly stuff you can trivially do with vmrun (pause/unpause is perhaps particularly interesting, since Fusion doesn't currently have a UI for this). For example, one useful combination would be to list all running VMs and pause them, and a matching action to list all running VMs and unpause them - this might be handy if you want to quickly devote computing power to some task but don't want to suspend.

The current version is 0.2008.09.02. To use, unzip and put the resulting actions in /Users/${USER}/Library/Automator/ or /Libarary/Automator/

Re: 0.2008.09.02

2. Sep 2, 2008 7:41 PM in response to: etung
Click to view rcardona2k's profile Champion 5,194 posts since
Oct 20, 2005
I'm not much of an Automator/Applescript tinkerer but I grok the concepts. I ran through your actions and I like the intuitive Automator "pipelining" interface. You have a good start and I would want to dive right into starting up processes within Windows guest via vmrun. :)

I'll keep watching this thread for developments.

Re: Automator Actions

3. Sep 4, 2008 1:53 PM in response to: etung
Click to view borisdusek's profile Expert 392 posts since
Mar 8, 2008
etung wrote:
    • Pause
    • Unpause

Never seen these - what do they do? "non-persistent" suspend, i.e. just stop giving CPU time to the machine? Where are they in Fusion menubar?

Re: Automator Actions

5. Sep 4, 2008 8:55 PM in response to: etung
Click to view HobbitFootAussie's profile Hot Shot 207 posts since
Feb 7, 2007
Could we have "list running processes in VM" or "Grab screenshot of VM". For example I run my VMs in Spaces and would love an Automator action that perhaps runs a script in a VM (Windows) and watches to see when its done, or takes a screenshot every so often and shows it to me as the screen is hidden in another space.

Re: 0.2008.09.02

6. Sep 5, 2008 2:22 AM in response to: etung
Click to view wila's profile Virtuoso 3,266 posts since
Jun 27, 2006
Thanks Eric, more toys to play with, very nice :)

--
Wil

Re: Automator Actions

7. Sep 5, 2008 7:06 AM in response to: etung
Click to view mlabonte's profile Novice 11 posts since
Feb 5, 2008
etung wrote: pause stops running the virtual machine, but keeps it in memory.

This is the thing I have always needed but never realized I wanted. Thanks!

Re: Automator Actions

8. Sep 26, 2008 10:40 PM in response to: etung
Click to view TheAngryPenguin's profile Enthusiast 60 posts since
Sep 21, 2006
This is way cool, but WTF is Koi Productions?!?

Re: Automator Actions

10. Jan 22, 2009 9:00 AM in response to: borisdusek
Click to view Piggy's profile Enthusiast 174 posts since
Apr 8, 2007
Really need to get 'pause' and 'unpause' in the UI. Why on earth would the developers not include them? Is it because of the dumbing down for Mac users?

Re: Automator Actions

11. Jun 2, 2009 10:50 PM in response to: Piggy
Click to view tasmund's profile Lurker 3 posts since
Jun 2, 2009
I haven't used Automator Actions before.
I've fooled around with this for ten minutes and haven't got it working, so I thought I'd ask for more detailed instructions.

(1) Where do I look for these commands? I suspect the VMware Fusion menu, under the Services menu item.

(2) I had no Automator directory in either ~/Library or root /Library. Is this normal?

(3) I made an Automator director under /Library and put the three actions there. (I assume they don't need to be under the directory "0" in the ZIP file.) I restarted Fusion and couldn't see any evidence of these actions anywhere. Do I need to restart Fusion, or take some other action to have these actions show up, after installing them?

(4) I then deleted the Automator directory I created, along with the 3 action files in it, started the Automator application and imported these Actions in the top they would install. I tried dragging a single action into a workflow and playing the workflow, but it failed: The action “List Virtual Machines in Library” encountered an error.

(5) It then started to look like a great big hassle to use this package, so I thought I'd go for the vmrun command instead. I looked for vmrun inside the VMware application and couldn't find it: find /Applications/VMware\ Fusion.app/ -name '*vmrun*' -print Perhaps it's an optional package. Perhaps it's installed somewhere else in the filesystem (/usr/bin). Is this why the Automator actions are failing?

Okay, now I'm going to look for the vmrun docs to find out where it lives...

Some more specific instructions would be very helpful.

Even more helpful would be a Pause function inside Fusion 2.0.5 or 2.0.6. :-)

Re: Automator Actions

13. Jun 12, 2009 8:11 AM in response to: etung
Click to view matthewls's profile Hot Shot 262 posts since
Oct 11, 2007
Just to prove my novice status with unix, I can't get vmrun to run from the command line. Even though I'm in the /Library/Application Support/Vmware fusion directory, when I type vmrun enter the message "command not found" appears. I can run vmrun from finder, and run ls etc. from the command prompt...what am I missing?

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities