VMware Workstation

From Gentoo Linux Wiki

Jump to: navigation, search
Please format this article according to the Style Guidelines and Wikification suggestions, then remove this notice {{Wikify}} from the article.

Reason(s):

  • headings
  • wikification
  • syntax

Virtualization TOC


Virtual pc.png

VMware can be very useful if you need to use windows software, or if you are just starting using Linux and are not able to do what you were used to. Note that performance will be greatly reduced.

Note: In order to make sure VMware runs correctly, module unloading must be configured in the kernel

To get VMware workstation 5.0 or 5.5 running do the following:

emerge vmware-workstation

Because vmware is commercial software, the vmware-workstation packages include fetch restrictions, which mean that you will need to download the appropriate file from the vmware website. Because gentoo packages are not always up to date with the latest version of the vmware downloads, you may need to use the firebug plugin for firefox to modify the javascript-based download-protection script after clicking through to a download link (simply replace the filename for the offered version with the filename requested by portage everywhere you see it appear). Move the downloaded file to /usr/portage/distfiles and re-run emerge vmware-workstation

warning, in addition to the fetch restriction, you are not allowed to install VMware on a system runing a KVM-enable (kernel virtual machines) kernel ! the merge will fail:

You cannot install on a system with KVM enabled.
* VMware installation seems to have rolled back

After emerging, run

/opt/vmware/workstation/bin/vmware-config.pl

If it prints out an error about VMware having not yet been started and quits, you can use the undocumented option -skipstopstart:

vmware-config.pl -skipstopstart

or (in newer versions):

vmware-config.pl -skip-stop-start

It will ask you several questions and configures the virtual network. Choose whichever method you prefer or the one that best fits your setup. This network can be used to access the internet, as well as allow very easy communication between the host and guest OS. Please note that you have the NIC which VMware is bridged to is connected to a real physical network (I searched for hours why my network was not running).

After compiling the kernel modules vmmon and vmnet, they will be installed and the virtual ethernet is set up. Please note that you are required to compile vmmon. If this somehow does not work, rebuild your kernel and reboot.

cd /usr/src/linux" make && make modules_install

Now you should be able to run the command 'vmware' and the gui should start up.

If you get the error "vmware is installed, but it has not been (correctly) configured for this system. ...", rerun vmware-config.pl. Also, remember to re-run emerge vmware-modules every time you update/change your kernel. That should help with getting rid of the above message. If it completed successfully and still gives this error, fix the bug with the following command:

/etc/vmware/not_configured

When nothing fails you should add /etc/init.d/vmware to your desired runlevel. This script will install the kernel modules and the virtual ethernet for future reboots.

/etc/init.d/vmware start rc-update add vmware default

Also do not forget to install VMware tools on the guest operating system. The VMware help will tell you how to do so for your guest OS.

To be able to run vmware you must be member of the group vmware:

gpasswd -a <username> vmware

Run vmware as a NORMAL user inside a X environment

vmware &
Note: Make SURE this user is a member of the vmware group.... otherwise you will get very strange messages indeed...

If the VMware exits immediately you could try export the command:

export VMWARE_USE_SHIPPED_GTK='yes'
Note: the GTK libraries and other dependencies are statically distributed with vmware, which means most of your local libraries will not be used.

As of version 5.5.1 there seems to have changed the way VMware needs to be setup to be able to run as user. In addition to the above, do this:

chown -Rv root:vmware /opt/vmware chmod u+s /opt/vmware/workstation/lib/bin/vmware-vmx

You also have to suid this file:

chmod u+s /opt/vmware/workstation/lib/bin-debug/vmware-vmx
Note: You will probably have to suid both files (and chgrp) all files after emerging vmware.


Note: If you experience slow network connectivity from the host to the guest or vice versa this could be caused by TCP Segment OffLoading. One way to fix this would be to emerge ethtool and disabling TCP Segment OffLoading.
emerge -av ethtool ethtool -K eth0 tso off

Afterwards restart the transfer.

If your host is Windows look under advanced network properties of the card, its called 'large send' and set to none.

For more information about this issue see: http://www.vmware.com/community/message.jspa?messageID=362002

If you need access to a physical disk from a user other than root, add a udev rule to give write access to the "disk" group.

File: 99-local.rule
KERNEL=="sda*" MODE="660"
Personal tools