VMware: VMRUN for Workstation 6.5, Server 1.x and Server 2.0


Ik kwam VMRUN tegen in een post op de site: http://itknowledgeexchange.techtarget.com/virtualization-pro/ hier stond ook een link naar het volgende document: http://www.vmware.com/pdf/vix160_vmrun_command.pdf.

Hieronder laat ik even wat opties zien:

Power on a virtual machine with VMware Workstation on a Windows host:
vmrun start "drive:\path to vmx\vm.vmx"

Power on a virtual machine with VMware Server 2.0:
vmrun -T server -h https://10.0.1.8/sdk -u root -p <pass> start "[storage1] WinXP/WinXP.vmx"

Run CMD within the VM with VMware Workstation on a Windows host:
vmrun -T ws -gu <user> -gp <pass> runProgramInGuest WinXP\WinXP.vmx -activeWindow cmd.exe

List processes in a Linux guest, and kill the process numbered 8192:
vmrun -T ws -gu <user> -gp <pass> listProcessesInGuest Ubuntu/Ubuntu.vmx
vmrun -T ws -gu <user> -gp <pass> killProcessesInGuest Ubuntu/Ubuntu.vmx 8192

List processes in a Linux guest, and kill the process numbered 8192:

vmrun -T ws -gu <user> -gp <pass> listProcessesInGuest Ubuntu/Ubuntu.vmx
vmrun -T ws -gu <user> -gp <pass> killProcessesInGuest Ubuntu/Ubuntu.vmx 8192

Best wel een krachtige tool. Toch had ik liever gezien dat VMware ook voor Workstation en Server een powershell omgeving had gemaakt. Misschien komt dit in de toekomst nog.

Bron: http://itknowledgeexchange.techtarget.com/virtualization-pro/starting-a-vmware-server-virtual-machine-with-vmrun/

Advertisements

2 thoughts on “VMware: VMRUN for Workstation 6.5, Server 1.x and Server 2.0

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s