VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
4 Replies Last post: Jul 3, 2009 6:32 AM by UniMatrix  

Cannot connect to VC on Linux posted: Jun 26, 2009 12:09 PM

Click to view atomicobject's profile Lurker 2 posts since
Jun 26, 2009

Hello,

I installed VCenter for linux following the instructions in the documentation pdf, but have run into some trouble after the install when attempting to connect.

The documentation indicated that browsing to the IP, not specifying a port number (https://10.10.123.111), it should present me with a welcome page. instead, it only gives me a "failed to connect" error.

If I attempt to connect to the VCenter Linux server from a windows box using VI Client, it provides nothing more than a vague error: "VMware Infrastructure Client could not establish the initial connection with server "10.10.123.111". Details: A connection failure occured."

What am I missing here? I have ensured that the vmware-vpxd daemon is running (/etc/init.d/vmware-vpxd start), and can remotely access the machine using ssh or pointing a browser to the configuration port (https://10.10.123.111:5480). I can also log into my oracle database (running on a separate debian VM) without any problems.

Also, there's a couple things that seem somewhat strange to me:

1. Why can oracle not run locally on the virtual appliance? I tried for a while to get this to work, even giving the appliance more hard drive space, then booting a livedisk and using gparted to expand the partition and swap space, installing oracle on it...and then couldn't connect to localhost:8080/apex (i used the ssh trick to get a browser: ssh root@10.10.123.111 -L 8081:localhost:8080, then pointed the connecting machine's browser to http://localhost:8081/apex): while this works fine for a normal debian oracle server, the appliance refused connection.

2. Why, after going through all the trouble of getting the server to run in linux, must i still use windows to run the VI Client? Doesn't this somewhat defeat the purpose? or will this function in wine, or is a linux version expected? (or did i just completely miss something?)

Thanks for any help

Re: Cannot connect to VC on Linux

1. Jun 26, 2009 12:28 PM in response to: atomicobject
Click to view rcardona2k's profile Champion 5,202 posts since
Oct 20, 2005
atomicobject wrote:
I installed VCenter for linux following the instructions in the documentation pdf, but have run into some trouble after the install when attempting to connect.
The documentation indicated that browsing to the IP, not specifying a port number (https://10.10.123.111), it should present me with a welcome page. instead, it only gives me a "failed to connect" error.

What does the appliance console show? Like the documentation it should be showing:
VMware VirtualCenter On Linux

To manage your appliance please browser to https://your_ip_address:xxxx.

VMware VirtualCenter On Linux

What am I missing here? I have ensured that the vmware-vpxd daemon is running (/etc/init.d/vmware-vpxd start), and can remotely access the machine using ssh or pointing a browser to the configuration port (https://10.10.123.111:5480). I can also log into my oracle database (running on a separate debian VM) without any problems.

What do you have in /var/log/vmware/vpx/vpxd.log?

2. Why, after going through all the trouble of getting the server to run in linux, must i still use windows to run the VI Client? Doesn't this somewhat defeat the purpose? or will this function in wine, or is a linux version expected? (or did i just completely miss something?)

I can't speak to the intentions but you can also use the VCAP web app ( VMware vCenter™ Admin Portal Technology Preview ) to manage both vCenter for Linux and Windows. The requirements for the VI Client (WinXP is ubiquitous, who doesn't have access to a Windows client OS somewhere?) maybe Linux + Wine?

Re: Cannot connect to VC on Linux

3. Jun 26, 2009 1:59 PM in response to: atomicobject
Click to view rcardona2k's profile Champion 5,202 posts since
Oct 20, 2005
atomicobject wrote:
so that explains what's happening if you know anything about oracle, but i must confess that i don't. Any interpretations available?

Make sure you have both Oracle odbc drivers from this thread: Getting Started - What you need

Then inspect your /etc/odbc.ini and ./etc/odbcinst.ini files to make sure your Oracle server setup is correctly:
root@localhost # cat /etc/odbc.ini
VMware VirtualCenter
Application Attributes = T
Attributes = W
BatchAutocommitMode = IfAllSuccessful
BindAsFLOAT = F
CloseCursor = F
DisableDPM = F
DisableMTS = T
Driver = Oracle
DSN = VMware VirtualCenter
EXECSchemaOpt =
EXECSyntax = T
Failover = T
FailoverDelay = 10
FailoverRetryCount = 10
FetchBufferSize = 64000
ForceWCHAR = F
Lobs = T
Longs = T
MetadataIdDefault = F
QueryTimeout = T
ResultSets = T
ServerName = 10.1.2.3/XE
SQLGetData extensions = F
Translation DLL =
Translation Option = 0
DisableRULEHint = T
UserID = system

root@localhost # cat /etc/odbcinst.ini
Oracle
Description = Oracle ODBC driver for Oracle 10g
Driver = /opt/oracle/instantclient_10_2/libsqora.so.10.1
Setup =
FileUsage = 1
CPTimeout =
CPReuse =
UsageCount = 1

Re: Cannot connect to VC on Linux

4. Jul 3, 2009 6:52 AM in response to: atomicobject
Click to view UniMatrix's profile Lurker 2 posts since
Jul 13, 2006
I was experiencing the same problem: nothing on http://ip-of-appliance when using the Oracle_On_VMware virtual appliance as database server.

Turned out the Oracle database wasn't created (properly). Resolved it with the following steps:

  1. Used the Oracle web interface to create a database user and gave this user dba rights B-)# .
  2. On the VC4Linux appliance ran /usr/sbin/vpxd_odbcconfig to connect to Oracle and create the database.

Now the familiar VirtualCenter welcome / Getting started page appears on http://ip-of-appliance.

Vi-client you download there is still the Windows version :0

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities