Quantcast
Channel: VMware Communities : Popular Discussions - VMware Studio
Viewing all articles
Browse latest Browse all 24650

Build VM fails "Error: Cannot connect to the virtual machine"

$
0
0

Greetings.

 

- Running VMWare Studio 2.6.0.0-631426 appliance from VMWare Workstation 7.1.5 on CentOS 5.7 x64 as root (everywhere)

 

- Building a VM using template "CentOS 5.5 Linux 64bit"

 

- On Studio tab "Build Settings", section "Network Settings", using bridged/static IPv4, and network information that matches (except last octet of IP address) network params used for VMWare Studio's host and VMWare Studio VM

 

- Validate of profile reveals no warning or errors

 

- Build of VM results in output (from debug log):

25/05/2012 07:14:39 [dbug] ssh cmd: <\"/tmp/182.20.20.158_XXXXMaster1.9/vmrunCtrl.bat\" start>
25/05/2012 07:16:10 [dbug] SSH cmd executed with password.
25/05/2012 07:16:10 [warn] vmrun:
Error: Cannot connect to the virtual machine
password:

- running the following from the command line results in same error:

[my_provisioning_node]# ssh [my_provisioning_node] /tmp/182.20.20.158_XXXXMaster1.9/vmrunCtrl.bat start

Error: Cannot connect to the virtual machine

[my_provisioning_node]# sh /tmp/182.20.20.158_XXXXMaster1.9/vmrunCtrl.bat start

Error: Cannot connect to the virtual machine

 

- contents of /tmp/182.20.20.158_XXXXMaster1.9/vmrunCtrl.bat

export DISPLAY=:0.0

nohup "/usr/bin/vmrun" $1 "/tmp/182.20.20.158_XXXXMaster1.9/182.20.20.158_XXXXMaster1.9.vmx"

 

- this post regarding the "Error: Cannot connect to the virtual machine" problem talks about X11, DISPLAY, UI:

http://communities.vmware.com/thread/116094

 

- so I tried various hacks on the bat file (after issuing "xhost +"), and am able to start the VM process

export DISPLAY=:0.0

nohup "/usr/bin/vmrun" $1 "/tmp/182.20.20.158_XXXXMaster1.9/182.20.20.158_XXXXMaster1.9.vmx" nogui

 

- running process:

[my_provisioning_node]# ps -ef | grep vmware-vmx

root      8655     1  3 08:06 ?        00:00:58 /usr/lib/vmware/bin/vmware-vmx -s vmx.noUIBuildNumberCheck=TRUE -# product=1;name=VMware Workstation;version=7.1.5;buildnumber=491717;licensename=VMware Workstation;licenseversion=7.0+; -@ pipe=/tmp/vmware-root/vmxe65085c4cbc0726f;readyEvent=152 /tmp/182.20.20.158_XXXXMaster1.9/182.20.20.158_XXXXMaster1.9.vmx

 

- stop VM:

[my_provisioning_node]# sh /tmp/182.20.20.158_XXXXMaster1.9/vmrunCtrl.bat stop

 

Any ideas how to fix the "Error: Cannot connect to the virtual machine" problem?

 

Thank you.


Viewing all articles
Browse latest Browse all 24650

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>