Make sure that these RPMs are installed: kernel-source, make, gcc, gcc-c++, binutils, patch. Missing items can be installed in Yast → Software Management. You can check whether they are installed by opening a console window and entering this command:
rpm -qa | egrep “kernel-source|gcc-|make|binutils|patch”
Now check that you have kernel development tools installed. This command will show you:
rpm -qa | grep kernel | grep devel
It should return an answer similar to this:
kernel-xxxxxx-devel-2.6.31.12-0.2.1.x86_64
If you don’t get a similar return you need to install the missing RPM. The string xxxxxx is your kernel type, which you have to discover by running the command uname -r. For example if I run the command uname -r I get this:
gertrude@linuxtest:~> uname -r
2.6.31.5-0.1-desktop
My kernel type is desktop so I need the RPM kernel-desktop-devel. Other common variants of the kernel type are pae, xen, default, debug, vanilla, etc. Run uname -r to discover yours.
Download and install the VMware Server RPM package. It’s available on this link. The package I used is VMware-server-2.0.2-203138.x86_64.rpm (64 bit version) but as time passes the version number will increase from 2.0.2. The 32 bit version of 2.0.2 also works in openSUSE 11.2 with the method on this page. You will need your software key later. Register to receive the key. Install the package with Yast (e.g. right click and select to install).
Next, open a console, enter su to get rootly powers, change to directory /usr/src/linux and prepare the scene for configuring VMware by entering a series of make commands like so:
gertrude@linuxtest:~> su
Password:
linuxtest:/home/gertrude # cd /usr/src/linux
linuxtest:/usr/src/linux # make mrproper; make cloneconfig; make modules_prepare
(the ensuing dialogue finishes when this prompt comes back):
linuxtest:/usr/src/linux #
Apply patch to allow installation in kernel 2.6.3x (Credits: MiMe)
VMware Server 2.0.2 doesn’t support kernel 2.6.3x. Ubuntu Geek provides a workaround. I’ve put a copy of the patch here vmware-server.2.0.1_x64-modules-2.6.30.4-fix.tgz for your convenience. That patch was developed for 64 bit Ubuntu. It works equally well with both 32 and 64 bit versions of openSUSE.
Save the tgz file in a working directory anywhere you like (e.g. I created a folder called patch on my Desktop to work in). Extract the contents and place them in the working directory, they are the patch file vmware-server.2.0.1_x64-modules-2.6.30.4-fix.patch and a shell executable file vmware-server.2.0.1_x64-modules-2.6.30.4-fix.sh. Make sure the .sh file is executable (e.g. right click and select properties → permissions → executable). If you haven’t done this you’ll get a permissions error. Now open a console/terminal and install the patch by running the shell executable as follows:
• change to the working directory: cd /home/gertrude/Desktop/patch
• run su to get root permissions: su
• run the shell executable:
./vmware-server.2.0.1_x64-modules-2.6.30.4-fix.sh
You’ll see a very long dialogue, which will contain many warning messages like this:
/usr/lib/vmware/modules/source/vmci-only/./include/vm_atomic.h:1536:7: warning: “_MSC_VER” is not defined
which you can safely ignore – and will finish with these lines if the patch ran successfully:
Replacing original file vmnet.tar with patched file Replacing original file vmmon.tar with patched file Replacing original file vsock.tar with patched file Replacing original file vmci.tar with patched file Done! etc etc This command should work now, to install the modules: vmware-config.pl -d
The final thing in the patching is to delete the directory binary which you will find at location /usr/lib/vmware/modules/binary. Browse there in a superuser file manager and send it to trash or run this command in a console (NB with caution): sudo rm -Rf /usr/lib/vmware/modules/binary
Configure VMware
NB: all the steps above must have been completed successfully before you attempt this.
Open a console, enter su to become root and then enter the command: /usr/bin/vmware-config.pl to begin the process.
You will be asked to accept the licence agreement. Press enter and the space bar to scroll through and enter q at the end to quit. At this point the actual configuration starts and in most cases you can accept the defaults.
Error messages: you’ll see many occurences of this error message
/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:1227:7: warning: “_MSC_VER” is not defined
Ignore it because it is just a warning message.
Tip: if you want your “Guest” operating systems to join your LAN, share resources over the LAN (including share with the “Host” Suse machine) and also connect to the Internet through the LAN’s router, then choose “Bridged” for the networking option.
Tip: when asked the question “Please specify the user whom you wish to be the VMware Server administrator”, I chose my username. If you choose root, you will run into permissions problems when you want to change the configuration parameters (like virtual RAM) for a virtual machine.
Tip: If asked “Do you want this program to try to build the vmmon module for your system?”, then answer “yes”
Tip: If told that there’s a difference between various “gcc” modules and then asked if you want to proceed anyway, you should answer “yes”.
Finally, after entering the software key, you should get this sort of message “The configuration of VMware Server 2.x.y build-zzzzzz for Linux for this running kernel completed successfully” and you can then exit.
Starting Vmware
You can set VMware to start at boot by configuring it as a Service in Yast → System → System Services (Runlevel). Enable vmware in the the “Service” list, leaving the other vmware services alone. In “Expert” mode, vmware is set to runlevels 2, 3 and 5 and the other vmware-related services aren’t set for any runlevels.
You must also stop the four vmware services (that you see in Yast’s System Services [Runlevel]) from running concurrently at boot time. They are supposed to run consecutively. Edit the file /etc/sysconfig/boot and find the line RUN_PARALLEL=“yes”. Change yes to no. That will cause the startup scripts to run consecutively.
However if you don’t want VMware perpetually on as a service, then do not set any runlevels for VMware scripts as in the paragraphs above. Instead you can start it when you need it with this command in a console:
sudo /etc/init.d/vmware start
Opening the VMware Control Panel (Console)
You create, start and control your virtual machines in a console that displays in a web browser. In late 2008 I could only get the console to work in Firefox. Now, in April 09 it works OK for me in Firefox, Konqueror, Seamonkey & IE6_4_Linux. Enter either of these addresses into your browser’s address bar: http://127.0.0.1:8222 or the secure address https://127.0.0.1:8333. Log in and follow the bouncing ball.
If you receive a message in Firefox 3.x telling you that the Remote Control Plugin is not installed and advising you to download it on a link titled “Install Plugin”, just click and follow the bouncing ball to install the plugin.
Disk Space
Don’t forget that a virtual hard drive will be created for each virtual machine that you create. Make provisions before you create the machines or you could fill up a partition unexpectedly. I installed Windows 2000 Pro for everyday use because one doesn’t have to go through that incredibly irritating Microsoft activation nonsense with Win2K. Pop an install CD in the drive and have a good one!
USB Support
If your USB devices don’t present themselves in the drop-down list at the top of the Management Console in the web browser, you can activate USB support as follows:
* • Select your VM in the Management Console and check under the Summary Tab that a USB Controller has been installed. If not, then on the right panel locate the list headed Commands, activate Add Hardware and select USB Controller.
* • Mount the USB file system with parameter auto with this line in fstab:
usbfs /proc/bus/usb usbfs auto 0 0
[requires reboot to activate]
* • Make sure VMware Tools is installed on your running Guest operating system.
* • Each Guest O/S has its virtual configuration storage, including the virtual hardware config file with extension .vmx. Ensure that .vmx file contains this line:
usb.present = "TRUE"
* • View and activate/deactivate your USB devices in the drop-down list under the usb icon at the top of the Management Console in the web browser.
Mouse Pointer Issues
If your mouse is behaving erratically in the web browser console, as if intoxicated, then modify your environment parameters to sober it up. Open the file profile.local located at /etc/profile.local in a superuser text editor and insert this line:
export VMWARE_USE_SHIPPED_GTK=yes
The fix will become effective next time you boot. Here’s more on that. [Tip: don’t use the file /etc/profile, it’s transient. The file boot.local is permanent].
Finished: Yahoo
Credits: Thanks to MiMe for outlining the patching method to me. Thanks to MB / bearymore for insight re mouse issues. And to Mattias O for causing me to look closely at 32 bit installs.
Asus Eee PC 1001P