VMware Cloud Community
__Tango
Contributor
Contributor

How to deploy vmware-tools on a virtual appliance with custom kernel

Hi folks.

I've been looking around the forums and the net, but haven't found anything related to this.

We have a virtual appliance that's built off of a Linux RHEL4 base. We ship the latest VMware-Tools rpm as part of our updates to our customers.

Up until recently, we've used stock kernels, so shipping the stock VMware-Tools rpm worked fine.

Unfortunately, we've run into a couple of issues with the stock kernel that have required us to build a custom kernel (basically, the stock kernel + 1 patch). This has made it so that none of the standard VMware-Tools kernel modules load anymore. When running "vmware-config-tools.pl", it complains that none of the prebuilt modules work and tries to compile a new one.

Here's the catch....We don't (and won't) ship a compiler with our virtual appliance, so compilation at this point won't work.

Mind you, the compilation would work fine if there was a compiler, and as such, I would like to build the modules in house and then ship them out to the customer as part of our update mechanism.

Ideally, i'd like to create a custom VMware-Tools rpm, so that when we move back to a stock kernel (when the next rev of the stock kernel contains the fixes we need), we can just update the VMware-Tools rpm and keep going. Unfortunately, i haven't found a spec file or any other way to create a custom VMware-Tools rpm.

What do you suggest?

Thanks.

...alex...

0 Kudos
5 Replies
Texiwill
Leadership
Leadership

Hello,

Instead of using the .rpm approach use the .tgz approach. This is similar to your previous question.

However, you really may just want to create your own installer and name it something else. I would not confuse people with naming it VMwareTools as it really would not be VMware's but your own.

You can also install the VmwareTools RPM, then install a custom RPM that contains your modules and puts them and names them into the proper location for vmware-config-tools.pl to find them.

Best regards,

Edward

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
chicagom
Contributor
Contributor

sorry I got a java error

Message was edited by:

chicagom

0 Kudos
chicagom
Contributor
Contributor

sorry I got a java error

Message was edited by:

chicagom

0 Kudos
chicagom
Contributor
Contributor

This is what i want to do. Create 1 server to compile every drive , program I need. So that I don't need to install gcc & kernel sources on our production servers.

Does anyone have a detail how to?

My Linux knowledge isn't that good.

Best Regards,

Geert

0 Kudos
Texiwill
Leadership
Leadership

Hello,

SUre thing.... INstall a system and then go to http://www.astroarch.com/virtual/patches.html for assistance on patches you will need for 2.6.20 kernels (if you are using 2.6.20 kernels).

You will at the very least you need to install gcc and kernel-devel as well as your basic OS.

Then install the tools. recompile them and use the results in your own installations.

Best regards,

Edward

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos