martes, 4 de octubre de 2011

ClearOS Install Vmware Tools

Source: http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,40/func,view/id,13458/


VMWare Tools Install 1 Year, 3 Months ago
Hi all -

For those who have been left wondering - here is instructions for installing VMWare Tools.
*Stolen From: VMWare Communities


Code:
yum upgrade
yum install gcc kernel-devel
uname -r
rpm -q kernel-devel
(make sure the versions of the above two match exactly)

4: Now, using the vSphere Client, do the "Guest -> Install Vmware tools" fun stuff...
5: Returning back to the SSH / vSphere console session:
Code:

mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom/
cd /mnt/cdrom/
cp -rp VM*.tar.gz /tmp
cd /tmp
tar -zxvf VMwareTools-xxxxxxxx(your.ver).tar.gz,

There is a bug with VMXNET module under CentOS - patch is as follows:
Code:

cd /tmp/vmware-tools-distrib/lib/modules/source/
mkdir 1
cp vmxnet.tar 1
cd 1
tar -xvf vmxnet.tar
nano -w vmxnet-only/compat_netdevice.h

Comment out the line as per: bugs.centos.org/view.php?id=3977
(add a /* before, and a */ after:)
Before:
Code:
struct napi_struct {
int dummy;
};

So it will look like this:
Code:

/*
struct napi_struct {
int dummy;
};
*/


Now, hit CTRL-O to save, and CTRL-X to exit nano
copy patched module back to sources dir
Code:
rm vmxnet.tar
tar -cvf vmxnet.tar vmxnet-only/
mv vmxnet.tar

and complete the install of vmware tools
Code:

cd /tmp/vmware-tools-distrib/
./vmware-install.pl --default

And that will build the tools - with all the default choices...

No hay comentarios:

Publicar un comentario