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/


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

  1. Vladan SEGET says:

    Pretty usefull. I’m gonna try as soon as possible….

    Thank for the post.
    vladan

  2. unixfoo says:

    Your blog is a very useful one for Vmware administrators and users. Keep up the good work.

    - http://unixfoo.blogspot.com

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>