vmrun version 1.11.0 build-471780
Usage: vmrun [AUTHENTICATION-FLAGS] COMMAND [PARAMETERS]
AUTHENTICATION-FLAGS
--------------------
These must appear before the command and any command parameters.
-h <hostName> (not needed for Workstation)
-P <hostPort> (not needed for Workstation)
-T <hostType> (ws|server|server1|fusion|esx|vc|player)
for example, use '-T server' for VMware Server 2.0
use '-T server1' for VMware Server 1.0
use '-T ws' for VMware Workstation
use '-T ws-shared' for VMware Workstation (shared mode)
use '-T esx' for VMware ESX
use '-T vc' for VMware vCenter Server
-u <userName in host OS> (not needed for Workstation)
-p <password in host OS> (not needed for Workstation)
-vp <password for encrypted virtual machine>
-gu <userName in guest OS>
-gp <password in guest OS>
POWER COMMANDS PARAMETERS DESCRIPTION
-------------- ---------- -----------
start Path to vmx file Start a VM or Team
[gui|nogui]
stop Path to vmx file Stop a VM or Team
[hard|soft]
reset Path to vmx file Reset a VM or Team
[hard|soft]
suspend Path to vmx file Suspend a VM or Team
[hard|soft]
pause Path to vmx file Pause a VM
unpause Path to vmx file Unpause a VM
SNAPSHOT COMMANDS PARAMETERS DESCRIPTION
----------------- ---------- -----------
listSnapshots Path to vmx file List all snapshots in a VM
[showTree]
snapshot Path to vmx file Create a snapshot of a VM
Snapshot name
deleteSnapshot Path to vmx file Remove a snapshot from a VM
Snapshot name
[andDeleteChildren]
revertToSnapshot Path to vmx file Set VM state to a snapshot
Snapshot name
GUEST OS COMMANDS PARAMETERS DESCRIPTION
----------------- ---------- -----------
runProgramInGuest Path to vmx file Run a program in Guest OS
[-noWait]
[-activeWindow]
[-interactive]
Complete-Path-To-Program
[Program arguments]
fileExistsInGuest Path to vmx file Check if a file exists in Guest OS
Path to file in guest
directoryExistsInGuest Path to vmx file Check if a directory exists in Gue
st OS
Path to directory in guest
setSharedFolderState Path to vmx file Modify a Host-Guest shared folder
Share name
Host path
writable | readonly
addSharedFolder Path to vmx file Add a Host-Guest shared folder
Share name
New host path
removeSharedFolder Path to vmx file Remove a Host-Guest shared folder
Share name
enableSharedFolders Path to vmx file Enable shared folders in Guest
[runtime]
disableSharedFolders Path to vmx file Disable shared folders in Guest
[runtime]
listProcessesInGuest Path to vmx file List running processes in Guest OS
killProcessInGuest Path to vmx file Kill a process in Guest OS
process id
runScriptInGuest Path to vmx file Run a script in Guest OS
[-noWait]
[-activeWindow]
[-interactive]
Interpreter path
Script text
deleteFileInGuest Path to vmx file Delete a file in Guest OS
Path in guest
createDirectoryInGuest Path to vmx file Create a directory in Guest OS
Directory path in guest
deleteDirectoryInGuest Path to vmx file Delete a directory in Guest OS
Directory path in guest
listDirectoryInGuest Path to vmx file List a directory in Guest OS
Directory path in guest
CopyFileFromHostToGuest Path to vmx file Copy a file from host OS to guest
OS
Path on host Path in guest
CopyFileFromGuestToHost Path to vmx file Copy a file from guest OS to host
OS
Path in guest Path on host
renameFileInGuest Path to vmx file Rename a file in Guest OS
Original name
New name
captureScreen Path to vmx file Capture the screen of the VM to a
local file
Path on host
writeVariable Path to vmx file Write a variable in the VM state
[runtimeConfig|guestEnv|guestVar]
variable name
variable value
readVariable Path to vmx file Read a variable in the VM state
[runtimeConfig|guestEnv|guestVar]
variable name
VPROBE COMMANDS PARAMETERS DESCRIPTION
--------------- ---------- -----------
vprobeVersion Path to vmx file List VP version
vprobeLoad Path to vmx file Load VP script
'VP script text'
vprobeLoadFile Path to vmx file Load VP file
Path to VP file
vprobeReset Path to vmx file Disable all vprobes
vprobeListProbes Path to vmx file List probes
vprobeListGlobals Path to vmx file List global variables
GENERAL COMMANDS PARAMETERS DESCRIPTION
---------------- ---------- -----------
list List all running VMs
upgradevm Path to vmx file Upgrade VM file format, virtual hw
installTools Path to vmx file Install Tools in Guest
register Path to vmx file Register a VM
unregister Path to vmx file Unregister a VM
listRegisteredVM List registered VMs
deleteVM Path to vmx file Delete a VM
clone Path to vmx file Create a copy of the VM
Path to destination vmx file
full|linked
[Snapshot name]
Examples:
Starting a virtual machine with Workstation on a Windows host
vmrun -T ws start "c:\my VMs\myVM.vmx"
Stopping a virtual machine on an ESX host
vmrun -T esx -h https://myHost.com/sdk -u hostUser -p hostPassword stop "[sto
rage1] vm/myVM.vmx"
Running a program in a virtual machine with Workstation on a Windows host with W
indows guest
vmrun -T ws -gu guestUser -gp guestPassword runProgramInGuest "c:\my VMs\myVM
.vmx" "c:\Program Files\myProgram.exe"
Running a program in a virtual machine with Server on a Linux host with Linux gu
est
vmrun -T server -h https://myHost.com:8333/sdk -u hostUser -p hostPassword -g
u guestUser -gp guestPassword runProgramInGuest "[standard] vm/myVM.vmx" /usr/bi
n/X11/xclock -display :0
Creating a snapshot of a virtual machine with Workstation on a Windows host
vmrun -T ws snapshot "c:\my VMs\myVM.vmx" mySnapshot
Reverting to a snapshot with Workstation on a Windows host
vmrun -T ws revertToSnapshot "c:\my VMs\myVM.vmx" mySnapshot
Deleting a snapshot with Workstation on a Windows host
vmrun -T ws deleteSnapshot "c:\my VMs\myVM.vmx" mySnapshot
Enabling Shared Folders with Workstation on a Windows host
vmrun -T ws enableSharedFolders "c:\my VMs\myVM.vmx"
C:\Program Files\VMware\VMware Workstation>^A
分享到:
相关推荐
1. **启动VMware Workstation**:打开VMware Workstation软件,通过菜单选择新建虚拟机。 2. **选择自定义安装**:在新虚拟机向导中选择“自定义”选项。 3. **指定虚拟机版本**:选择虚拟机版本为6.5。 4. **选择...
Vmware公司推出的Vmware Workstation、Vmware ESXi等产品,就是虚拟化的杰出代表,它们提供了高度优化的性能和丰富的管理功能。 C#,是微软推出的一种面向对象的编程语言,通常用于开发Windows桌面应用、Web应用...
下载并安装最新版本的VMware Workstation或Player。按照安装向导的指示进行,接受许可协议,选择安装位置,并配置自定义设置。 **二、VxWorks 6.9 ISO获取与导入** 1. 获取VxWorks 6.9的ISO镜像文件,这通常可以从...
WinAC是一款基于PC的可编程控制器(PLC),它允许用户在个人计算机上模拟和运行PLC程序,适用于测试、调试和培训。TIA则是西门子全面集成自动化系统,集成了从设计、编程、模拟到诊断和维护的所有自动化任务。 标题...
Hibernate提供了Session接口来执行CRUD(创建、读取、更新、删除)操作,以及Query和Criteria API来执行复杂的查询。 Spring框架则是一个全面的企业级应用开发框架,它提供了依赖注入、AOP(面向切面编程)、事务...
VMware产品如VMware Workstation、VMware Fusion或VMware ESXi,提供了一种高效且灵活的方式来测试软件、隔离不同项目,或者在不同的操作系统环境中运行应用程序。 关闭VMware虚拟机通常可以通过VMware的图形用户...
首先,VIX(Virtual Infrastructure eXtension)API是VMware提供的一套接口,它允许开发人员编写应用程序来控制VMware Workstation、VMware Server或ESXi等虚拟化产品中的虚拟机。VIX API支持多种编程语言,包括C、...
- 可以通过提供的链接下载**Ubuntu**的镜像文件,并使用VMware Workstation进行安装。 #### 2. **配置Ubuntu环境** - 安装完成后,需要对Ubuntu环境进行适当的配置,例如安装必要的开发工具和库文件。 - 配置...
2. **创建虚拟机:** 在VMware Workstation中创建一个新的虚拟机,并选择合适的Linux发行版作为操作系统。 3. **安装Linux发行版:** 在虚拟机中安装选定的Linux发行版,如MagicLinux或RedHat Linux。 4. **安装开发...
VMM有两种主要类型:Type I VMM(如Xen和VMware ESXi)直接运行在硬件上,具备最佳性能,而Type II VMM(如VMware Workstation)则安装在宿主操作系统之上,通过宿主操作系统访问资源。无论是哪种类型,VMM都负责...
【Spark本地版安装教程(Ubuntu)】 Spark是一个流行的开源大数据...同时,掌握Scala或Python编程语言,因为它们是Spark的主要编程接口。在实践过程中,遇到问题要善于查阅官方文档和社区资源,以解决遇到的任何难题。
它提供了类似 UNIX 的编程接口和系统调用,可以方便的将 UNIX 系统上的应用程序,移植到 Linux 上运行。Linux 具有一下特点: 1.可移植性:Linux 内核源代码是用 C 语言编写的,可以运行到各种平台。 2.支持多种...
在本文中,我们将深入探讨如何在VMware VM16 Pro虚拟机中移植并运行AB(Allen Bradley)罗克韦尔的RSView32 7.5上位机系统,以及如何利用该系统与PLC(可编程逻辑控制器)进行通讯。这个过程对于工业自动化和控制...
在实验中,学生将学习如何编写模块代码,以及如何使用Linux内核提供的编程接口(如内核API)和工具(如insmod、rmmod、lsmod等命令)来加载和管理这些模块。 字符设备驱动实验着重于Linux内核中的字符设备驱动程序...
实验指导书中包含了多个驱动和应用实验,涵盖了GPIO(通用输入输出)、中断处理、ADC(模数转换)、DAC(数模转换)、EEPROM(电可擦除可编程只读存储器)、温度传感器、键盘、LED点阵、继电器、蜂鸣器等多种外设的...
- **PWM**:可编程脉宽调制输出,适用于控制电机、LED亮度等。 - **CAN总线**:支持工业现场总线通信。 - **实时时钟(RTC)**:内置时钟芯片,支持日期时间记录等功能。 - **蜂鸣器**:简单的音频输出设备,...