Installing VMware on TSL
From TrustixWiki
Contents
Installing VMware on TSL
While TSL is not on the 'approved' list of distros that VMware supports, it is easily installed and runs well.
Install TSL
A fairly plain-jane install of TSL will work quite well for VMware Server. The only TSL requirements (that I ran into at least) are that the xorg-x11-libs and either inetd or xinetd needs to be installed (note that that's the LIB package, not X11 itself). Also, if you need to access the printer port from with in a VM, you'll need to make sure that 'support for user-space parallel port device drivers' (under Device Drivers -> Character Devices) is either built-in to the kernel or available as a module.
VMware Workstation
I'll leave the details of a TSL/VMware-workstation install to someone else, as I don't use TSL as a workstation.
VMware Server (formally GSX server)
VMware Server is a free virtualization product for Windows and Linux servers. It has been developed by VMware to fill the gap between their products, that were commercial, and other free virtualization products, like Xen, FreeVPS, Linux-VServer, and OpenVZ. VMware Server inherits GSX architecture, which is now being discontinued by VMware.
Like GSX, it is split into a server and a console, allowing administration from remote machines. An big feature of VMware Server is that it can run any virtual machine created with any VMware products, like Workstation or ESX. For more information on VMware Server, see VMware Server FAQs.
Installing VMware Server
VMware Server comes as either an RPM or tarball, with some additional packages available in .tar.gz format.
Before you can install it on TSL, there are a few things to do.
First of all, you need these packets:
- make
- gcc
- glibc-devel
- kernel-source (matching your kernel version)
- xorg-x11-libs
- xinetd (if you want to run also MUI)
To install them, you need to enable the Official Trustix Community contrib repository in swup: /etc/swup/swup.conf
Uncomment contrib entry ('location' varies with your TSL version).
site {
class = 10
name = "Community contrib"
location = "http://http.trustix.org/pub/contrib/community-2.2/i586/rdfs/"
regexp = ".*"
}
Save and close swup.conf, then install the packages you need.
swup --install make gcc glibc-devel kernel-source kernel-headers xorg-x11-libs xinetd
Next, you have to prepare the kernel source tree, or VMware will not be able to compile its kernel modules.
cd /usr/src ln -s kernel-source-linux cd linux cp /boot/config- .config make oldconfig
Next, if you are running a 2.4.x kernel, issue this command
make dep
If you are running a 2.6.x kernel, issue instead this command
make modules_prepare
Note for SMP machines: the make command will not recognize correctly your kernel version, therefore putting a wrong id in /usr/src/linux/include/linux/version.h. So, you will need to manually edit the line UTS_VERSION in this file to match your currently running kernel.
Now, install VMware server from either rpm or tar packages, but don't configure it.
Installing from RPM:
rpm -Uvh VMware-server-e.x.p-.i386.rpm
Installing from .tar.gz:
tar xfz VMware-server-e.x.p-.tar.gz cd vmware-server-distrib ./vmware-install.pl
When asked if you want to run configuration, say No.
If you are running TSL 2.2, before you can configure VMware Server you have to disable the compilation of VMware kernel modules with the gcc stack protection feature. This is because the TSL 2.2 kernel is compiled without it, but gcc is configured to use it, so VMware modules wouldn't successfully load in your kernel if compiled with this feature (I have still to understand why TSL developers did this mess). Unfortunately, the only way to do this is edit the vmware-config.pl script, but it's a simple thing to do.
In TSL 3.0, there is no need to apply this fix.
To edit the script:
vi /usr/bin/vmware-config.pl
Find this line:
shell_string('CC=' . $gHelper{'gcc'}) . ' '
and replace it with this:
shell_string('CC=' . $gHelper{'gcc'} . ' -fno-stack-protector') . ' '
Save and close (force writing, because script is read-only).
For version 1.0.1 | 8/14/06 | Build 29996 , this lines are: 3150, 6796 and 6810.
Now, you can safely run VMware configuration.
/usr/bin/vmware-config.pl
Note: If you get errors with the make section (error like Makefile:266: /usr/src/kernel-headers-
What is the location of the directory of C header files that match your running kernel? [/lib/modules//build/include] /lib/modules/ /build/linux/include/
Starting automatically the required system services
- chkconfig xinetd on
- chkconfig httpd.vmware on (if you installed MUI)
- chkconfig vmware on
Installing VMware Server MUI (Web interface)
There is a web interface to configure and monitor VMware Server.
Before you can install the MUI, you have to create symlinks to some system libraries because the MUI requires specific versions that are older than those installed on a TSL host.
To do this, issue these commands:
cd /usr/lib ln -s libdb1.so.2 libdb.so.3 ln -s libssl.so.0.9.7 libssl.so.4 ln -s libcrypto.so.0.9.7 libcrypto.so.4
Now, install the MUI.
tar xfz VMware-mui-e.x.p-.tar.gz cd vmware-mui-distrib ./vmware-install.pl
Installing VMware Server console (remote interface)
On another machine (Windows or Linux workstation), install the VMware-server-
Now, launch the VMware console app, point it at the server, supply a username/password on the server you are connecting to, and you should be able to start setting up VMs.