Hacking your ESX 3i Server
July 2, 2009Getting a command line
The cool thing about ESX 3i is of course that it is small and no longer has the Service Console.. but this means also NO command line on the ESX server anymore
But being a techie, I love command lines! And after some searching I did find out you can still get a command line on the ESX 3i Server. Sure it does not run a full blow Linux, but most of the VMware commands like vmkfstools and esxcfg-* are still available.
(more…)
Error 1813: Could not open new database ‘dbname’. CREATE DATABASE is aborted. Device activation error. The physical file name ‘fullpath to the original log file’ may be incorrect.
March 30, 2009If only the log file is lost for databse TEST for example, this may work.
STOP SQL.
Copy the data file to C drive.
START SQL
Query Analyzer:
USE MASTER
GO
drop database test
GO
EXEC sp_attach_db @dbname = ‘test’ ,
@filename1 = N’c:\test.mdf’
A new log file would be created for the test db.
(more…)
Testing network connectivity with the Ping command
March 26, 2009
Testing with Ping from a Windows Host
To initiate a ping test from a Windows host:
-
Click Start>Run.
-
Type cmd in the run field.
-
Click OK.
-
In the command prompt window, type ping <server> , where <server> is the hostname or IP address of the server that you want to ping.
-
Press Enter.
A successful ping response is similar to the following:
Verifying ESX Server host networking configuration on the service console
To verify the current networking configuration is valid and correct:
-
Verify the format and content of /etc/hosts .
The hosts file is expected to have the following format:
127.0.0.1 localhost.localdomain localhost
192.168.1.10 server.domain.com server -
Verify the contents of /etc/sysconfig/network . Confirm that the proper values for your environment exist for the fully qualified hostname and gateway. Consult your network administrator if you are unsure. For example:
NETWORKING=yes
HOSTNAME=server.domain.com
GATEWAY=192.168.1.1
GATEWAYDEV=vswif0
(more…)
How to change IP address at VMWare ESX 3
Do this from console
First remove the vswif0 object using esxcfg-vswif -d vswif0
Then run
Esxcfg-vswif -a vswif0- p Service\ Console -i 192.168.1.3 -n 255.255.255.0 -b 192.168.1.255 (or whatever your ip scheme is)
Then restart the service by running
/etc/init.d/mgmt-vmware restart


