VMware Communities
canyon1
Contributor
Contributor
Jump to solution

No able to perform vmrun via ssh

re: ubuntu 6.06LT host/win xp pro guest

Am able to perform vmrun commands on host (locally) to control guest vm.

Am able to ssh into host and perform linux commands (ex: cd, mkdir, etc)

Difficulty is cannot successfully execute vmrun start/vmrun reset through ssh.

Have navigated to .vmx directory and tried-

vmrun start "Windows XP Professional.vmx"

and receive error: Command failed: Cannot connect to the virtual machine .

Although:

vmrun list

returns Total Running VMs:0

I'm new to both vmware and linux. Not sure if this is a vmware or a linux obstacle.

Assistance is appreciated and Thank You for this great forum.

0 Kudos
1 Solution

Accepted Solutions
ahamelin
Contributor
Contributor
Jump to solution

Have you verified that you forward your X connection correctly when you connect with ssh? I have had issues to start VMware remotely via SSH until I added the line

ForwardX11Trusted yes[/b]

to my ~/.ssh/config on my local machine. Of course you'll also need the "ForwardX11 yes" option.

View solution in original post

0 Kudos
4 Replies
ahamelin
Contributor
Contributor
Jump to solution

Have you verified that you forward your X connection correctly when you connect with ssh? I have had issues to start VMware remotely via SSH until I added the line

ForwardX11Trusted yes[/b]

to my ~/.ssh/config on my local machine. Of course you'll also need the "ForwardX11 yes" option.

0 Kudos
canyon1
Contributor
Contributor
Jump to solution

I've made the modification and now...Both ForwardX11 and ForwardX11Trusted are set to yes in the ssh_config file on the 'ssh client machine'.

In the ssh_d config...X11Forwarding yes is present.

Unfortunately, the error remains.

0 Kudos
canyon1
Contributor
Contributor
Jump to solution

Hurray! That did it fine... I misspelled professional in my haste.

Thank you for your timely and precise assistance. VMware is dabomb!

0 Kudos
hballinger
Contributor
Contributor
Jump to solution

I am having this same exact problem, but I get the problem when trying to run vmrun start inside of a cron job. Any ideas?

0 Kudos