描述
自用脚本整理,针对linux发型版本,开发者大部分场景只需要启用虚拟机实例,No GUI运行,且vmware未提供相关管理命令,也无需启动vmware fusion整个应用程序,可以避免反复输入命令行管理实例以及方便地进行实例的启动、挂起、关闭等操作,节省内存占用和方便开发者进行虚拟机测试,方便灵活。
开发者可以根据自己需要做成相关任务脚本和开发配置。
Github地址:vmware-fusion-vmcli-nogui
相关支持:
- Read the list of all virtual machine instances in the system or custom path (supports virtual host names with spaces)
- Virtual machine instance specified by no interface shortcut
- List|start|stop|suspend|pause|pause|unpause operation is satisfied based on vmrun
- homebrew-tap Formula(usrlab/tap)
- clone virtual machine instance, customize network parameter configuration, make it convenient for developers to create instances at low cost
- HomeBrew Formula
homebrew-tap and install
The tap sources are located under the usrlab@Github organization:
brew tap usrlab/tap
brew install vmware-fusion-vmcli-nogui
virtual machines default path,Resources are changed to this path
(a temporary solution:custom,Followed to the configuration file)
mkdir -p ~/VmwareFusionPro
Useage
The command line:
fusion-vmcli -h
[usage]: [-l | list] [start|stop|suspend|pause|unpause <number>] [-h | -help | --help] [-v | -V | --version]
[helptext]
-h|help : Show help info.
-l|list : default[None parameters] show VMs list and VMs status.
start|stop|suspend|pause|unpause [number] :
Start the corresponding virtual machine [Linux based distribution only].
Notice: default show VMs list.
There are two ways of script: parameter and interactive
- 1.interactive:
./fusion-vmcli.sh
- 2.parameter:
./fusion-vmcli.sh start 1