Pulling Hair: Installing VMWare Tools in an OpenSUSE 12.3 guest

Sep 18, 2013 20:41

I don't consider an installation of a guest OS in a VMWare VM really complete until VMWare Tools is on the guest OS. Having VMWare Tools lets your guest desktop resize to fit your host display and it also supports drag-and-drop and clipboard interoperation between host and guest. Sometimes it's a little glitchy, but on the whole it works.

By the way, if you did an "Easy Install" (ha-ha!) and are hung up on "Installing VMWare Tools..." and/or getting a funny login prompt, I can't help you. Just nuke everything and install the OS yourself. It's really not that hard.

Let's begin. You click in the VM menu of the window the VM is running in. You click "Reinstall VMWare Tools..."

This causes an ISO with the tools to be mounted on your VM as if it is a CD. Unpack the archive that's in its root to someplace convenient.

Now, before you type sudo ./vmware-install.pl in your terminal from the vmware-tools-distrib directory that was built, you need to go to "Install/Remove Software" and get a few packages:

gcc
make

Then you need the Linux kernel headers. But not just any version, oh no!

Click "Install/Remove Software" again if YaST isn't still up and from YaST, click the View drop-down tab and go to "Package Groups". Then select "Multiversion Packages". Click on kernel-desktop-devel. Then click the Versions tab in the lower panel. You want the one(s) that are 3.7.10-1.1.1-x86_64. (or I suppose ...i686 if you're running the 32-bit version of OpenSUSE) (There was just one when I was installing but I went and did some other stuff before writing this.)

Okay, now we need to make a little change to make things conform to the reality VMWare expects - put a copy of some critical file where the VMWare Tools Configuration script will be looking. A wonderful human being posted what we need.

I think you'll already have the packages installed by the first two commands, so skip ahead to these two. You might need to sudo them:

mkdir -p /lib/modules/3.7.10-1.1-desktop/build/include/linux

cp /usr/src/linux-3.7.10-1.1-obj/x86_64/desktop/include/generated/uapi/linux/version.h /lib/modules/$(uname -r)/build/include/linux

(This is for the 64-bit version - if you're using the 32-bit version, browse your files and see what the equivalent of 'x86_64' in the source path is.)

Okay, now you can run the install script. If you get through it on the first try, consider yourself lucky to have read this first.

linux, vmware, opensuse, virtual machines

Previous post Next post
Up