The Perfect Desktop - Part 1: Fedora Core 6 - Page 10

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Tue, 2007-02-20 18:18. ::

19 VMware Server

With VMware Server you can let your old Windows desktop (that you previously converted into a VMware virtual machine with VMware Converter, as described in this tutorial: http://www.howtoforge.com/vmware_converter_windows_linux) run under your Fedora desktop. This can be useful if you depend on some applications that exist for Windows only, or if you want to switch to Linux slowly.

To download VMware Server, go to http://www.vmware.com/download/server/ and click on Download Now:

Accept the license agreement by clicking on Yes:

Then download the VMware Server for Linux .tar.gz file (not the rpm file!), e.g. to /home/falko/Desktop:

Then open a terminal and become root:

su

Then do this:

cd /home/falko/Desktop
tar xvfz VMware-server-*.tar.gz

It is possible that you get this error when you run the VMware installer later on:

make[1]: Entering directory `/usr/src/kernels/2.6.19-1.2911.fc6-i686'
  CC [M]  /tmp/vmware-config1/vmnet-only/driver.o
  CC [M]  /tmp/vmware-config1/vmnet-only/hub.o
  CC [M]  /tmp/vmware-config1/vmnet-only/userif.o
  CC [M]  /tmp/vmware-config1/vmnet-only/netif.o
  CC [M]  /tmp/vmware-config1/vmnet-only/bridge.o
  CC [M]  /tmp/vmware-config1/vmnet-only/procfs.o
/tmp/vmware-config1/vmnet-only/procfs.c:33:26: error: linux/config.h: No such file or directory

To avoid that, we simply create that config.h file now:

touch /usr/src/kernels/`uname -r`-i686/include/linux/config.h

Before we run the VMware installer, we should check our kernel version now by running:

uname -r

For me, the output looks like this:

[root@localhost Desktop]# uname -r
2.6.19-1.2911.fc6

Now we start the VMware installer:

cd vmware-server-distrib
./vmware-install.pl

The installer will ask you a lot of questions. You can always accept the default values simply by hitting <ENTER>. If you don't get any errors, go to chapter 19.1 Finishing The VMware Server Installation.

If your kernel is 2.6.19, you will most likely get an error like this:

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmnet-only'
make -C /lib/modules/2.6.19-1.2911.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.19-1.2911.fc6-i686'
  CC [M]  /tmp/vmware-config0/vmnet-only/driver.o
  CC [M]  /tmp/vmware-config0/vmnet-only/hub.o
  CC [M]  /tmp/vmware-config0/vmnet-only/userif.o
/tmp/vmware-config0/vmnet-only/userif.c: In function 'VNetCopyDatagramToUser':
/tmp/vmware-config0/vmnet-only/userif.c:629: error: 'CHECKSUM_HW' undeclared (first use in this function)
/tmp/vmware-config0/vmnet-only/userif.c:629: error: (Each undeclared identifier is reported only once
/tmp/vmware-config0/vmnet-only/userif.c:629: error: for each function it appears in.)
make[2]: *** [/tmp/vmware-config0/vmnet-only/userif.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmnet-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.19-1.2911.fc6-i686'
make: *** [vmnet.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmnet-only'
Unable to build the vmnet module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

In kernel 2.6.19, CHECKSUM_HW has been replaced by CHECKSUM_PARTIAL. So if you get that error, do this:

cd /usr/lib/vmware/modules/source/
tar -xvvf vmnet.tar
cd vmnet-only/
gedit bridge.c

In the text editor that comes up replace CHECKSUM_HW with CHECKSUM_PARTIAL, then save the file:

Do the same for the file userif.c:

gedit userif.c

Then run

cd ..
tar -cvvf vmnet.tar vmnet-only/
/usr/bin/vmware-config.pl

This will take you through the VMware configuration again. Again, accept all default values.

If you get this error:

This program previously created the file /dev/vmmon, and was about to remove
it. Somebody else apparently did it already.

mknod: `/dev/vmmon': File exists
Unable to create the character device /dev/vmmon with major number 10 and minor
number 165.

Execution aborted.

simply run

/usr/bin/vmware-config.pl

again. This time the error will be gone, and the VMware Server installation should finally succeed.

 

19.1 Finishing The VMware Server Installation

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:

Go to http://www.vmware.com/download/server/ again and click on the Register button:

Fill in your personal details. Afterwards you will get a page with serial numbers for VMware Server. Copy one of them and paste it into the terminal where you were asked for the serial number.

After the successful installation, you can delete the VMware Server download file and the installation directory:

cd /home/falko/Desktop
rm -fr vmware-server-distrib
rm -f VMware-server-*.tar.gz

You will now find VMware Server under Applications > System Tools:

When you start it, select Local host:

Afterwards, you can create virtual machines (or import your virtual Windows machine that you created with VMware Converter):

 

20 Inventory (IV)

We have now all wanted applications installed:

Graphics:
[x] The GIMP
[x] F-Spot
[x] Picasa

Internet:
[x] Firefox
[x] Opera
[x] Flash Player
[x] gFTP
[x] Thunderbird
[x] Evolution
[x] aMule
[x] Bittorrent
[x] Azureus
[x] Gaim
[x] Skype
[x] Google Earth
[x] Xchat IRC

Office:
[x] OpenOffice Writer
[x] OpenOffice Calc
[x] Adobe Reader
[x] GnuCash
[x] Scribus

Sound & Video:
[x] Amarok
[x] Audacity
[x] Banshee
[x] MPlayer
[x] Rhythmbox Music Player
[x] gtkPod
[x] XMMS
[x] dvd::rip
[x] Kino
[x] Sound Juicer CD Extractor
[x] VLC Media Player
[x] Real Player
[x] Totem
[x] Xine
[x] GnomeBaker
[x] K3B
[x] Multimedia-Codecs

Programming:
[x] Nvu
[x] Bluefish
[x] Quanta Plus

Other:
[x] VMware Server
[x] TrueType fonts
[x] Java

 

21 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.