TurnKey Linux Virtual Appliance Library

VMware Tools

 Hi,

Can you install VMware tools on core appliance and if so - how?

Thanks a bunch. 

Alon Swartz's picture

Take a look at this thread

Take a look at this thread.
Hans Harder's picture

For ESX you need to do  

 
 
For ESX you need to do   (sys=ssh prompt,  VM=ESX console):
 
sys : apt-get install build-essential gcc gnupg
sys : apt-get install linux-headers-`uname -r`
VM : Guest -> install vmtools cd
sys : mount /dev/cdrom /mnt
sys : cp /mnt/VM*tar.gz /tmp
sys : cd /tmp; tar -xzf VM*tar.gz; rm VM*tar.gz; cd vm*distrib ; ./vmware-install.pl
        use for all questions the default.
VM:  deinstall vmtools cd
sys : reboot
 
On the console you will see the vmware tools being started.
 
 

QUOTE:  ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol

 Thanks Hans,   I get this

 Thanks Hans,

 

I get this straignt away:

 

E: Couldn't find package build-essential

E: Couldn't find package build-essential
 
I am using the CORE install.

 

Liraz Siri's picture

New VM builds include VMware tools

I'd just like to point out that the new VM build contains a lightweight version of VMWare tools. Check it out. Tip: currently, you'll want to use VMWare's OVF conversion tool since there seems to be an issue with using the VMDK as-is. I'm working on that.
Daniel Serodio's picture

What about Virtualbox tools?

Could they be included in future releases too?

Liraz Siri's picture

Alon looked into that...

I talked to him about this a few days ago. He looked and it and we decided not to add VirtualBox tools because the benefits aren't worth the extra complexity it adds to the appliance.

Using VMware OVF tool

 >>Tip: currently, you'll want to use VMWare's OVF conversion tool since there seems to be an issue with using the VMDK as-is.

I found the following information on the VMware forums after I had issue importing one of the ovf's and receiving the message "An error occurred while parsing the OVF descriptor: Unable to parse xml element 'Envelope'".

The VI Client for ESXi 3.5 only supports the preliminary OVF 0.9 standard. vSphere Client for ESXi 4 for supports OVF 1.0 and is backwards compatible, so packages in the 0.9 format can still be imported.

If you wish to import an OVF 1.0 package to an ESXi 3.5 host, you either need to use the OVF Tool 1.0 or use vSphere 4.0. For OVF Tool, the command-line will look like, e.g.,

ovftool c:\my.ovf vi://myEsxServer/

Full ovftool commands can be found at http://www.vmware.com/support/developer/ovf/ovf10/ovftool_10_userguide.pdf

ovf import error

When importing an OVF image with VMware stand-alone Converter version 4.0.0-146302 I received the error "an error occurred while parsing the OVF descriptor: Unable to parse XML element 'Envelope'". I ended using ovftool.exe to convert the OVF image to .vmx and imported the .vmx. However, I upgraded the stand-alone Converter to version 4.0.1-161434 and was able to import without error.

Mike

ovf import error

I had the same problem importing the OVF image. The stand-alone converter 4.0.1-161434 worked and the appliance imported without any errors. Thanks for the post.

Kahunagirl

Able to upgrade VMWare Tools to v8.1 (WS 7+, SRV 2+)

My requirement for this was to be able to issue a soft shutdown request to any running appliances, when the host was shutting down. I have added the vmrun calls to my host boot and shutdown sequences.  Now, all vmware guests shut down cleanly, without requiring the admin to manually do it on every host server shutdown.

Reference on vmrun: http://www.vmware.com/support/ws55/doc/ws_learning_cli_vmrun.html

 

create /etc/init.d/vmappliances.sh , with start|stop|restart, that issue vmrun commands
# chmod +x /etc/init.d/vmappliances.sh
# update-rc.d vmappliances.sh defaults

Found this excellent resource on upgrading VMWare Tools:

http://chrysaor.info/?page=faq#18

I had to make some slight modifications to get it to work with the VMWare Server image that TKL base is built on, but have it working now. This code is the work of the people at chrysaor.info, I am just pasting in my modified copy.

Assumptions: you have pointed your VM CD to your local (newer) copy of linux.iso

 

ubuntu804vmtools_tkl.sh

------  Begin script  -------

#!/bin/bash

echo "Installing some required stuff..."
apt-get update && apt-get upgrade
apt-get install build-essential libgtk2.0-dev libproc-dev libdumbnet-dev xorg-dev psmisc linux-headers-`uname -r`

cd /tmp

echo "Downloading OpenVM Tools..."
wget http://content.wuala.com/contents/chrysaor.info/public/scriptcontent/ope...

echo "Downloading VMware Tools..."
# wget http://content.wuala.com/contents/chrysaor.info/public/scriptcontent/lin...
# mount -o loop linux.iso /media/cdrom
# cp /media/cdrom/VMware*.tar.gz /tmp
# umount /media/cdrom
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom

echo -n "Unzipping archives..."
# tar xzvf VMware*.gz
# tar xzvf open-vm-tools.tar.gz
tar -xzpf /mnt/cdrom/VMWareTools-*
tar -xzvf open-vm-tools.tar.gz
umount /dev/cdrom

echo "Editing VMware Tools..."
cd open-vm-tools*/
# ./configure && make
./configure --disable-unity --without-icu && make
cd modules/linux/
for i in *; do mv ${i} ${i}-only; tar -cf ${i}.tar ${i}-only; done
cd ../../..
mv -f open-vm-tools*/modules/linux/*.tar vmware-tools-distrib/lib/modules/source/

echo "Installing VMware Tools..."
cd vmware-tools-distrib/
./vmware-install.pl

echo "Finished. You may now reboot."
echo "Please come visit us at http://chrysaor.info ."
 

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)