Preparing a VMWare Ubuntu Guest OS

I forget these steps all the time, so I figured I should record them here.

A lot of times VMWare will auto-install the VMWare tools for you when you first setup your VM. However, many times after setting it up I’ll do updates, and updates to the kernel will be applied, knocking out the VMWare Tools changes. These tools are used for things like file sharing between the guest and host.

So here are the steps to take to fully update and re-install the VMWare Tools. I got most of these from an article on Ubuntu’s website.

First, sudo aptitude update to make sure all my repository information is up-to-date.

Second, sudo aptitude safe-upgrade to get any and all updates for my newly installed OS.

Third, sudo apt-get install build-essential linux-headers-`uname -r` psmisc to install the linux headers for my kernel.

Fourth, copy and install the VMWare Tools:

# make a mount point if needed :
sudo mkdir /media/cdrom

# Mount the CD
sudo mount /dev/cdrom /media/cdrom

# Make a dir for the VMWare Tools files
mkdir ~/vmtools

# Copy and extract VMWareTools
sudo cp /media/cdrom/VMwareTools*.tar.gz ~/vmtools

# You can extract with archive manager, right click on the archive and extract ... or
cd ~/vmtools
tar xvf VMwareTools*.tar.gz

# Install the tools
cd vmware-tools-distrib
sudo ./

Just follow the prompts and hit for all the default values.

1 thought on “Preparing a VMWare Ubuntu Guest OS

  1. shortcut…

    sudo aptitude install open-vm-tools open-vm-dkms open-vm-toolbox-

    * simpler
    * no need to run after every kernel upgrade
    * managed by your package manager


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this:
search previous next tag category expand menu location phone mail time cart zoom edit close