Whenever I ever have anything to do with Java (whether it’s my own tinkering or at work), it’s always problems! So I’m not at all surprised to find out the the error I’m getting in the VMware Server 2 web console:
The server response include one or more errors
Details:
NullPointerException: Operation failed.
… seems to be related to Java: http://communities.vmware.com/thread/189011
Apparently, the way to fix this is do the following:
- Install the java in /usr/lib/vmware/webAccess/java/jre1.6.0_12
- stop vmware: service stop vmware
- rename the old java from jre1.5.0_15 to jre1.5.0_15.old
- create a link to the new java : ln -s jre1.6.0_12/ jre1.5.0_15
- Start vmware : service start vmware
To extract the JRE, I downloaded the .bin file from java.com. You then have to run:
chmod +x path/to/file/jre-1_x_x_x-linux-i586.bin
Then run that file, and it extracts. I copied it to where it’s supposed to be as above.
Stopping/starting vmware is not correct above though - I found I needed to use:
/etc/init.d/vmware stop
Then:
ln -s jre.1.6.0_13/ jre1.5.0_15
Then /etc/init.d/vmware start
I then found that I was unable to access the web interface. When I ran etc/init.d/vmware start again, I got an error :
VMware Server is installed, but it has not been (correctly) configured
for the running kernel. To (re-)configure it, invoke the
following command: /usr/bin/vmware-config.pl.
So I did as the man said, and got:
The following VMware kernel modules have been found on your system that w
not installed by the VMware Installer. Please remove them then run this
installer again.
vmmon
vmnet
vmci
I.e. - ‘rm /lib/modules/2.6.28-11-generic/misc/<ModuleName>.{o,ko}’
Execution aborted.
So, I went to where it told me to, and deleted the files. When the install script ran again, it was erroring, saying that it wasn’t able to stop the services:
At least one instance of VMware Server is still running.
Please stop all running instances of VMware Server first.
Looks like a reboot might be in order, so that’s what I’m gonna do…
After a reboot, I’ve now run /usr/bin/vmware-config.pl again. It’s gone through, and appears to have rebuilt the modules which I removed earlier. Now it all appears to be running - I’ll see if I keep having those problems with the admin website.