Personal tools
You are here: Home Fedora Solved Post Install Solutions VMware Player Installation

VMware Player Installation

by scott_glaser last modified Jan 30, 2008 03:46 AM
— filed under:

VMware Player lets you evaluate new or pre-release software contained in virtual machines, without any installation or configuration hassles. You can also share existing virtual machines with colleagues or friends just use VMware Player to run any virtual machine. What is a virtual machine? A virtual machine is a computer defined in software. It's like running a PC on your PC. VMware Player runs any virtual machine created by VMware Workstation, GSX Server or ESX Server. VMware Player also supports Microsoft virtual machines and Symantec LiveState Recovery disk formats. VMware Player will only allow you to run pre-built virtural machines. If you want to create your own virtural machines you will need VMware Server, the how-to for VMware Serer is located in the Server Solutions area on this site.

Requirements

There are very few requirements for VMware Player they are listed below:

  1. kernel-devel We need the kernel source (to build the vmmon modules).
  2. gcc The C compiler is required to complete the installation
  3. gcc-c++ C++ compiler will also be required to complete the installation.
  4. vmware-any-any-update110.tar.gz This is patch is needed for VMware Player to function properly with Fedora Core.

Doing the work

  1. First you need to get the VMware Player software, it is available from http://www.vmware.com/download/player/. You will have to completed a small survey to be able to download the rpm. The current version at the time of this writing is VMware Player 2.0.0.
  2. Next you need to get vmware-any-any-update110.tar.gz, it is available from http://knihovny.cvut.cz/ftp/pub/vmware/.
  3. Now we get down to the work, you will first need to Open a terminal.
  4. You now need verify that your system is fully updated. Do so by performing the following:
    su -c 'yum update'
    At the password prompt enter your root user's password, then press enter.
  5. You will see a message similar to the following (Keep in mind this is just an example, you list may vary):
    Loading "fastestmirror" plugin
    Loading "installonlyn" plugin
    Setting up Update Process
    Setting up repositories
    livna [1/4]
    livna 100% |=========================| 951 B 00:00
    core [2/4]
    core 100% |=========================| 1.1 kB 00:00
    extras [3/4]
    extras 100% |=========================| 1.1 kB 00:00
    updates [4/4]
    updates 100% |=========================| 1.2 kB 00:00
    Determining fastest mirrors
    Reading repository metadata in from local files
    livna : ################################################## 361/361
    Added 15 new packages, deleted 4 old in 0.72 seconds
    primary.xml.gz 100% |=========================| 5.7 kB 00:00
    extras : ################################################## 4137/4137
    Added 54 new packages, deleted 29 old in 17.75 seconds
    primary.xml.gz 100% |=========================| 420 kB 00:01
    updates : ################################################## 1137/1137
    Added 37 new packages, deleted 348 old in 5.40 seconds
    Finished
    Resolving Dependencies
    --> Populating transaction set with selected packages. Please wait.
    ---> Downloading header for kernel to pack into transaction set.
    kernel-2.6.17-1.2157_FC5. 100% |=========================| 170 kB 00:00
    ---> Package kernel.x86_64 0:2.6.17-1.2157_FC5 set to be installed
    ---> Downloading header for selinux-policy-targeted to pack into transaction set.
    selinux-policy-targeted-2 100% |=========================| 23 kB 00:00
    ---> Package selinux-policy-targeted.noarch 0:2.2.47-3.fc5 set to be updated
    --> Running transaction check

    Dependencies Resolved

    =============================================================================
    Package Arch Version Repository Size
    =============================================================================

    installing:
    kernel x86_64 2.6.20-1.2952.fc6 updates 18 M
    Updating:
    selinux-policy-targeted noarch 2.2.47-3.fc5 updates 506 k
    Transaction Summary
    =============================================================================
    install 1 Package(s) Update 1 Package(s) Remove 0 Package(s) Total download size: 18 M Is this ok [y/N]:
  6. At the y/N prompt press y, this will start the process for bringing your system up to date.
  7. If a new kernel was installed you will need to reboot your system to continue with this how-to.
  8. Once the update/reboot is completed we need to check to see what kernel you have installed and if you have the package kernel-devel installed. To do so perform the following:
    uname -r && rpm -qa | grep kernel-devel
    It should produce an output like this if you already have kernel-devel installed:
    2.6.20-1.2952.fc6
    kernel-devel-2.6.20-1.2952.fc6
  9. If no result is provided for kernel-devel, you need to install kernel-devel by performing the following:
    su -c 'yum -y install kernel-devel'
    At the password prompt enter your root user's password then press enter.
  10. You now need to install gcc and gcc-c++. Do so by performing the following:
    su -c 'yum install gcc gcc-c++'
  11. Once you have kernel-devel installed we are ready to get VMware Player installed.
  12. Locate the VMware Player RPM you downloaded earlier, navigate to that directory, and perform the following:
    su -c 'rpm -Uvh /path to rpm/VMware-player-2.0.0-45731.i386.rpm'
    Substitute the statement path to rpm with the actual path to the rpm downloaded, then at the password prompt enter your root user's password then press enter.
  13. After that we need to install the vmware-any-any-update110.tar.gz patch. To do so, first navigate to the directory where the file was downloaded. Then extract the file by performing the following:
    tar xzvf vmware-any-any-update110.tar.gz
  14. Once the file is extracted, move to the extracted directory by performing the following:
    cd vmware-any-any-update110
  15. Next we need to apply the patch, do so by performing the following:
     su -
    At the password prompt enter the password for your root user.
  16. Next you need to navigate to the path of the patch directory, then execute the patch, do so by performing the following:
     ./runme.pl
    This will apply a patch to the files installed by the VMware Player RPM allowing it to function properly with Fedora Core. Answer "y" to the initial questions.
  17. Next it will display a message similar to the following:
    Before running VMware for the first time after update, you need to configure it
    for your running kernel by invoking the following command:
    "/usr/bin/vmware-config.pl". Do you want this script to invoke the command for
    you now? [yes]
    At this prompt type yes then press enter, or press enter for the default answer.
  18. Next it will display the End User License Agreement (read the EULA at your own discretion), press enter then press the space bar till the following message is displayed:
    Do you accept? (yes/no)
    At this prompt type yes then press enter.
  19. Next it will display the following message:
    In which directory do you want to install the mime type icons?
    [/usr/share/icons]
    At this prompt press enter to use the default value or enter your own path. The default value is recommended.
  20. Next it will display the following message:
    What directory contains your desktop menu entry files? These files have a
    .desktop file extension. [/usr/share/applications]
    At this prompt press enter to use the default value or enter your own path. The default value is recommended.
  21. Next it will display the following message:
    In which directory do you want to install the application's icon?
    [/usr/share/pixmaps]
    At this prompt press enter to use the default value or enter your own path. The default value is recommended.
  22. Next it will display the following message:
    Trying to find a suitable vmmon module for your running kernel.

    None of the pre-built vmmon modules for VMware Player is suitable for your
    running kernel. Do you want this program to try to build the vmmon module for
    your system (you need to have a C compiler installed on your system)? [yes]
    At this prompt type yes then press enter.
  23. Next it will display the following message:
    Using compiler "/usr/bin/gcc". Use environment variable CC to override.
    What is the location of the directory of C header files that match your running
    kernel? [/lib/modules/2.6.17-1.2157_FC5/build/include]
    At this prompt press enter to accept the default value (the path listed may vary based on the version of you kernel-devel package installed).
  24. Next it will display the following message:
    Extracting the sources of the vmmon module.
    Building the vmmon module.
    Building for VMware Player 1.0.x or VMware Workstation 5.5.x.
    Using 2.6.x kernel build system.
    make: Entering directory `/tmp/vmware-config2/vmmon-only'
    make -C /lib/modules/2.6.17-1.2157_FC5/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
    make[1]: Entering directory `/usr/src/kernels/2.6.17-1.2157_FC5-i686'
    ...
    make[1]: Leaving directory `/usr/src/kernels/2.6.17-1.2157_FC5-i686'
    cp -f vmmon.ko ./../vmmon.o
    make: Leaving directory `/tmp/vmware-config2/vmmon-only'
    The module loads perfectly in the running kernel.
    Do you want networking for your virtual machines? (yes/no/help) [yes]
  25. At this prompt type yes if you want you guest images to be have access to network deices, then press enter.

  26. Next it will display the following message:
    Configuring a bridged network for vmnet0.
    The following bridged networks have been defined:
    . vmnet0 is bridged to eth0
    All your ethernet interfaces are already bridged.
    Do you want to be able to use NAT networking in your virtual machines? (yes/no)
    [yes]
    At this prompt press enter to accept the default value .
  27. Next it will display the following message:
    Configuring a NAT network for vmnet8.
    Do you want this program to probe for an unused private subnet? (yes/no/help)
    [yes]
    At this prompt press enter to accept the default value .
  28. Next it will display a message similar the following:
    Probing for an unused private subnet (this can take some time)...
    The subnet 172.16.223.0/255.255.255.0 appears to be unused.
    The following NAT networks have been defined:
    . vmnet8 is a NAT network on private subnet 172.16.223.0.
    Do you wish to configure another NAT network? (yes/no) [no]
    At this prompt press enter to accept the default value.
  29. Next it will display a message similar the following:
    Do you want to be able to use host-only networking in your virtual machines?
    [yes]
    At this prompt press enter to accept the default value.
  30. Next it will display a message similar the following:
    Do you want this program to probe for an unused private subnet? (yes/no/help)
    [yes]
    At this prompt press enter to accept the default value.
  31. Next it will display a message similar the following:
    Probing for an unused private subnet (this can take some time)...
    The subnet 172.16.248.0/255.255.255.0 appears to be unused.
    The following host-only networks have been defined:
    . vmnet1 is a host-only network on private subnet 172.16.248.0.
    Do you wish to configure another host-only network? (yes/no) [no]
    At this prompt press enter to accept the default value.
  32. Next it will display a message similar the following:
    The following host-only networks have been defined:
    . vmnet1 is a host-only network on private subnet 172.16.248.0.
    Do you wish to configure another host-only network? (yes/no) [no]
    Extracting the sources of the vmnet module.
    Building the vmnet module.
    Building for VMware Player 1.0.x or VMware Workstation 5.5.x.
    Using 2.6.x kernel build system.
    make: Entering directory `/tmp/vmware-config3/vmnet-only'
    make -C /lib/modules/2.6.17-1.2157_FC5/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
    make[1]: Entering directory `/usr/src/kernels/2.6.17-1.2157_FC5-i686'
    CC [M] /tmp/vmware-config3/vmnet-only/driver.o
    ...

    make[1]: Leaving directory `/usr/src/kernels/2.6.17-1.2157_FC5-i686'
    cp -f vmnet.ko ./../vmnet.o
    make: Leaving directory `/tmp/vmware-config3/vmnet-only'
    The module loads perfectly in the running kernel.
    Would you like to enable the Google searchbar? (yes/no) [no]
    At this prompt press make your own selection, after you type yes or no press enter.
  33. Next it will display a message similar the following:
    Starting VMware services:
    Virtual machine monitor [ OK ]
    Virtual ethernet [ OK ]
    Bridged networking on /dev/vmnet0 [ OK ]
    Host-only networking on /dev/vmnet1 (background) [ OK ]
    Host-only networking on /dev/vmnet8 (background) [ OK ]
    NAT service on /dev/vmnet8 [ OK ]
    The configuration of VMware Player 1.0.1 build-19317 for Linux for this running
    kernel completed successfully.
    You can now run VMware Player by invoking the following command:
    "/usr/bin/vmplayer".
    Enjoy,
    --the VMware team
  34. At the prompt type exit then press enter to surrender root privileges in the terminal window.
  35. Once you get this message your VMware Player installation is complete and should be present in your menu options. For Gnome it will be listed under Applications > System Tools > VMware Player.

Troubleshooting

How to test

  1. Go to the following link http://www.vmware.com/vmtn/appliances/ and get a virtual appliance.
  2. Follow the instructions in the documentation for the appliance to install your virtual appliance. Typically this involves downloading the appliance, extracting it and then placing it in your users directory.  I created a directory in my user's directory called vmware_images, this helps keep them in one location that is easy to find.
  3. There are many open source appliances there to choose from. Once installed fire up VMware Player and check it out.

Common problems and fixes

  1. If you got this message:
    The kernel defined by this directory of header files does
    not have the same address space size as your running kernel.
    You missed the step that installed the vmware-any-any-update104.tar.gz, complete those steps to correct this issue.

More Information

Disclaimer

We test this stuff on our own machines, really we do. But you may run into problems, if you do, come to #fedora on irc.freenode.net

Added Reading

Document Actions
Log in


Forgot your password?
New user?