Important Notice: This post has been updated using a newer, easier method. Read more here.

I’ve had a really hard time trying to find the way to get VMware Tools on Linux virtual machines, but I’ve got it down to just a few steps. If you’re using a ‘big name’ distribution with a graphical interface, it’s not hard to install. But, I like to use Debian or Ubuntu, without X11 (the aforementioned “graphical interface”), so it’s a pain in the butt.

How to install Vmware Tools on Ubuntu without X11:

  1. Install Ubuntu Server
  2. Login
  3. Create a root shell:sudo bash
  4. Update your sources:apt-get update
  5. Upgrade your installed packages (dist-upgrade to force kernel upgrade):apt-get dist-upgrade
  6. Reboot
  7. Create a root shell again:sudo bash
  8. Install packages VMware Tools needs:apt-get install linux-headers-server build-essential
  9. Install VMware tools
  10. Mount the VMware Tools CD ISO:mount /cdrom
  11. Copy VMware Tools to home:cp /cdrom/VmwareTools-x.x.x-xxxxx.tar.gz ~
  12. Go home:cd ~
  13. Untar/Gzip the install:tar -zxf VmwareTools-x.x.x-xxxxx.tar.gz
  14. Go into the resulting directory:cd vmware-tools-distrib
  15. Start the installer:./vmware-install.pl
  16. Install will ask you questions, the defaults should work fine.
  17. Remove the basic AMD PCnet module (if you get errors about building the ethernet driver, run this command and start at step 14 again):rmmod pcnet32
  18. Rebuild module dependancies:depmod -a
  19. Install the VMware accelerated network interface:modprobe vmxnet
  20. Restart network service:/etc/init.d/networking restart
  21. Reboot
43 Responses to “Install VMware Tools on Ubuntu”
  1. Chris says:

    I found your guide here to be awesome compaired to others, but the very last command was slightly different in mine, had to use this instead. Maybe a typo, great work though.

    /etc/init.d/networking restart

  2. Matt Jones says:

    Thanks Chris, I made the correction. It might be a change from Ubuntu 6.06 to the newest, or a typo!

  3. xushi says:

    Great article.

    I’d like to also add, that on some debian installs, it might not find GCC as you might not have it installed. Just in case, just quickly install it first with apt-get.

  4. tupz says:

    Nice guide. Fixed my networking problem I was having with VMware Tools. THANKS A LOT!!!!!! Step 17-19 fixed it right up…

  5. Greg says:

    Thanks for the steps, one thing I had to do was umount /cdrom before the vmware tools could be mounted.

  6. Raz says:

    very good guide
    Help alot
    its 15.12.2008 and still working good
    Thanks for the investment .

  7. drew says:

    This guide came in very, very handy on my ubuntu server-only VM. I’m running Workstation and this was perfect. Thanks!

  8. Mike says:

    Great guide!

    Apart from the Open Source version of VMWare Tools this is the first time that I successfully installed them on Ubuntu JeOS!

    Thankyou!

  9. Jen says:

    Great guide. Just set up the Ubuntu VM to get my feet wet in Linux, and this worked like a champ.

  10. [...] in making it even quicker and easier. It seems newer versions of Ubuntu and VMware Tools broke my previous instructions. Luck for us, VMware and Ubuntu contributors have made the process easier than it was in the [...]

  11. Jamie Smith says:

    on the new vmware ESX if you right click on guest OS virtual maching then select install vmware tools this mounts the cd then type in the following commands:

    sudo aptitude install build-essential linux-headers-generic
    cp /media/cdrom/VMwareTools-*.tar.gz /tmp/
    cd /tmp/
    tar xf VMwareTools-*.tar.gz
    cd vmware-tools-distrib/
    sudo ./vmware-install.pl

    this should install the tools for you

    • Christian Sawyer says:

      VMware Server 2.0.x allow same installation facility with some difference as follow:

      sudo aptitude install build-essential linux-headers-(generic or server or virtual)

      #Need to create symbolic link as vmware-tools only refer to /usr/src/linux/include
      ln -s /usr/src/linux-headers-2.6.x.x-(generic or server or virtual) /usr/src/linux

      # The rest is the same.
      cp /media/cdrom/VMwareTools-*.tar.gz /tmp/
      cd /tmp/
      tar xf VMwareTools-*.tar.gz
      cd vmware-tools-distrib/
      sudo ./vmware-install.pl

      Everything works fine for ubuntu server jeos, hardy, intrepid and jaunty

  12. Brett says:

    I went through your instructions and the process looks like it completed successfully. I was curious of how to know they installed for sure? I was expecting to be able to mouse in and out of the window like I do on my virtual Windows servers but I cannot. Is Linux different?

  13. Dimi says:

    Hi there,

    thank you so much for this tutorial … it works … just amazing !!!
    tried to get it running 3 days now on a ubuntu 9.04 server …
    now it works perfectly …

    greetings

  14. Cesc says:

    I get compile errors on many modules

  15. Nick Yeoman says:

    Excellent tutorial! It worked perfect for me on 9.10.

  16. jacorb effect says:

    Dude. You’re awesome. Keep it up

  17. deciacco says:

    is there a way to verify that it is indeed using the vmxnet driver?

  18. Thanks Chris, I am glad I found your site! To reiterate an earlier post, this guide came in very, very handy. I run Ubuntu 8.04LTS server VM’s on ESX and ESXi.

  19. [...] source Author: WladyX on 2 December, 2008 Category: General, Ubuntu Newer: Find rogue DHCP Servers Older: Changing GDM/root cursor [...]

  20. chaandhoo says:

    Thanks for the helpful tutorial Gorillapond. I am in a bit of a fix. Invoking “vmware-toolbox” inside my Uuntu server does not do anything.
    I am trying to get two things going:
    (1) Get my mouse to work in and out of the Ubuntu 9.10 Server virtual machine
    (2) Shrink the disk size of the VM image
    I am running VMWare Fusion on Mac OS X

    Thanks!

  21. dig says:

    if you have troubles with “mount” section try

    # mount /dev/cdrom1 /cdrom

    (ubuntu 10.04 server)

  22. Anders says:

    If /dev does not have cdrom1, but dvd, try

    #mount /dev/dvd /cdrom

  23. Hey, it’s really nice post. I like this topic so much and I think it is great way to popularize that.

  24. Wow, thats a very informative article for me. I like your wordpress blog. Maybe you should write more articles of these type. =)

  25. :;~ I am really thankful to this topic because it really gives great information ~~*

  26. Marco says:

    Just to say thank you.

  27. I possess been researching that for a quite long time now and I have not been capable to discover this kind of outstanding information untill I came to your weblog today.

  28. Thanks for sharing so sool…

  29. I really like it. Great post!

  30. I like your post. Good job!

  31. Alex Caffery says:

    My partner and i expected to crank out everyone A person little bit of term in order to ultimately point out with thanks another for a second time while using the exclusive guidelines you could have brought at the moment. In the court could really kind with you to produce without restraint exactly what the many individuals may have commercialized for the elizabeth tutorial to produce a few revenue on their own, primarily seeing that you simply can have ended this inside the function it suited you. The ideas in includeition proved helpful to transform along to be advantageous solution to observe that other individuals have got comparable keenness similar to this individual own personal to grasp very significantly further tied in to the present produce a.

  32. Baron says:

    I sort of discovered your blog site accidentally, but your blog site captured my attention and i also thought that I might post to let you know that I like it.

  33. Hi, I think that I visited this website before thus I am back to enjoy the good reading. I’m attempting to find good information to improve my site! I suppose its ok to borrow some of your excellent ideas! You really have a talent for writing. Thanks.

  34. Adonis says:

    had a great help with this page… been around the web for a solution, Only here That I found a working answer! Great A++++ Kudos!

  35. This post gives the light in which we can observe the reality. this is very wonderful one and gives indepth information. thanks for this awesome article!

  36. I do not even know the way I stopped up here, but I believed this post was once good. I don’t understand who you are but definitely you are going to a well-known blogger for those who are not already. Cheers!

  37. [...] help. When I wrote this I was using player, which at the time didn’t include this in the help.GorillapondUbuntu tutorialsVMWare forum install server ubuntu VM [...]

  38. Lannie Hegna says:

    Things you mentioned a lot of sense. Nonetheless, consider this, what happens if you integrated a little bit more? I am talking about, I don’t tend to teach the way to write ur blog, however what if you actually added extra content which can certainly get peoples attention? Just as a online video or maybe a picture or 2 to obtain viewers psyched about what you mentioned.

  39. show search says:

    Everything is very open with a really clear explanation of the issues.
    It was truly informative. Your site is useful. Thank you for sharing!

  40. Manuela says:

    Article writing is also a excitement, if you be acquainted with afterward you can write otherwise it is complex to write.

  41. Marcus Ewing says:

    Thanks for one’s marvelous posting! I seriously enjoyed reading it, you happen to be a great author.I will make sure to bookmark your blog and will often come back down the road. I want to encourage yourself to continue your great work, have a nice afternoon!Roofing Repair of Irving, 1117 Brandon Ct., Irving, TX 75060-4948 - (972) 200-4770

  42.  
Leave a Reply