VMware
1 2 3 Previous Next 33 Replies Last post: Dec 2, 2008 8:55 AM by AukeF   Go to original post
Click to view FrankVdb's profile Novice 8 posts since
Oct 22, 2006
I upgraded from Dapper to Edgy, then installed VMware Server and had exactly the same error as Aodhandigital:

My VMware Server installation wouldn't fire up, it ate my processor and did nothing.

The problem was the presence of double libraries: libdbus-1-2 and libdbus-1-3 appeared to be both installed. After removing libdbus-1-2, VMware Server fires up nicely.

I hope this works for you too... It cost me hours to get it solved until a tip from a Swedish guy at ubuntoforums.org saved me.

Regards from Belgium,
Frank
Click to view Incroyable HULK's profile Novice 23 posts since
Oct 27, 2006
@tauceti
Thank you so much! It works!

@gumicsoves
Huh? Can you give more information?

@bisand
mine does not get replaced after a reboot.

Click to view gfca's profile Lurker 1 posts since
Nov 2, 2006
Thank's to all of you!!!

Finally i can get my vmware working!
Click to view mzenzes's profile Novice 5 posts since
Oct 27, 2006
thanks a lot - it works!
Click to view Incroyable HULK's profile Novice 23 posts since
Oct 27, 2006
AM I THE ONLY ONE?

Every time I reboot, I have to reinstall the VMware Web Interface to make it work...
I tried the method suggested by bisand but no success (anyway, my /etc/init.d/httpd.vmware does not get replaced on every reboot)

An importaint part of the solution is to also edit
$INSTALLDIR/src/lib/httpd.vmware.
VMWare Server is actually replacing
/etc/init.d/httpd.vmware with
$INSTALLDIR/src/lib/httpd.vmware on every reboot.
(In my case $INSTALLDIR=/usr/lib/vmware-mui/)
Click to view Incroyable HULK's profile Novice 23 posts since
Oct 27, 2006
I just noticed this behavior is not happening under simulation... (VMware Server 1.0.1 installed on a virtual Ubuntu Server 6.10)

I don't understand why it would be different on a real computer.
Click to view MathiasC's profile Novice 8 posts since
Dec 21, 2005
I found a nice little patch for this problem.
Nice and nifty...

http://users.piuha.net/martti/comp/ubuntu/server.html

The httpd.vmware patch-script does all of the things described in this thread.

/Mathias
Click to view PilotJLR's profile Novice 10 posts since
Jul 12, 2006
I have found that this issue is related to Edgy's link from /bin/sh to dash instead of bash.

What I did:
sudo rm -f /bin/sh
sudo ln -s /bin/bash /bin/sh

and then reinstall MUI
Click to view MrAlphabet's profile Lurker 1 posts since
Dec 14, 2006
I can confirm that PilotJLR's suggestion fixed my problem, though I did not have to reinstall MUI, just restart it with

sudo /etc/init.d/httpd.vmware start
Click to view boydcarter's profile Lurker 1 posts since
Dec 21, 2006
1 UBUNTU by default symlinks /bin/sh to /bin/dash which does not support the 'source' command.

To fix
rm /bin/sh
ln -s bash /bin/sh

FYI - found this also applies to Zimbra collaboration server's ldap component installation. I'm sure this affects all kinds of off the shelf shell scripts.. a solution to keep in your back pocket.

http://wiki.zimbra.com/index.php?title=LDAP

Thanks for the help, all.

-B
Click to view peter_velinov's profile Lurker 1 posts since
Jul 5, 2006
HEY tauceti - YOU ARE THE MAN!!

THANK YOU ! YOU ROCK!

It took me some time to figure out what part of the code to change but now IT WORKS! YOU ARE GREAT - THANK YOU VERY MUCH!

This is what I've got after the replacement (for those that are wondering, replace everything after # See how we were called. with the code below )

# See how we were called.
case "$1" in
start)
# vmware_exec "Starting httpd.vmware:" vmware_start_httpd
echo "Starting httpd.vmware:"
vmware_start_httpd
;;
stop)
# vmware_exec "Shutting down http.vmware: " vmware_stop_httpd
echo "Shutting down http.vmware: "
vmware_stop_httpd
;;
status)
echo -n 'vmware.httpd'
if vmware_check_pidfile /var/run/httpd.vmware.pid; then
echo ' is running.'
else
echo ' is not running.'
fi
;;
restart)
$0 stop
$0 start
;;
reload)
echo -n "Reloading httpd.vmware: "
killproc $INSTALLDIR/apache/bin/httpd.vmware -HUP
echo
;;
*)
echo "Usage: $0 {start|stop|restart|reload|status}"
exit 1
esac

exit 0

Click to view Cinober's profile Lurker 1 posts since
Feb 11, 2007
Hi guys

I dont know if this solves just your problem but it solves mine also related to Ubuntu 6.10 dash replacing bash as the default shell. Your post was closest I could find so I leave mine solution here for people to pick up... Sorry if I'm posting cross posting wrong.

I found that sourced functions are something dash can not digest. I fix it by running...
I hope vmware folks pick this up and make their scripts ubuntu-dash compatible.

$ sudo bash
# sed -e 's!${p//[0-9]/}!$(echo $p | sed -e '\'s/[0-9]//g\'')!' functions.ORIG > functions

# diff functions.orig functions
130c130
< [ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
---
[ -z "$(echo $p | sed -e 's/[0-9]//g')" -a -d "/proc/$p" ] && pid="$pid $p"
182c182
< [ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
---
[ -z "$(echo $p | sed -e 's/[0-9]//g')" -a -d "/proc/$p" ] && pid="$pid $p"
244c244
< [ -z "${p//[0-9]/}" -a -d /proc/$p ] && pid="$pid $p"
---
[ -z "$(echo $p | sed -e 's/[0-9]//g')" -a -d /proc/$p ] && pid="$pid $p"
268c268
< [ -z "${p//[0-9]/}" -a -d /proc/$p ] && pid="$pid $p"
---
[ -z "$(echo $p | sed -e 's/[0-9]//g')" -a -d /proc/$p ] && pid="$pid $p"
#
# /etc/init.d/vmware stop
Stopping VMware services:
Virtual machine monitor done
Bridged networking on /dev/vmnet0 done
DHCP server on /dev/vmnet1 done
Host-only networking on /dev/vmnet1 done
DHCP server on /dev/vmnet8 done
NAT service on /dev/vmnet8 done
Host-only networking on /dev/vmnet8 done
Virtual ethernet done
# exit
$

It works for me. No guaranties it's gonna work for you. Good luck.
Click to view hakuza's profile Lurker 1 posts since
Feb 14, 2007
Hi all,

I to ran into this problem when i installed VMware server on Ubuntu Server 6.10.

My solution was the one that PropellerHead gave.

Thanx m8 worked out fine.
Click to view pmhausen's profile Enthusiast 29 posts since
Dec 8, 2006
Hi!

I have a less intrusive fix to suggest:

Instead of modifying the scripts that come with VMware server for Ubuntu
I simply added my own start script to fix the directory and its permissions
before the httpd for the web ui is started.

Create the following script as /etc/init.d/rundir.httpd.vmware,
then

chmod 755 /etc/init.d/rundir.httpd.vmware
cd /etc/rc2.d
ln -s ../init.d/rundir.httpd.vmware ./S90rundir.httpd.vmware

Scripts content:
------------------------------------------------------------------------------------------
#! /bin/sh
#
# /var/run gets purged at every reboot!

RUNDIR="/var/run/vmware/httpd"
OWNER="www-data"
GROUP="www-data"

/usr/bin/test -d "$RUNDIR" || \
/bin/mkdir -p "$RUNDIR" && /bin/chown "$OWNER:$GROUP" "$RUNDIR"
------------------------------------------------------------------------------------------

Advantage: my solution will survive an update of your VMware server
installation ;)

Kind regards,
Patrick

VMware Beta Programs

Want to be Considered for Future Beta Programs?

Learn More

VMware Developer

Download SDKs, APIs, videos,
training, and 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

Only VMware ... Delivers Nexus 1000V

Ensure consistent, policy-based network capabilities to virtual machines across your data center.

Learn More

Communities