Thursday, 24 September 2015

Control VMware Fusion from the Command Line

From a rather useful blog post: -


I was looking for a way to script the suspension of a couple of VMware Fusion VMs.

This is with what I ended up: -

Suspend the IBM BPM VM

/Applications/VMware\ Fusion.app/Contents/Library/vmrun -T ws suspend ~/Documents/Virtual\ Machines.localized/BPM_LDAP.vmwarevm/BPM_LDAP.vmx

Suspend the MS Active Directory VM

/Applications/VMware\ Fusion.app/Contents/Library/vmrun -T ws suspend ~/Documents/Virtual\ Machines.localized/W2K8.vmwarevm/W2K8.vmx

This is in the context of an earlier Mac OS X sleep/wake issue about which I had previously blogged: -

No comments:

Note to self - use kubectl to query images in a pod or deployment

In both cases, we use JSON ... For a deployment, we can do this: - kubectl get deployment foobar --namespace snafu --output jsonpath="{...