vSphere Web Access 503 Service Unavailable Error And Solution

Posted on in Categories vmware last updated May 21, 2010

By default vSphere does not provide client for Linux or OS X. You need to use Windows system to manage your VMware ESX server. However, it does provides vSphere Web Access which allows you to organize and share virtual machines using web browser. If you try to access vSphere Web Access you may get an error which read as follows:

503 Service Unavailable

You can fix this problem as follows.

How to: Upgrade VMWARE Server under Linux

Posted on in Categories CentOS, Howto, Linux Virtualization, RedHat/Fedora Linux, Suse Linux, Tips last updated September 25, 2007

Build 56528 is a release build of VMware Server 1.0.4. It is a maintenance bug fix release to address security issues. Upgrading VMWare server is a piece of cake under Redhat Enterprise Linux / CentOS Linux version 5.0.

Please note that following instructions are tested on RHEL 4.5, 5.0 and CentOS Linux 5.0 only. You can use tar ball based package to upgrade vmware under Debian Linux.

Find out current VMware server version

First find out current vmware server version, enter:
# vmware -v
Output:

VMware Server 1.0.3 build-44356

You can download the latest version from official site.

Shutdown all VMWARE guest oses / vps

Login to each running VM and bring down (halt) guest operating system. You can also use vmware server console or web based interface for the same purpose.
Stop VMWARE Server:
# /etc/init.d/vmware stop
Output:

Stopping VMware services:
   Virtual machine monitor                                 [  OK  ]
   Bridged networking on /dev/vmnet0                       [  OK  ]
   Virtual ethernet                                        [  OK  ]

Stop VMWARE Webbased interface:
# /etc/init.d/httpd.vmware stop
Output:

   Shutting down http.vmware:                              [  OK  ]

Download VMWARE Server

Use wget the ultimate command line downloader
# cd /tmp
# wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.4-56528.i386.rpm
# wget http://download3.vmware.com/software/vmserver/VMware-mui-1.0.4-56528.tar.gz

Upgrade VMWARE server

Use rpm command to upgrade VMWARE server, enter:
# rpm -Uvh VMware-server-1.0.4-56528.i386.rpm
Output:

Preparing...                ########################################### [100%]
   1:VMware-server          ########################################### [100%]

Reconfigure VMWARE Server

Just reconfigure Vmware server with old values/options:
# vmware-config.pl
Just accept accept the End User License Agreement and press CTRL+C. Now configure server with old values:
# vmware-config.pl -d
Output:

aking sure services for VMware Server are stopped.

Stopping VMware services:
   Virtual machine monitor                                 [  OK  ]
   Bridged networking on /dev/vmnet0                       [  OK  ]
   Virtual ethernet                                        [  OK  ]

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the mime type icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

Trying to find a suitable vmmon module for your running kernel.
...........
...
.....
*** Output truncated ***

Upgrade VMware Server Web-based management interface

The VMware Server Web-based management interface. Install on your VMware Server system to enable control from a Web browser. Untar and install the same:
# tar -zxvf VMware-mui-1.0.4-56528.tar.gz
# cd vmware-mui-distrib/
# perl vmware-install.pl

Just follow on screen instructions to install Web-based management interface. Finally just start all guest oses.

Installing VMWARE server on CentOS 5 or Red hat enterprise Linux 64 bit version

Posted on in Categories CentOS, Howto, Linux, RedHat/Fedora Linux, Tips, Troubleshooting last updated July 9, 2007

VMware virtualization software is an excllent choice for x86-compatible computers. They have both commercial and free version. I received few email regarding VMWARE on 64 bit Linux. Installing VMWARE server on CentOS 5 or Red hat enterprise Linux 64 bit version is a tricky business. In this small howto I will explain vmware installation on 64 bit Linux server without facing any dependencies problem.

Following instructions are tested on both RHEL 5 and CentOS 5 running 64 bit Intel / AMD hardware and software. My kernel:
$ uname -mrs
Output:

Linux 2.6.18-8.1.6.el5 x86_64

My RHEL 5 release (same kernel for CentOS):
$ cat /etc/redhat-release
Output:

Red Hat Enterprise Linux Server release 5 (Tikanga)

Make sure you have following software installed:

  • Full gcc compiler and development environment
  • Kernel headers and devel packages for current kernel (i.e. kernel-headers and kernel-devel)

Continue reading “Installing VMWARE server on CentOS 5 or Red hat enterprise Linux 64 bit version”

Start and stop VMWARE VPS / virtual machine guest operating system from command line

Posted on in Categories Howto, Linux, Linux distribution, RedHat/Fedora Linux, Sys admin, Tips last updated June 30, 2007

Vmware server comes with the nifty vmware-cmd utility. It allows an administrator to perform various operations on a virtual machine from Linux command line / shell prompt such as:

=> Stop / Start VM

=> Get VM status

=> Setup variables

=> Powerdown VM and much more

Task: Lists the virtual machines on the local server

You can list all servers and config file, enter:
# vmware-cmd -l
Output:

/nas/vms/Ubuntu/Ubuntu.vmx
/nas/vms/FreeBSD/FreeBSD.vmx
/nas/vms/OpenBSD/OpenBSD.vmx
/nas/vms/Debian4/Debian4.vmx
/nas/vms/CentOS5/CentOS5.vmx

Turn on VM / Power up VPS

Just pas start option to vmware-cmd,
# vmware-cmd /nas/vms/FreeBSD/FreeBSD.vmx start

To stop VM/VPS, enter:
# vmware-cmd /nas/vms/FreeBSD/FreeBSD.vmx stop

To reset VM/VPS, enter:
# vmware-cmd /nas/vms/FreeBSD/FreeBSD.vmx reset

To suspend VM/VPS, enter:
# vmware-cmd /nas/vms/FreeBSD/FreeBSD.vmx suspend

Find out if OpenBSD VM is on or off:
# vmware-cmd /disk2.vmware/vms/OpenBSD/OpenBSD.vmx getstate
Output:

getstate() = off

vmware-cmd offers other options, please consult VMWARE documentation for more information.

Connect VMWARE Server using Webbased Management Interface at 8333 port

Posted on in Categories Howto, Linux, Sys admin, Tips last updated May 1, 2007

The VMware Server Web-based management interface is installed on your VMware Server system to enable control from a Web browser.

You can download this package from VMWare site itself and install the same. Activities you can perform includes:
=> Connecting to a Virtual Machine with the VMware Server Console

=> Using the Virtual Machine Menu

=> Changing the Power State of a Virtual Machine

=> Monitoring the Virtual Machine’s Heartbeat

=> Viewing Information about Virtual Machines

=> Downloading VMware Server Console Installers (Login and Status Monitor pages only)

=> Configuring the VMware Server System (Options page only)

=> Using Common Controls

=> Start and shutdown virtual servers etc

Download web interface for vmware server

# wget http://download3.vmware.com/software/vmserver/VMware-mui-1.0.3-44356.tar.gz

Unpack tar ball

Use tar command to install a tar ball:
# tar -zxvf VMware-mui-1.0.3-44356.tar.gz

Install Management Interface

# cd vmware-mui-distrib
# ./vmware-install.pl

Just follow on screen installation instructions. Installer should start the server and default port is 8333. You need to open the same using iptables, add something as follows to your firewall script:
iptables -A INPUT -i eth0 -p tcp -m tcp --dport 8333 -j ACCEPT

Save and load the firewall.

Now open a webbrowser and type url:
https://your-server:8333/

Connect VMWARE Server using Webbased Management Interface at 8333 port
(click to enlarge image)

Further readings