vCenter on Linux is distributed as a virtual appliance; it is really easy to try out. However, the only supported database at the moment is Oracle — this might be a stumbling block for some. While the installation guide covers everything you need to know, here are some quick tips that may help clarify some of the more complicated parts.
Fire up the vCenter Linux Appliance
Download the OVF and import it to your ESX host.
Power it on and accept the EULA, you will end up at this screen:
NOTE: VMware accidentally included the Highly Confidential Beta Software EULA with the vCenter on Linux appliance. I have confirmed with one of the beta program managers and product management that this is not a private beta. After all, Dr. Stephen Herrod told everyone about it in his keynote today.
Next, configure networking via the menu option or determine the current DHCP IP address — log in as root/vmware and run ifconfig (or just look at the VI Client summary for the VM).
Download the two instant client packages from Oracle to your workstation, as specified in the install documentation. Copy them to the vCenter VM, like this:
Prepare an Oracle Database
I’m not going to cover how to install Oracle. Let’s just say it’s not a next-next-finish operation. You can get the free Oracle Express Edition or use an existing instance already present in your environment. What I will give you is a simple recipe to prepare your Oracle instance for hosting a vCenter database.
Save the following code as “vpxadmin.sql” on your Oracle server.
CREATE SMALLFILE TABLESPACE "VPX" DATAFILE '/u01/app/oracle/oradata/vcdb/vpx01.dbf' SIZE 100M AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO; CREATE USER "VPXADMIN" PROFILE "DEFAULT" IDENTIFIED BY "secretpassword" DEFAULT TABLESPACE "VPX" ACCOUNT UNLOCK; grant connect to VPXADMIN; grant resource to VPXADMIN; grant create view to VPXADMIN; grant create any sequence to VPXADMIN; grant create any table to VPXADMIN; grant execute on dbms_job to VPXADMIN; grant execute on dbms_lock to VPXADMIN; grant unlimited tablespace to VPXADMIN;
Then, just execute it:
$ sqlplus / as sysdba @vpxadmin.sql
This will create a tablespace and credentials for your vCenter database.
These four things are required in order to connect vCenter on Linux to Oracle:
- Hostname or IP address
- Instance name – by default in Oracle this is often “orcl” but you or your DBA may have changed it. You probably need the fully-qualified version, which would be something like “orcl.whatever.yourcompany.com” — this likely is not the same as the FQDN/hostname of the server. In the following example, I am using “vcdb.vmware.com” as my instance.
- Login id: VPXADMIN
- Password: secretpassword (please change this)
Configure vCenter on Linux Database Connection
Reboot the vCenter VM. On next boot, the Oracle drivers are detected and installed automatically:
Enter your Oracle connection information and you are done:
Connect to vCenter on Linux with the VI Client
If you already have a recent VI Client installed, you should be able to use it — or download and install by pointing your web browser to your vCenter VM IP. When you are ready, log in to your new vCenter on Linux (use the root account, not the database account), create a datacenter, add hosts, and try it out.