VMware常用命.docx

上传人:cl****1 文档编号:546721552 上传时间:2023-02-19 格式:DOCX 页数:10 大小:538.14KB
返回 下载 相关 举报
VMware常用命.docx_第1页
第1页 / 共10页
VMware常用命.docx_第2页
第2页 / 共10页
VMware常用命.docx_第3页
第3页 / 共10页
VMware常用命.docx_第4页
第4页 / 共10页
VMware常用命.docx_第5页
第5页 / 共10页
点击查看更多>>
资源描述

《VMware常用命.docx》由会员分享,可在线阅读,更多相关《VMware常用命.docx(10页珍藏版)》请在金锄头文库上搜索。

1、VMware-cmd常用命令时间:2009-06-25 00:00来源:虚拟化百科 作者:canvin 点击: 252次 强制关闭VM虚拟机使用vmware-cmd命令行u 登陆服务控制台u 键入“vmware-cmd l”得到所有虚拟机及其路径的列表u 键入“vmware-cmd /.vmx getstate”查看虚拟机状态u 强制关闭“vmware-cmd /.vmx stop hard”u 再次检查虚拟机状态,现在应该是关闭着的u 键入“vmware-cmd /.vmx start”启动虚拟机手动注销虚拟机,通过找到虚拟机进程标识符(pid)并使用注销命令终止它。u 登陆服务控制台u 键

2、入“vmware-cmd l”得到所有虚拟机及其路径的列表u 键入“vmware-cmd /.vmx getstate”查看虚拟机状态u 键入“ps auxwww | grep i ”u 第二栏显示虚拟机vmkload_app的进程标识符pid u 键入“kill -9 PID”u 重新查看虚拟机状态,现在应该是关着的u 键入“vmware-cmd /.vmx start”启动虚拟机注册虚拟机u /usr/bin/vmware-cmd -s register 取消注册u /usr/bin/vmware-cmd -s unregister 重启VM虚拟机u /usr/bin/vmware-cmd

3、 reset 挂起虚拟机u /usr/bin/vmware-cmd suspend 创建虚拟机快照u /usr/bin/vmware-cmd createsnapshot 恢复虚拟机快照u /usr/bin/vmware-cmd revertsnapshot删除虚拟机快照u /usr/bin/vmware-cmd removesnapshotsVMware-cmd命令行Usage: /usr/bin/vmware-cmd /usr/bin/vmware-cmd -s Options:Connection Options:-H specifies an alternative host (if

4、set, -U and -P must also be set)-O specifies an alternative port-U specifies a user-P specifies a passwordGeneral Options:-h More detailed help.-q Quiet. Minimal output-v Verbose.Server Operations:/usr/bin/vmware-cmd -l lists the registered VMs/usr/bin/vmware-cmd -s register registers a VM/usr/bin/v

5、mware-cmd -s unregister unregisters a VM/usr/bin/vmware-cmd -s getresource retrieves a server resource/usr/bin/vmware-cmd -s setresource sets a server resourceVM Operations:/usr/bin/vmware-cmd getconnectedusers/usr/bin/vmware-cmd getstate gets the execution state of the VM/usr/bin/vmware-cmd start p

6、owers on or resumes a VM/usr/bin/vmware-cmd stop stops a VM/usr/bin/vmware-cmd reset resets a VM/usr/bin/vmware-cmd suspend suspends a VM/usr/bin/vmware-cmd setconfig sets a configuration variable/usr/bin/vmware-cmd getconfig retrieves the value for a configuration variable/usr/bin/vmware-cmd setgue

7、stinfo sets a guest info variable/usr/bin/vmware-cmd getguestinfo retrieves the value for a guest info variable/usr/bin/vmware-cmd getproductinfo gets various product information/usr/bin/vmware-cmd connectdevice connects a virtual device to a VM/usr/bin/vmware-cmd disconnectdevice disconnects a virt

8、ual device from a VM/usr/bin/vmware-cmd getconfigfile retrieves the path to the configuration file/usr/bin/vmware-cmd getheartbeat retrieves the heartbeat value of the guest OS/usr/bin/vmware-cmd gettoolslastactive retrieves the number of seconds since last notification from the tools/usr/bin/vmware

9、-cmd getresource retrieves a VM resource/usr/bin/vmware-cmd setresource sets a VM resource/usr/bin/vmware-cmd hassnapshot determine if a VM has a snapshot/usr/bin/vmware-cmd createsnapshot creates a snapshot of a VM/usr/bin/vmware-cmd revertsnapshot revert to the last snapshot of a VM/usr/bin/vmware-cmd removesnapshots remove all snapshots of a VM/usr/bin/vmware-cmd answer answers a question for a VM requesting input

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 生活休闲 > 社会民生

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号