Koozali.org formerly Contribs.org

VMWare Server on SME Server 7

VMWare Server on SME Server 7
« on: February 23, 2006, 12:26:21 PM »
I have sucessfully installed Vmware Server on a Centros 4.2 system.
Centros was installed from the Centros 4.2 Server CD, without X.

Has anyone tried installing Vmware Server on SME V7pre3 ? Any idea whether this will work and what extra packages I will need to install first. I have not had any experience with Centros as I mostly use Debian / Ubuntu, so this is all new to me.

I am willing to give it a go myself, but would like to get some feedback first.

bluejay

VMWare Server on SME Server 7
« Reply #1 on: February 25, 2006, 10:05:58 AM »
Download the vmware rpm, and do something like this:

yum --enablerepo=base --enablerepo=updates localinstall vmware??.rpm

(doing so enables the CentOS repositories temporarily to grab any dependancies for the rpm)

I'd be curious to know what it requires - I haven't tried it yet.

(moving this topic to SME7 Contribs - vmware is not a feature od SME7)

poe

VMWare Server on SME Server 7
« Reply #2 on: March 02, 2006, 09:21:41 AM »
I've just done the yum and installed the rpm.
So far so good.
Now I get a message saying:
"None of the pre-built vmmon modules for VMware GSX Server 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]

Setup is unable to find the "gcc" program on your machine.  Please make sure it is installed.  Do you want to specify the location of this program by hand?"

How do I install gcc?

/Preben

poe

VMWare Server on SME Server 7
« Reply #3 on: March 02, 2006, 09:52:10 AM »
I managed to install gcc using yum.
Next message is:
"Your kernel was built with "gcc" version "3.4.5", while you are trying to use "/usr/bin/gcc" version "3.4.4". This configuration is not recommended and VMware GSX Server may crash if you'll continue. Please try to use exactly same compiler as one used for building your kernel. Do you want to go with compiler "/usr/bin/gcc" version "3.4.4" anyway? [no]"

How do i Upgrade?

If I continue, I get the following message:
"What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]"

What is the correct path?

Regards

/Preben

VMWare Server on SME Server 7
« Reply #4 on: March 02, 2006, 08:42:45 PM »
[edit] CentOS built the kernel with gcc 3.4.5 (because redhat did).  But they only released gcc 3.4.4 - Weird, see this bug report - http://bugs.centos.org/view.php?id=1172 - but just say 'yes' to using gcc 3.4.4 and you should be fine.

As fot the kernel source, you'll need to install this rpm:
http://mirror.contribs.org/smeserver/releases/7/builds/rpms/RPMS/noarch/kernel-sourcecode-2.6.9-22.0.2.EL.noarch.rpm

...and the path is:
/usr/src/linux-2.6.9-22.0.2.EL/include

When you're done remove gcc and whatever dependancies it has - you don't want that on your server.

I'm expecting you to write a howto covering all your install steps now ;-)

poe

VMWare Server on SME Server 7
« Reply #5 on: March 03, 2006, 09:09:33 AM »
Moving forward   - slowly

Tried to install the rpm -> got a lot of missing deps.
Installed with --nodeps -> found the files

Entered the path -> no asm/net/linux dir
Renamed asm-i386 to asm -> Bingo!

New problem:
The path "/usr/src/linux-2.6.9-22.0.2.EL/include" is a kernel header file
directory, but it does not contain the file "linux/version.h" as expected.  This can happen if the kernel has never been built, or if you have invoked the "make mrproper" command in your kernel directory.  In any case, you may want to rebuild your kernel.

Sounds as if I have to build a kernel - never done it dont know how.
Do I have to find out how, or is there a shortcut ??

TIA

/Preben

VMWare Server on SME Server 7
« Reply #6 on: March 04, 2006, 08:27:39 AM »
Quote from: "poe"

Tried to install the rpm -> got a lot of missing deps.
Installed with --nodeps -> found the files


That's a no-no - dependancies are there for a reason.

Quote from: "poe"

The path "/usr/src/linux-2.6.9-22.0.2.EL/include" is a kernel header file
directory, but it does not contain the file "linux/version.h" as expected.  This can happen if the kernel has never been built, or if you have invoked the "make mrproper" command in your kernel directory.  In any case, you may want to rebuild your kernel.


Sorry, looks like you need to install kernel-devel rather than kernel-sourcecode (or kernel-smp-devel if you are running the smp kernel), and the path is not what I said before, but instead something like this:
/usr/src/kernels/2.6.9-22.0.2.EL-i686/include

vladimirp

VMWare Server on SME Server 7
« Reply #7 on: March 04, 2006, 03:00:14 PM »
Just download all rpms, and run script.

### begin
#!/bin/sh

rpm -i glibc-kernheaders-2.4-9.1.98.EL.i386.rpm
rpm -i glibc-headers-2.3.4-2.13.i386.rpm
rpm -i glibc-devel-2.3.4-2.13.i386.rpm
rpm -i cpp-3.4.4-2.i386.rpm
rpm -i gcc-3.4.4-2.i386.rpm

rpm -i xinetd-2.3.13-4.4E.1.i386.rpm

rpm -i --nodeps xorg-x11-libs-6.8.2-1.EL.13.20.i386.rpm
rpm -i VMware-server-e.x.p-20925.i386.rpm

vmware-config.pl

rpm -i smeserver-vmware-authd-0.1-1.noarch.rpm

/sbin/e-smith/db configuration setprop vmware status enabled
/sbin/e-smith/signal-event console-save
/sbin/e-smith/signal-event post-upgrade

ln -s /etc/rc.d/init.d/xinetd /etc/rc7.d/S56xinetd
#ln -s /etc/rc.d/init.d/vmware /etc/rc7.d/S95vmware

#rpm -e glibc-kernheaders-2.4-9.1.98.EL
#rpm -e glibc-headers-2.3.4-2.13
#rpm -e glibc-devel-2.3.4-2.13
#rpm -e cpp-3.4.4-2.i386
#rpm -e gcc-3.4.4-2.i386

reboot
### end

vladimir

VMWare Server on SME Server 7
« Reply #8 on: March 04, 2006, 10:16:45 PM »
Thanks Vladimir..

Your script works perfectly...

MJ
......

poe

VMWare Server on SME Server 7
« Reply #9 on: March 06, 2006, 12:31:31 PM »
If you have found all files, could you then please modify the script to install from url or add wget's to fetch the files.

TIA

Preben


poe

VMWare Server on SME Server 7
« Reply #11 on: March 07, 2006, 10:07:18 AM »
After cleaning up my previous attempts the install went flawless.

But as i tried to access the server using VMware Virtual Machine Console i got some weird errors.
A look in the log files revealed the following:

Mar  7 09:36:11 sme7-mdf vmware-authd(pam_unix)[4261]: check pass; user unknown
Mar  7 09:36:11 sme7-mdf vmware-authd(pam_unix)[4261]: authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=

I cant recall being asked for any user/pass.
I tried logging in as admin and root without any luck.

How am i supposed to manage the server

TIA

/Preben

VMWare Server on SME Server 7
« Reply #12 on: March 07, 2006, 02:38:20 PM »
I entered for User:  "admin" along with the password.

I am guessing you are on the lan, so that firewall issues are not a problem.  If not, you need port 902 open, assuming you went with the default recommendation.

I am not sure if you would need to activate the service for public access via port 902 on the server.  That may be necessary for outside of lan connections using the remote console.  The SME experts may be able to provide an assist with that.

MJ
......

poe

VMWare Server on SME Server 7
« Reply #13 on: March 07, 2006, 02:45:26 PM »
Installed Server Console from the VMware Server Download page (had an older one installed).

Now I'm up and running!

/Preben

VMWare Server on SME Server 7
« Reply #14 on: March 07, 2006, 04:00:08 PM »
Quote from: "gregswallow"

As fot the kernel source, you'll need to install this rpm:
http://mirror.contribs.org/smeserver/releases/7/builds/rpms/RPMS/noarch/kernel-sourcecode-2.6.9-22.0.2.EL.noarch.rpm

...and the path is:
/usr/src/linux-2.6.9-22.0.2.EL/include


No, that's not true. You don't need to install kernel source. You only need to install the kernel header files and .config file, and they are in the kernel-devel RPM. The path will be found automatically by the vmware build script (/lib/modules/2.6.9-22.0.2.EL/build).