
The latest version of Ubuntu (8.04 a.k.a. Ubuntu Hardy - the world's most popular Linux distribution) came out yesterday on April 24th. I downloaded it right away to play with on VMware Fusion, my Mac virtualization tool of choice (though I've now been told this works in VMware Workstation and VMware Player on the PC too!). It worked pretty well out of the box, with even seamless mouse support working right away, but I needed, of course, to install VMware Tools too, as any good VMware user would do. From there, things turned sour, and I was bombarded with error messages similar to:
In file included from /tmp/vmware-config8/vmblock-only/linux/os.h:35,
from /tmp/vmware-config8/vmblock-only/linux/block.c:26:
/tmp/vmware-config8/vmblock-only/./include/compat_wait.h:78: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:65: error: previous declaration of ‘poll_initwait’ was here
In file included from /tmp/vmware-config8/vmblock-only/linux/vmblockInt.h:40,
from /tmp/vmware-config8/vmblock-only/linux/block.c:29:
/tmp/vmware-config8/vmblock-only/./include/vm_basic_types.h:184: error: conflicting types for ‘uintptr_t’
include/linux/types.h:40: error: previous declaration of ‘uintptr_t’ was here
make[2]: *** [/tmp/vmware-config8/vmblock-only/linux/block.o] Error 1
make[1]: *** [_module_/tmp/vmware-config8/vmblock-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
make: *** [vmblock.ko] Error 2
make: Leaving directory `/tmp/vmware-config8/vmblock-only'
Unable to build the vmblock module.
After banging my head against the wall for a while, trying a "vmware-any-any" patch that didn't quite do the trick, and scouring the VMWare Fusion and Ubuntu Forums, I eventually came across a link to a page that described how to solve the problem. The credit for this solution rests entirely on the guy who wrote that page and a guy called Mufassa who posted a shorter explanation to the VMware Fusion forums.
I wanted to write this up into a proper blog post though for two reasons. Firstly, I wanted to show how to fix the problem in a more, direct line by line way (just in case you're a novice or would rather follow some command line instructions). Secondly, I know posts on this blog appear in Google very quickly, so I want people Googling for "vmware fusion" and "ubuntu hardy" (like I was earlier) to find this page and have their problem solved! So, credit to those other guys, but..
Steps To Getting VMware Tools installed on Ubuntu Hardy under VMware Fusion:
Use the "Install VMware Tools" option in VMWare Fusion, and drag the .tar file (not the RPM!) to the Ubuntu desktop.
Open a Terminal (Applications menu -> Accessories -> Terminal). We'll do all the work from the Terminal. First, we need to install some dependencies:
sudo apt-get install build-essential libgtk2.0-dev
sudo apt-get install libproc-dev libdumbnet-dev xorg-dev
cd Desktop/wget http://mesh.dl.sourceforge.net/sourceforge/open-vm-tools/open-vm-tools-2008.04.14-87182.tar.gz
Next, we need to unpack the tar files we have at hand:
tar xzvf VMware*.gz
tar xzvf open-vm-tools*.gz
Next, we'll build the open-vm-tools:
cd open-vm-tools-2008.04.14-87182/
./configure && make
cd modules/linux/
In the modules/linux folder we have the vmblock, vmhgfs, vmmemctl, vmsync and vmxnet modules that we need to tar up and place into the official VMware tools tarball:
for i in *; do mv ${i} ${i}-only; tar -cf ${i}.tar ${i}-only; done
cd ../../..mv -f open-vm-tools-2008.04.14-87182/modules/linux/*.tar vmware-tools-distrib/lib/modules/source/
Now we can run the regular VMware tools installer:
cd vmware-tools-distrib/
sudo ./vmware-install.pl
Once this is done, the best tactic is to restart Ubuntu entirely. Once you boot back up, things should seem a bit smoother. The resolution of the VM will stick to the size of the VM, etc, and you can now drag files directly into Ubuntu Hardy from your Mac desktop!
Note: A few of the lines of code you need to use above are single lines of code but spread over multiple lines on your screen when viewing this blog. Either make your browser wider, or copy and paste them into a text editor before continuing.






{ 20 trackbacks }
{ 171 comments }
← Previous Comments
I'm attempting to install HH 8.0.4 onto VMware Fusion 1.1.3, but get error "Couldn't find package libdumbnet-dev" when I try executing the following:
sudo apt-get install libproc-dev libdumbnet-dev xorg-dev
Is this library no longer available or unnecessary?
Try enabling the universal repository for apt-get / Synaptic.
Think I solved the libdumbnet-dev problem, by re-running update again. This apparently did the trick as libdumbnet-dev was found and downloaded. However, I now get the following PATH-related error after running ./configure && make :
Checking for icu-config... no
configure: error: icu-config was not found on your PATH. Please configure without ICU (using --without-icu) or install ICU from http://www.icu-project.org
Is the ICU unicode library required for VMware Tools?
Does the PATH mentioned above refer to Linux BASH shell PATH or a PATH statement in some associated Makefile?
Tom: other folks have mentioned that you may need libicu-dev to compile the Open VM Tools. You should be able to get it by doing:
sudo apt-get install libicu-dev
I have followed these instructions several times, most recently a few minutes ago with the June 3 release of the Open VM Tools, and they work great. Thanks for the helpful blog post!
Note: I do get errors when building vsock and vmxnet3, but those modules don't seem to be critical, and things work fine without them. I also see some strange messages at the end of the configuration process, but those too don't seem to have any noticeable effect:
rpctool: Rpci: Sending request='toolinstall.end 1'
rpctool: Rpci: Sent request='toolinstall.end 1', reply='Unknown command', len=15, status=0
Unknown command
Tom, are you installing on desktop or server?
Did you try out my scripting?
Just do
wget http://kragenet.dk/_public/ubuntu8.04_vm-tools.sh
chmod +x ubuntu8.04_vm-tools.sh
./ubuntu8.04_vm-tools.sh
from the terminal on your virtual machine. I just updated it to use the newes version of open-vm-tools.
Just tested on my 8.04 vm-machine on vm-server. Works perfect.
If any problems, it might be because I updated the kernel in the virtual machine and rebooted before I installed vm-tools. You should do the same.
The way I find the easiest is:
Open aptitude with "sudo aptitude"
Press "u" to update the lists
[Shift+U] to mark upgradable packages
Press "g" twice to start updating.
Exit aptitude by pressing "q" and choosing "[yes]"
Restart virtual machine with "sudo reboot"
Ok, that update and reboot procedure was mostly for the server version. for desktop, you can off course use the update manager in [System > Administration].
I am using VMPlayer. I do not have option for "Install VMware Tools". Any help? Can I download the files from some where?
I only noticed after the "cd ../../.." step that I have no "vmware-tools-distrib" directory. Rock on! But first fix my little problem.
Weird, I just installed 8.04 and vmware-tools the regular way and everything is working fine.
I had the same problems a few days ago and solved it the same way. Unfortunatly i did not find this blog post _prior_ to investing some hours of time. You can see my tiny approach here: http://100days.de/serendipity/archives/46-vmware-tools-on-ubuntu-8.04.html
But using the vmware-tools installer to register all the modules instead of doing it manually is of course a cool idea!
Hi,
I tried to follow your instructions to install VMware tools on Fedora 9 guest but I always encounter the following error when invoking configure:
checking for XineramaQueryVersion in -lXinerama... no
configure: error: libXinerama not found. Please configure without multimon (using --disable-multimon), configure without X11 (using --without-x), or install the libXinerama devel package(s).
But If I try to install libXinerama-devel yum always reports that libXinerama-devel is already installed :
[setya@promisedlanderfedora open-vm-tools-2008.06.03-96374]$ sudo yum install libXinerama-devel
Loaded plugins: refresh-packagekit
Setting up Install Process
Parsing package install arguments
Package libXinerama-devel-1.0.3-1.fc9.i386 already installed and latest version
Nothing to do
Any ideas ?
Best Regards,
Setya
Thank you for the excellent guide on installing VMwareTools. I'm a Linux noob and was having some problems doing this. I followed a few blog instructions but could only fix the issue by following the guide here.
Have bookmarked the site now as i'm sure it will be invaluable to me as I try to learn more.
Thanks again :)
Just had a comment from Alan, which resulted in s minor update to avoid incompatibility of shells.
v1.11
Thank you, Jimmy! Your ubuntu8.04_vm-tools.sh works perfectly for my Windows XP SP2 as host PC. I did notice there was a minor configure error for ICU, which read "configure: error: icu-config was not found on your PATH. Please configure without ICU (using --without-icu) or install ICU - http://www.icu-project.org". This can be resolved by obtaining libicu38 and libicu-dev packages through Synaptic Package Manager, or apt-get.
After installing VM tools in this way, I noticed the Guest Ubuntu did not get connected automatically. I had to manually select connection from the Network icon.
Did any one else notice this problem?
I havn't really played with the desktop version myself. But you are suggesting that I add libicu38 and libicu-dev to the package installation in the beginning of the script, right?
COMPLIMENTS!!! Ah so long procedure but finally my VMWare tool has been installed!!
:-)
Thanks!!!
You are a lifesaver! I had managed to get shared folders to work with Ubuntu 8.0.4 using Open-vm-tools. However, after an automated Ubuntu update, shared folders stopped working & re-installing open-vm-tools failed to re-enable the shared folders feature. I was able to get shared folders to work again by following your instructions.
Thanks again!
89933 (fusion 2 beta) -> lotsa problems. Downgraded to 1, worked perfect, thanks.
Thanks a lot for these very clear instructions. There's a more recent version of open-vm-tools now, open-vm-tools-2008.06.03-96374.tar.gz, and like Paul Li said above, you need two additional packages to install that: libicu38 and libicu-dev. Another than that, everything works great. Thanks again!
THANK YOU! I was sweating it!
Just FYI
I just got a successful build with Fusion 1.1.2 and a fresh VM off the Ubuntu JeOS iso.
First, I needed to sudo apt-get install wget openssh-server.
Then, I did this since it was in the Ubunutu Community docs
sudo apt-get update && sudo apt-get upgrade
#and#
#Next install the package psmisc to get killall that is required by the VMware tools
sudo aptitude install psmisc
However, I still would get the ICU PATH error as well.
So I re-did it adding
sudo apt-get install libicu38 libicu-dev
And it worked just fine, this is a Server version so I'm not sure why JeOS needed those two.
FYI, if there is no Shared Folder setup in advance, you will see console boot error/fail message about hgfs. As soon as there is Shared Folder defined, that error message will go away.
Also, do not SSH into the guest to run these updates to take advantage of copy and paste.
I was hanging every time at Unloading pcnet32 which I guess was due to the fact a connection was in use.
Jimmy - many thanks for this site. It saved me countless hours and frustation.
Trevor
After upgrading VMWare Fusion to the lastest and after a few Ubuntu updates. VMWare Tool are not working and I cannot seem to follow these instructions to reintall.
Anybody else experience this problem?
As above, great & thanks. I was good except for:
wget http://mesh.dl.sourceforge.net/sourceforge/open-vm-tools/open-vm-tools-2008.04.14.87182.tar.gz
led to:
...20 redirections exceeded.
So just used firefox to go to
http://open-vm-tools.sourceforge.net/
followed the download link to
http://sourceforge.net/project/showfiles.php?group_id=204462
and actually grabbed the 2008.06.03 version there.
Works fine under OS X 10.5.3, VMWare Fusion 1.1 and Ubunt0 8.04 64 bit
Works great thanks!!!
I installed vmware tools without the shit open-vmware-tools. Have more common sense the next time!
Thanks, it worked perfectly for me with the 2008-06-03 version of the open-vm-tools.
just add
apt-get install libicu-dev
to the dependencies...
After downloading the dependencies, the tar xzvf VMware*.gz
tar xzvf open-vm-tools*.gz do not open. I get the following error:
tar: VMware*.gz: No se puede open: No existe el fichero ó directorio
tar: El error no es recuperable: salida ahora
tar: Child returned status 2
tar: Salida con error demorada desde errores anteriores
I tried it enough times to know it was not a typing error. Please help.
Many thanks.
Thank you very, very much. I have really had hard time getting Ubuntu to work properly on VMware Workstation.
thank you very much!
i have met this problem and i used your way to pass it.
You're a star. Many thanks for taking the trouble to write this up in simple terms. :-)
Thank you for posting this step by step procedure. It worked perfectly on my 64 bit virtual Ubuntu machine.
Really appreciate your post. It certainly helped me out.
Cheers!
It's not necessary to compile the Open-VM-Tools. Just copy the folders in /modules/linux as tar-files into the regular VMware Tools (/lib/modules/source). The folders vmblock, vmhgfs... must be renamed to vmblock-only, vmhgfs-only...
Great!!!
This is really incredible!
Thank you so much!
Hmm, seems like I've fallen behind on this subject. I would gladly update my scripts, if someone would point out what needs to be done, and maybe even do the changes.I don't have too much time on my hands.
Mail edited files to virtual [at_changed for_no spam] kragenet.dk
Link is still http://kragenet.dk/_public/ubuntu8.04_vm-tools.sh. Other links are found inside this one.
Great help! Thx.
Thanks a lot guy. I've succeeded installing VMwareTools on Ubuntu 8.04 under VMware workstation 6.0.0 build-45731.
Really thanks a lot.
Perfect! You help me so much.
Thanks a lot
Thanks so much
You save me from hell...
Thanks for this website and the author! I am trying so hard to get the VMware Tools to work.
I have two questions:
1. I cannot get on the internet. I use the default Firefox and I already uncheck work-offline and still still nothing.
2. Does all the instructions here work for Open SUSE 11.0
and Suse 10.1 ?
I need more help.
I did this in Open SUSE 11.0 and I could NOT do the first two lines of this:
sudo apt-get install build-essential libgtk2.0-dev
sudo apt-get install libproc-dev libdumbnet-dev xorg-dev
So I IGNORE it but I got the rest of it to work and when I try to run it using this command "sudo ./vmware-install.pl" I get these error messages below:
The following VMware kernel modules have been found on your system that were
not installed by the VMware Installer. Please remove them then run this
installer again.
vmmemctl
vmblock
vmxnet
vmhgfs
Execution aborted.
philip@linux-8bxu:~/Desktop/vmware-tools-distrib>
Thank you for this excellent howto!
cordially
nickel
Thanks! Very useful and clearly written.
Mike
Thanks, this worked for me.
I had to make the following changes. I had to add --without-icu to my configure command. I also had to change the mv command to use the newer version of the open vm tools I'm just downloaded.
Thank you,
John
Hello - I get the same problem as someone earlier in the post - i am not able to find the Vmware tools. I am using fusion (1.1.3) running Ubuntu 8.04. I followed the following steps -
Any ideas anyone ????
1. Used the steps outlined above and installed the reqd packages
2. Used the "install vmware tools" option in the fusion menu
3. Went to /media/cdrom folder and found the following
=============
ls: cannot access
# checks if the given pid represents a live process.
# returns 0 if the pid is a live process, 1 otherwise
vmware_is_proces: Input/output error
ls: cannot access eck if the process associated to a pidfile is running.
# return 0 if the pidfile exists and the process : Input/output error
ls: cannot access =`cat "$pidfile" 2>.dev.null`
if [ "$pid" = '' ]. then
# the file probably does not exist o: Input/output error
ls: cannot access ty. success
return 0
fi
# keep only the first number we find, becau: Input/output error
, 1 otherwise?vmware_check_pidfile() {? local pidfile="$1" # in? local pid?? pid=`cat "$pidfile" 2>.
=`cat "$pidfile" 2>.dev.null`? if [ "$pid" = '' ]. then? # the file probably does not exist o
??# checks if the given pid represents a live process.?# returns 0 if the pid is a live process, 1 otherwise?vmware_is_proces
eck if the process associated to a pidfile is running.?# return 0 if the pidfile exists and the process
g: the "'"$tmp"'" directory may be under attack.'? echo? fi? fi? done?? eval "$dirname"'="$tm
re_is_process_alive "$pid"? if [ "$?" -ne 0 ]. then? # success? return 0?
ty. success? return 0? fi?
=====
Amy help would be appreciated.
I'm writing for Spain. Compilation error.
I downloaded Vmware Server 1.05 from http://www.vmware.com.
When I executed vmware-install.pl:
Building the vmmon module.
Using 2.6.x kernel build system.
make: se ingresa al directorio `/tmp/vmware-config0/vmmon-only'
make -C /lib/modules/2.6.24-19-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: se ingresa al directorio `/usr/src/linux-headers-2.6.24-19-generic'
CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config0/vmmon-only/./include/vmware.h:25,
from /tmp/vmware-config0/vmmon-only/linux/driver.c:48:
/tmp/vmware-config0/vmmon-only/./include/vm_basic_types.h:159: error: redefinición de la definición de tipo ‘uintptr_t’
include/linux/types.h:40: error: la declaración previa de ‘uintptr_t’ estaba aquí
En el fichero incluído de /tmp/vmware-config0/vmmon-only/linux/driver.h:20,
de /tmp/vmware-config0/vmmon-only/linux/driver.c:49:
/tmp/vmware-config0/vmmon-only/./include/compat_wait.h:37:5: aviso: "VMW_HAVE_EPOLL" no está definido
/tmp/vmware-config0/vmmon-only/./include/compat_wait.h:43:5: aviso: "VMW_HAVE_EPOLL" no está definido
In file included from /tmp/vmware-config0/vmmon-only/linux/driver.h:20,
from /tmp/vmware-config0/vmmon-only/linux/driver.c:49:
/tmp/vmware-config0/vmmon-only/./include/compat_wait.h:60: error: tipos en conflicto para ‘poll_initwait’
include/linux/poll.h:65: error: la declaración previa de ‘poll_initwait’ estaba aquí
/tmp/vmware-config0/vmmon-only/linux/driver.c:147: aviso: inicialización desde un tipo de puntero incompatible
/tmp/vmware-config0/vmmon-only/linux/driver.c:151: aviso: inicialización desde un tipo de puntero incompatible
/tmp/vmware-config0/vmmon-only/linux/driver.c: En la función ‘LinuxDriver_Ioctl’:
/tmp/vmware-config0/vmmon-only/linux/driver.c:1659: error: ‘struct mm_struct’ no tiene un miembro llamado ‘dumpable’
make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2
make[1]: se sale del directorio `/usr/src/linux-headers-2.6.24-19-generic'
make: *** [vmmon.ko] Error 2
make: se sale del directorio `/tmp/vmware-config0/vmmon-only'
Unable to build the vmmon module.
For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".
Execution aborted.
Hello again.
I found the solution in http://www.howtoforge.com/the-perfect-desktop-ubuntu-8.04-lts-hardy-heron-p5
Hi - great Introduction - but i got the same problem as already mentionned by chris
"The kernel defined by this directory of header files does not have the same
address space size as your running kernel."
i tried /usr/src/linux-headers-2.6.24-19-generic/include when it asked me:
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
if i run
sudo apt-get install linux-headers-`uname -r`
it only says that the newest version is already installed.
any ideas? :) Thanks for any hint!!!
Hey Jimmy,
thanks a bunch for this life aid!!
Same procedure here, tried to install the original VMWare Fusion (1.1.3) tools on an UBUNTU server (8.04.1) VM - a real pain in the ass, but all to no avail. Problem was that the tools installation obviously needs the Ubuntu desktop because even the CD mounting of the tools iso did not happen after firing up the tools installation menu entry.
Anybody happens to know where I can find the iso with the tools??
best,
geefes
It doesn't work for me. Sorry
tar xzvf VMware*.gz
tar: VMware*.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
Best regards tobbe
← Previous Comments
Comments on this entry are closed.