VMware
1 2 Previous Next 27 Replies Last post: Nov 21, 2009 5:57 PM by martyfelker  

Workstation Installer Hang 6.5.3 and Workaround posted: Aug 31, 2009 9:24 AM

Click to view BitOBear's profile Lurker 2 posts since
Nov 29, 2005

I just encountered a hang installing Workstation on Ubuntu Karmic.

Symptom: you are running a an install using 6.5.3 bundle and you get to "Configuring VMWare Player" and then everything stops indefinitely.

Cause: the installer runs vmware-modconfig-console which produces enough output with some kernels that the python engine deadlocks is command piplining during the compile.

Technical Details: It is always dangerous for a linux/unix program to use the pipe-based "run a sub-command" library calls if it isn't ready to read all the output in one thread while waiting for the command to complete in another. Normally such commands should either be reading the result text or redirecting that result text to /dev/null. The naieve version just runs the command and waits for the result. But if the result text is larger than the system pipe buffer size, the command will block while trying to send its output, and the command never finishes. With the command waiting for the parent to read the data, and the parent waiting for the command to finish, the whole shebang just comes to a stop.

Why this is happening: The current driver patches for the 2.6.31 kernels produce a lot of warning messages about the symbols _MSVC_VER and __FREE_BSD__ being not defined. This never happened before, and whoever wrote the installer never tried it against a long stream of output. So with the new warning stream the compile and the installer deadlock as above.

Workaround: There are three phases to the work around; It is necessary to catch and kill the compile step; this, in turn would cause the installer to back out the installation, so you have to stop that from happening; then you have to compile the modules manually.

Steps:

1) open two command windows.

2) become root in one of those windows. i.e. "su -". (If you havn't set your root password in Ubuntu use "sudo su -" and your login password)

3) in the root-ed window run "while true; do killall -9 vmware-modconfig-console; sleep 1; done" this wil try, once each second, to kill the module compile step. Ignore the stream of not-found messages.

4) in the non-root window run the install with sudo and the --ignore-errors argument; i.e. "sudo ./VMware-Workstation-6.5.3-185404.i386.bundle --ignore-errors". This will take a little longer than usual because of the continuous killall above, don't sweat it.

5) once the installer finishes go back to the root window and do a control-C to stop the kill loop.

6) In the root window run "vmware-modconfig --console --install-all" to install the modules.

Caveats and Tips:

a) Once you have a hung installer session you have to kill the python command that is running the installer. Think of that as a step-0 if it comes up. 8-)

b) If the installer still hangs, the kill loop may not be fast enough; start over but leave the 'sleep 1;' out of the kill loop. It will slow down the install even more, but it is more likely to catch the command in time.

ASIDE: It woudl be nice if the installer had a don't compile the modules step...

Hopefully the installer will be fixed soon.


Click to view 298's profile Novice 20 posts since
Oct 26, 2007
Thanks BitOBear, this worked like a charm. I'll buy you a beer.

Re: Workstation Installer Hang 6.5.3 and Workaround

2. Sep 7, 2009 3:29 AM in response to: 298
Click to view jcottier's profile Lurker 3 posts since
May 29, 2007

I am running Ubuntu 8.04 and I tried all the fixes here and others (similar problem on FC11 apparently). But nothing works. I have tried had to go back to 6.5.2, but now that has the same error!

Any ideas would be most welcome!

Re: Workstation Installer Hang 6.5.3 and Workaround

3. Sep 8, 2009 12:07 AM in response to: jcottier
Click to view TNowakowski's profile Lurker 3 posts since
Sep 3, 2009
I had the same problem and for me worked a little different solution.
I discovered that install process hangs while compiling (make) modules. For my Ubuntu 8.10 the only working way of pushing installer over 62% of progress was simply changing binary file 'make' for binary file 'true'.
To be clear. I've made a copy of original make program and replaced it by true program (yes 'true' is a small program which always returns true). After that switch I run the installer and everything went fine without my intervention. After the installer finished his hard job, I recovered my make program and now I got stuck with fully installed Workstation without modules. The only thing I have got to do now is to compile Workstation modules under my custom made kernel 2.6.30.

I will try to compile my modules under stock Ubuntu 8.10 (2.6.27-14) if I don't find a solution soon.
Click to view jcottier's profile Lurker 3 posts since
May 29, 2007

I have found that if I kill the GUI installer when it has hung (you need to monitor the end of /var/log/vmware-installer for a while to see when it has actually stopped) then run "vmware-modconfig --console --install-all" as root. That completes the install, but only gives a working VMPlayer, no Workstation. Still, at least it allows me to run the OS's. See also this thread http://communities.vmware.com/thread/227575?tstart=30

Presumably a kernel update has messed things up. I hope they fix it soon.

Click to view Peter S.'s profile Lurker 4 posts since
Aug 7, 2007

WONDERFUL!! :x
worked great for Fedora 11, too.

Thank you!
Peter

Click to view 298's profile Novice 20 posts since
Oct 26, 2007
jcottier, I had the same problem at one time. I think the whole point of BitOBear's and also TNowakowski's idea is to force the VMware installer through the install procedure regardless of the failures in module compilation. When compilation is disabled either by killing it all the time (BitOBear) or by replacing make with a NoOp, (TNowakowski), then the installer will at least copy everything into the correct directories. In a second step, we can then compile the modules.

Re: Workstation Installer Hang 6.5.3 and Workaround

7. Sep 8, 2009 12:09 PM in response to: Peter S.
Click to view guycook's profile Novice 7 posts since
May 17, 2007

Peter S, have you written this anywhere for installing Workstation 6.5.3 on a fresh Fedora 11 install? I would sure like to follow that, having issues with the install hanging on the VMware Player step of the install process.

Guy C

Re: Workstation Installer Hang 6.5.3 and Workaround

8. Sep 9, 2009 9:06 AM in response to: guycook
Click to view Peter S.'s profile Lurker 4 posts since
Aug 7, 2007

Hi Guy,

I had VMware Workstation 6.5.2 installed before with the tricks from this posting:
http://communities.vmware.com//thread/203231

I uninstalled version 6.5.2 with rpm and reinstalled Version 6.5.3 with the .bundle installer with the tutorial from BitOBear above.
I tried the installation with the .rpm installer but it didn't work. So i used the .bundle and it works perfect.
Between uninstall and install i updated my Fedora (with restart).

Hope it helps

Peter


Click to view guycook's profile Novice 7 posts since
May 17, 2007

Peter,

Thanks, I got 6.5.3 installed too, I did it by doing first rpm -e of the previous failed attempt install.

2. Opened a second terminal as root.

3. In the first terminal I rpm installed the package, stopping when prompted for the EULA, go to the second terminal and

4. type "mv -v /etc/vmware/database /tmp/ hit enter that will move the database to tmp

5. Go to the first terminal, accept the EULA and finish the install, when it says "Installation Successfull" go to the 2nd terminal and move the database back by typing "mv -v /tmp/database /etc/vmware/ to move the database back

6. Then the important part in the terminal as root "vmware-modconfig --console --install-all" you'll see lots of messages but ignore them and eventually it will finish, you can then start vmware, and install guest os.

Thanks to all who posted the information that built the recipe above.

Guy Cook

Re: Workstation Installer Hang 6.5.3 and Workaround

10. Sep 10, 2009 1:49 AM in response to: guycook
Click to view jcottier's profile Lurker 3 posts since
May 29, 2007

Thanks Peter, that procedure worked perfectly in Kubuntu 8.04 too.

Regards John Cottier.

Re: Workstation Installer Hang 6.5.3 and Workaround

11. Sep 24, 2009 11:41 AM in response to: BitOBear
Click to view phoenix89's profile Lurker 2 posts since
Sep 24, 2009
AWESOME, Thanks for your help.
Click to view Number7's profile Lurker 1 posts since
Oct 2, 2009

Brilliant.

Thank you Guy.

Click to view znmeb's profile Enthusiast 39 posts since
Feb 8, 2004
I ran into this on openSUSE 11.2 Milestone 8 but it seems to have gone away with the more recent 11.2 Release Candidate 1. I thought it was openSUSE-specific, so I filed a bug there.

Re: Workstation Installer Hang 6.5.3 and Workaround

14. Oct 17, 2009 3:23 AM in response to: guycook
Click to view WalterKasberg's profile Novice 12 posts since
Dec 15, 2004

Hi,

this worked also perfectly with Mandriva 2010 rc2 and kernel 2.6.31.

Thanks

Walter

VMware Developer

SDKs, APIs, Videos, Learn and much 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

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities