fniephaus / alfred-vmcontrol Goto Github PK
View Code? Open in Web Editor NEWControl your Parallels and Virtual Box virtual machines with Alfred v2
License: MIT License
Control your Parallels and Virtual Box virtual machines with Alfred v2
License: MIT License
Parallels Desktop will suspend virtual machines and quit no matter what action you choose to execute, e.g., Pause, Stop...
vm
will list the existing VMs, e.g., windows 7, windows XP, then you continue typing
vm 7
will only give windows 7, and if you continue typing
vm 7 suspend
will only give suspend action?
Just upgraded to 5.2 and typing vm
doesn't seem to detect any of my VMs. Anyone else having this issue?
Error in debug log:
[2017-10-31 10:16:53][ERROR: input.scriptfilter] Code 1: Traceback (most recent call last):
File "vm_list.py", line 11, in <module>
vbox = mgr.vbox
AttributeError: 'VirtualBoxManager' object has no attribute 'vbox'
Not sure if this is an import error in python?
I get the following error when trying to start it:
Starting debug for 'VM Control'
[2017-04-30 19:04:53][ERROR: input.scriptfilter] Code 1: 19:04:53 workflow.py:843 ERROR 0x80070005 (The object functionality is limited)
Traceback (most recent call last):
File "/Users/kitze/Google Drive/Alfred.alfredpreferences/workflows/user.workflow.19676D70-E556-4249-9C43-E81065EFB38C/workflow/workflow.py", line 841, in run
func(self)
File "vm_list.py", line 26, in complete
vm_list = get_vm_list()
File "vm_list.py", line 112, in get_vm_list
m.name, m.id, get_vm_state(m.state), '/Applications/VirtualBox.app'))
File "/Applications/VirtualBox.app/Contents/MacOS/sdk/bindings/xpcom/python/xpcom/client/__init__.py", line 374, in __getattr__
return getattr(interface, attr)
File "/Applications/VirtualBox.app/Contents/MacOS/sdk/bindings/xpcom/python/xpcom/client/__init__.py", line 460, in __getattr__
return XPTC_InvokeByIndex(self._comobj_, method_index, args)
Exception: 0x80070005 (The object functionality is limited)
Btw thank you for your great work, love this workflow!
I have some issues with the packal (1.3) version, and it turns out the git-version (1.4) works nicely ๐
Nothing happens :(
I'm getting this error in the debug log when I try to start a VM:
VBoxManage: command not found
OSX 10.11
Virtualbox 5.0.10
Hello,
Thanks for the workflow, added the following to my version of it, could be useful to others. Original script from Ben Harper.
Suspend script:
`/usr/local/bin/prlctl list -a --no-header --output name | while read line; do
VMName=$line
VMState=$(/usr/local/bin/prlctl list --no-header -a -o status "$VMName");
if [[ $VMState == running ]]
then
/usr/local/bin/prlctl pause "$VMName"
echo
fi
done`
Unsuspend script:
`/usr/local/bin/prlctl list -a --no-header --output name | while read line ; do # Pipe Parallels List of VM's to loop
VMName=$line # Get Name of VM
VMState=$(/usr/local/bin/prlctl list --no-header -a -o status "$VMName"); #Better Way - no piping text
echo
echo Found - $VMName, State = $VMState
echo
if [[ $VMState == paused ]] # If VM Paused
then
echo $VMName was running, pausing it
/usr/local/bin/prlctl resume "$VMName"
echo
echo
fi
done`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.