Friday, May 1, 2009

Installing VMWare Server 2.0 On Gentoo Linux

Last time I installed VMWare server on Gentoo I had to download the installer directly from the VMWare site and do my best to mimic an rc0.d environment. To my suprise I found that there is now and ebuild available for it. So to get started type:

emerge vmware-server

One of the first problems I ran into was an error relating to a kernel configuration. This was fixed by going into the kernel and enabling:

Kernel Hacking -> Enable unused/obsolete exported symbols

I did a rebuild and a reboot, then continued with the emerge. Next issue was a an error relating to Wireless, struct something wireless member not found blah blah blah, basically just go back into the kernel and enable wireless, rebuild, rinse, repeat.

After that kernel change, the package finally installed itself correctly. Now all I had to do was run the post install perl script:

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

Follow the steps, enter your key, accept the EULA, blah blah blah.

After that, I needed to add the root user to the vmware authd group:

gpasswd -a root vmware

Next, make sure xinetd is configured correctly so that the vmware server console can talk to it. Edit the /etc/services file and remove the "only_from = " line, otherwise you'll only be able to access the vmware server from the host configured in that line.

Lastly, restart the xinetd service and make sure vmware is running:

/etc/init.d/xinetd restart

/etc/init.d/vmware status

Now we're golden :)