Skip navigation
VMware

This Question is Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
57,840 Views 25 Replies Last post: Sep 8, 2008 8:18 AM by DaveP RSS
1 2 Previous Next
jlar310 Enthusiast 62 posts since
Feb 16, 2006
Currently Being Moderated

Jul 13, 2008 3:46 AM

vmware-vmrc.exe command documentation

I have discovered the vmware-vmrc.exe command by examining the web shortcuts created by the Web UI. Now I would like to know more about how to run vmware-vmrc manually.

 

Is there a command line reference anywhere? How can I start in full-screen mode? How can I supply credentials on the command line?

 

I administer vmware through the VI client and have now turned off the Web UI. But the VI client has no such 'shortcut' option (that I have found). So I would like to continue to use vmware-vmrc to set up quick links to virtual machine consoles.

Expert VMware Employees 471 posts since
Dec 16, 2004
Currently Being Moderated
1. Jul 14, 2008 8:25 PM in response to: jlar310
Re: vmware-vmrc.exe command documentation

I don't think we have an official document. I'll try to make sure we get a KB article out about how to use it.

 

Anyway here's a quick and dirty version.

 

You can find vmware-vmrc in your Firefox profile in the extensions/VMwareVMRC@VMware.com/plugins folder, or for IE in %USERPROFILE%\Application Data\VMware Remote Console (Web). These locations are subject to change and in fact the IE one is very likely going to change, though it should still be easy to find (just look for vmware-vmrc.exe on your system after installing the plug-in).

 

You can invoke it as follows:

 

Linux:

vmware-vmrc -h [<hostname>] [-u <username> -p <password>] [-M <moid> | <datastore path>]

 

Windows:

vmware-vmrc.exe -h <hostname> [-u <username> -p <password>] -M <moid> | <datastore path>

 

So, on Linux, if you invoke vmware-vmrc with just -h, you'll get a UI where you can specify a hostname:port, and username/password. If you click connect, you'll get a VM selector UI which allows you to choose a specific VM on that server. Alternatively you can specify a username and password and hostname, but no VM, you'll get connected and then jump straight to the selector. This works if you point it at ESX as well (which, sadly, makes it one of the easiest ways to view an ESX VM from a Linux box).

 

Windows doesn't have the VM selector, so you must specify a VM and hostname, though you can provide the username and password in a GUI login box if you don't want to specify them on the commandline.

 

In both cases, you can specify the VM by either datastore path, or managed object ID (a.k.a. "Moe ID"). You can determine the moid for a VM by looking at vmInventory.xml in /etc/vmware/hostd/ or %ALLUSERSPROFILE%\Application Data\VMware\VMware Server\hostd as appropriate.

Expert VMware Employees 471 posts since
Dec 16, 2004
Currently Being Moderated
3. Jul 15, 2008 8:26 AM in response to: jlar310
Re: vmware-vmrc.exe command documentation

I am the developers ;-).

 

Pass the '-X' flag to go fullscreen at startup. I just doublechecked that that's working, on Windows and Linux.

Expert VMware Employees 471 posts since
Dec 16, 2004
Currently Being Moderated
5. Jul 16, 2008 12:39 PM in response to: jlar310
Re: vmware-vmrc.exe command documentation

You can look up the datastore path for a VM in the web UI, under Configure VM->General Tab->Virtual Machine Configuration file. It will look something like this: "[standard] vm/vm.vmx".

 

For your username/password on the commandline problem, it's likely that you have some character in your password (or username?) that is getting escaped on the commandline, e.g. %, if you're using CMD.EXE. You can try enclosing both username and password in doublequotes.

johnhc Hot Shot 283 posts since
May 2, 2008
Currently Being Moderated
6. Jul 22, 2008 11:17 AM in response to: rrdharan
Re: vmware-vmrc.exe command documentation

 

rrdharan,

 

 

I have tried every combination of quotes (double), no quotes, different order, and different passwords; all report '..bad username/password..'.  I have run out of ideas.  My host is Win XP Pro x64 Ed.  My current try:

 

 

"C:\Documents and Settings\xxxxxxxx\Application Data\VMware\VMware Remote Console (Web) 2.5.0.100265\vmware-vmrc.exe" -h xxxxxxxx:8333 -u xxxxxxx -p xxxxxxx -M 16

 

 

I created this from the Desk Top shortcut created by Generate Virtual Machine Shortcut.

 

 

Any suggestions will be much appreciated.

 

 

John.

 

 

 

 

Host and Guest Systems:

Windows XP Pro x64 Edition;

VMware 2.0.0RC1, Build 101586

Host:Windows 7 Ult x64 Guest:Windows 7 Ult x64 VMware Player 4.0.2
Peter_vm Guru 9,058 posts since
Feb 1, 2006
Currently Being Moderated
7. Jul 22, 2008 7:34 PM in response to: johnhc
Re: vmware-vmrc.exe command documentation

Try shortcut like this:

"C:\Documents and Settings\Administrator\Application Data\VMware\VMware Remote Console (Web) 2.5.0.100265\vmware-vmrc.exe" -h hostname:8333 -u "administrator" -p "mypassword" "[standard] GuestName/GuestName.vmx"

DasUrmel Lurker 4 posts since
Jul 23, 2008
Currently Being Moderated
8. Jul 23, 2008 2:36 AM in response to: Peter_vm
Re: vmware-vmrc.exe command documentation

 

Hello,

 

 

I think the difficulties with the -u and -p parameters have something to do with the type of the user.

 

 

My user is a windows domain user and has the format windomain\username. I can login using this user in the UI box, but can´t pass this name via parameter, regardless wether I put the name in quotes or not.

 

 

Thorsten

 

 

oreeh Guru 10,046 posts since
Nov 30, 2005
Currently Being Moderated
9. Jul 23, 2008 2:38 AM in response to: DasUrmel
Re: vmware-vmrc.exe command documentation

Try escaping the backslash (by doubling it).

DasUrmel Lurker 4 posts since
Jul 23, 2008
Currently Being Moderated
10. Jul 23, 2008 2:46 AM in response to: oreeh
Re: vmware-vmrc.exe command documentation

Same result.

johnhc Hot Shot 283 posts since
May 2, 2008
Currently Being Moderated
11. Jul 23, 2008 11:38 AM in response to: Peter_vm
Re: vmware-vmrc.exe command documentation

 

Peter_vm,

 

Thanks to your help I am getting closer. I tried the following and my username/password is accepted, my VM powers on (and comes up) but I get a message, shown below, and my VM locks up and I have to hit the x to kill it. It works this much with the Administrator account or my own.

"C:\Documents and Settings\xx\Application Data\VMware\VMware Remote Console (Web) 2.5.0.100265\vmware-vmrc.exe" -h xx:8333 -u "administrator" -p "xx" "[standard XP Pro x64 Edition_3A/Windows XP Professional x64 Edition.vmx"

 

 

 

 

Even if I don't put my username/password into the command line, I get this message. It seems to be a function of using the storage address instead of the -M. I have tried the -X for full screen and it works.

 

 

 

 

 

 

I'll keep experimenting - comments are appreciated. Thanks much for your help, John.

 

 

Host and Guest Systems:

Windows XP Pro x64 Edition;

VMware 2.0.0RC1, Build 101586

Host:Windows 7 Ult x64 Guest:Windows 7 Ult x64 VMware Player 4.0.2
Peter_vm Guru 9,058 posts since
Feb 1, 2006
Currently Being Moderated
12. Jul 23, 2008 12:09 PM in response to: johnhc
Re: vmware-vmrc.exe command documentation

Check your shortcut for typos. Here is mine again (I hate Jive smart tags).

Attachments:
johnhc Hot Shot 283 posts since
May 2, 2008
Currently Being Moderated
13. Jul 23, 2008 12:26 PM in response to: Peter_vm
Re: vmware-vmrc.exe command documentation

 

Thanks, Peter_vm.

 

 

I have checked it at least a gazillion times (perhaps a small exaggeration). I failed to note I deleted the closing ] in my last post to avoid its being turned into a weird thing. Somehow rrdharan managed to put the standard thing into his post without the weirdness.  I copied the path from my Configure VM-General Tab as rrdharan suggested.  Note that my VM comes up OK, I just get the error message and can't use the console.

 

 

I get the same Write error if I remove the password/username from the shortcut. I have tried it at the Command Prompt with the same results.

 

 

Still thinking and experimenting.

 

 

Thanks much, John

 

 

 

 

 

 

 

Host and Guest Systems:

Windows XP Pro x64 Edition;

VMware 2.0.0RC1, Build 101586

Host:Windows 7 Ult x64 Guest:Windows 7 Ult x64 VMware Player 4.0.2
johnhc Hot Shot 283 posts since
May 2, 2008
Currently Being Moderated
14. Jul 23, 2008 1:10 PM in response to: Peter_vm
Re: vmware-vmrc.exe command documentation

 

Peter_vm,

 

 

I found this log in my Temp folder, but don't know what it means. The error in the log is concerned with MKS (Mouse, Keyboard and Screen).  Thanks, John.

 

 

 

 

Host and Guest Systems:

Windows XP Pro x64 Edition;

VMware 2.0.0RC1, Build 101586

 

 

Attachments:
Host:Windows 7 Ult x64 Guest:Windows 7 Ult x64 VMware Player 4.0.2

Bookmarked By (0)

Share This Page

Communities