How To Install VMware Server 2 On A Fedora 14 Desktop (Kernel 2.6.35) - Page 2

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Tue, 2010-12-21 17:23. ::

Open a new terminal, and as a regular user (e.g. falko), go to the location where you saved the VMware Server .tar.gz file, e.g. /home/falko/Downloads (replace falko with your own username!):

cd /home/falko/Downloads/

Take a look at the contents of the directory:

ls -l

[falko@localhost Downloads]$ ls -l
total 494192
-rw-rw-r-- 1 falko falko 506047036 Dec 16 16:31 VMware-server-2.0.2-203138.i386.tar.gz
[falko@localhost Downloads]$

Because the original VMware installer doesn't work for kernel 2.6.35, we have to download a script from http://radu.cotescu.com/how-to-install-vmware-server-ubuntu-fedora-opensuse/ that helps us to install VMware Server 2:

wget --no-check-certificate http://codebin.cotescu.com/vmware/vmware-server-2.0.x-kernel-2.6.3x-install.sh

Take a look at the directory again:

ls -l

You should now see a raducotescu-vmware-server-linux-*.tar.gz file:

[falko@localhost Downloads]$ ls -l
total 494204
-rw-r--r-- 1 falko falko      8696 Dec 16 16:46 raducotescu-vmware-server-linux-2.6.3x-kernel-release-1.5-1-g71f8b66.tar.gz
-rw-rw-r-- 1 falko falko 506047036 Dec 16 16:31 VMware-server-2.0.2-203138.i386.tar.gz
[falko@localhost Downloads]$

Unpack that file:

tar xvfz raducotescu-vmware-server-linux-2.6.3x-kernel-release-1.5-1-g71f8b66.tar.gz

This should create a raducotescu-vmware-server-linux-* directory:

ls -l

[falko@localhost Downloads]$ ls -l
total 494208
drwxrwxr-x 2 falko falko      4096 Nov 14 22:24 raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66
-rw-r--r-- 1 falko falko      8696 Dec 16 16:46 raducotescu-vmware-server-linux-2.6.3x-kernel-release-1.5-1-g71f8b66.tar.gz
-rw-rw-r-- 1 falko falko 506047036 Dec 16 16:31 VMware-server-2.0.2-203138.i386.tar.gz
[falko@localhost Downloads]$

Move the VMware-server-* file to that directory and change to that directory:

mv VMware-server-2.0.2-203138.i386.tar.gz raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66/
cd raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66

Take a look at its contents:

ls -l

[falko@localhost raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66]$ ls -l
total 494236
-rw-rw-r-- 1 falko falko      1321 Nov 14 22:24 LICENSE
-rw-rw-r-- 1 falko falko      1980 Nov 14 22:24 README
-rwxrwxr-x 1 falko falko       702 Nov 14 22:24 start-VMware-console.sh
-rw-rw-r-- 1 falko falko      1111 Nov 14 22:24 vmware-config.patch
-rw-rw-r-- 1 falko falko 506047036 Dec 16 16:31 VMware-server-2.0.2-203138.i386.tar.gz
-rw-rw-r-- 1 falko falko     13618 Nov 14 22:24 vmware-server-2.0.2-203138-update.patch
-rwxrwxr-x 1 falko falko     11095 Nov 14 22:24 vmware-server-2.0.x-kernel-2.6.3x-install.sh
[falko@localhost raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66]$

The vmware-server-2.0.x-kernel-2.6.3x-install.sh script is the script that we need to execute (with root permissions) to install VMware Server 2 - it scans the current directory for the VMware-server-*.tar.gz file:

sudo ./vmware-server-2.0.x-kernel-2.6.3x-install.sh

The installer will ask you a lot of questions. You can always accept the default values simply by hitting <ENTER>.

You will get stuck at the following question:

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

Type CTRL+C to leave the installer, and then open /usr/bin/vmware-config.pl:

sudo chmod 755 /usr/bin/vmware-config.pl
sudo vim /usr/bin/vmware-config.pl

(I use vim instead of vi because vim shows the line numbers; /usr/bin/vmware-config.pl is a very large file.)

Around line 2702 replace

[...]
    if (-e $answer . '/linux/utsrelease.h') {
      $uts_headers .= "#include <linux/utsrelease.h>\n";
    }
[...]

with

[...]
    if (-e $answer . '/generated/utsrelease.h') {
      $uts_headers .= "#include <./generated/utsrelease.h> \n";
    }
[...]

(You can find out the exact line number by running:

grep -n utsrelease /usr/bin/vmware-config.pl

[falko@localhost ~]$ grep -n utsrelease /usr/bin/vmware-config.pl
2697:  # use utsrelease.h.  We include both just in case somebody moves UTS_RELEASE
2698:  # back while leaving utsrelease.h file in place.
2702:    if (-e $answer . '/linux/utsrelease.h') {
2703:      $uts_headers .= "#include <linux/utsrelease.h>\n";
[falko@localhost ~]$

)

Then run

sudo /usr/bin/vmware-config.pl

This will now finish the VMware Server 2 installation. Again, accept the default values simply by hitting <ENTER>, except for the following two questions:

The current administrative user for VMware Server is ''. Would you like to
specify a different administrator? [no]
<-- yes

Please specify the user whom you wish to be the VMware Server administrator
<-- root

When the installer asks you

In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines]

you can either accept the default value or specify a location that has enough free space to store your virtual machines.

At the end of the installation, you will be asked to enter a serial number:

Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel:

Fill in your serial number for VMware Server.

After the successful installation, you can delete the downloaded VMware Server files:

cd /home/falko/Downloads
rm -fr raducotescu-vmware-server-linux-2.6.3x-kernel-*

VMware Server 2 does not have a desktop application for managing virtual machines - this is now done through a browser (e.g. Firefox). You can access the management interface over HTTPS (https://<IP ADDRESS>:8333) or HTTP (http://<IP ADDRESS>:8222); the management interface can be accessed locally and also remotely. If you want to access it from the same machine, type https://127.0.0.1:8333 or http://127.0.0.1:8222 into the browser's address bar.

The https interface (https://127.0.0.1:8333) did not load for me, so I used http://127.0.0.1:8222 instead.

You will see the VMware Server login form. Type in root and your root password:

This is how the VMware Server web interface looks. The structure is similar to the old VMware Server 1 desktop application, so the usage of the web interface is pretty straightforward.

 

4 Links


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by hitec (not registered) on Sun, 2011-06-12 18:14.

Hi

The install script failed when testing compile:

============================

Testing patch...
Applying patch...
Preparing new tar file for vsock module
Preparing new tar file for vmmon module
Preparing new tar file for vmnet module
Preparing new tar file for vmci module
Checking that the compiling will succeed...
Trying to compile vmmon module to see if it works
Performing make in /home/admin/VMWare/VMServer/latest/raducotescu-vmware-server-linux-2.6.3x-kernel-bb26dce/vmware-server-distrib/lib/modules/source/vmmon-only
Using standalone build system.
./autoconf/geninclude.c:19:28: fatal error: linux/autoconf.h: No such file or directory
compilation terminated.
.././autoconf/geninclude.c:19:28: fatal error: linux/autoconf.h: No such file or directory
compilation terminated.
Dependencies for driver.c
.././include/driver-config.h:42:5: error: #error "No Module support in this kernel.  Please configure with CONFIG_MODULES"
make[1]: *** [driver.d] Error 1
make: *** [deps] Error 2
There is a problem compiling the vmmon module after it was patched. :(
 =====================================

uname -r produces:

2.6.35.13-92.fc14.i686.PAE

Also

the /usr/src/linux directory does not exist on my system.

Any idea on how to fix?

thanks

Submitted by Zaher (not registered) on Thu, 2011-05-26 09:17.

Hi..

Thanks for the toturial. I've followed all the steps and am still new in Fedora.. I am using F14 Kernel 2.6.35.13 64Bit and I got an error after this command sudo './vmware-server-2.0.x-kernel-2.6.3x-install.sh'

The error says "There is a problem compiling the vmnet module after it was patched. :("

 

Any Help please??!!

Submitted by davrom (not registered) on Tue, 2011-05-10 07:11.

Will keep digging but comes up with extract errors:

 vsock-temp.tar tarball failed to extract in the directory vsock-temp-only. :(

Submitted by davrom (not registered) on Wed, 2011-05-11 02:22.

Found the error. If you run the script a second (subsequent time) without doing the complete tar extract again, it fails. Still fails to compile on vmnet though so have other issues. Looks like VirtualBox is the way to go with VMware Server end of life. Thanks for the posts guys.

Submitted by Anonymous (not registered) on Mon, 2011-04-25 01:57.
Thank you very much for this tutorial!!! This was the first of many tutorials that i've tried that didn't leave me hanging on one of the steps during the install. My Virtual server is up and working perfectly :-)
Submitted by Ramiro (not registered) on Tue, 2011-04-05 23:21.

Excelent tutorial. Thanks a lot. Now my VMware 2 server for test is ready

Submitted by Anonymous (not registered) on Sun, 2011-02-20 02:37.
Thanks a lot!!! It was very useful to get VMware Server 2 installed.
Submitted by SuD (not registered) on Wed, 2011-03-30 11:06.

 After installing everything and created a VM and rebooted, i could not manage vmware anymore.

I found this working workaround (you basically have to rename the libxml provided by vmware):

http://communities.vmware.com/message/1670144#1670144

Submitted by Gustavo Ribeiro (not registered) on Tue, 2011-02-01 23:26.

Hi falko,

Great tutorial, it helped me a lot.

 I would like to ask you if you have been experiencing glitches and bugs on VMware 2 webhost application (the web page)?

 In case yes, did you solve it?

 I`m currently using VMware 2 on Fedora 14, kernel 2.6.35.10-74.fc14.i686.

 Thanks!!

Submitted by watshamm (not registered) on Fri, 2011-01-21 18:17.

Just want to say that i'd almost given up hope in getting VMWare Server 2 on Fedora 14.

Thank you for an excellent post and stopping lobbing my screen out of the window.

Cheers!

Submitted by bjr (not registered) on Tue, 2010-12-28 23:36.

I gave up on VMware Server a long time ago, it's not worth the pain.  KVM is built into Fedora so it works out of the box. KVM is also faster than VMware server. For Windows VMs on KVM you should access them through rdesktop rather than the KVM console because rdesktop is much faster than the KVM console, but this isn't any sort of a limitation because rdesktop is included in Fedora also.

If you really need to run a VMware VM then you should use VMware Player rather than Server. Player is still being maintained by VMware, Server has been left to rot.

Submitted by micha_silver (registered user) on Fri, 2010-12-24 10:37.
An excellent post, as always. Thanks for keeping up to date.
Submitted by Innocent ByStander (not registered) on Thu, 2010-12-23 22:15.
Your linux skills is better than mine. I wonder why you got yourself burdened with the low tech VMWare Server. Have a look at Virtualbox it's much better and also easier to install.