使用命令列工具來管理VMWare Server
Administer VMware Server from the Command Line
(這個指令在VMWare Server 2.0.1 + Centos 5上測試過)

1. STOP VMWare Server
vmrun -T server -h https://host_server_ip:8333/sdk -u host_admin_uid -p host_admin_pwd stop "[standard] folder_name/VMname.vmx"
Example:
# vmrun -T server -h https://172.22.33.44:8333/sdk -u root -p root_password stop "[standard] serv01t/APServer.vmx"
# vmrun -T server -h https://172.22.33.44:8333/sdk -u root -p root_password stop "[standard] serv02t/DBServer.vmx"

2. START VMWare Server
vmrun -T server -h https://host_server_ip:8333/sdk -u host_admin_uid -p host_admin_pwd start "[standard] folder_name/VMname.vmx"
Example:
# vmrun -T server -h https://172.22.33.44:8333/sdk -u root -p root_password start "[standard] serv02t/DBServer.vmx" 
# vmrun -T server -h https://172.22.33.44:8333/sdk -u root -p root_password start "[standard] serv01t/APServer.vmx"
創作者介紹

簡單

easychen 發表在 痞客邦 留言(0) 人氣()