VM Tools Install (Ubuntu): Difference between revisions
Jump to navigation
Jump to search
(Initial creation - content from Installation_(Ubuntu) page) |
(Added "Ubuntu 12.04 LTS") |
||
Line 61: | Line 61: | ||
#* <code> apt-get install vmware-tools </code> | #* <code> apt-get install vmware-tools </code> | ||
== Ubuntu 12.04 LTS == | |||
Same as for 10.04... | |||
# Install the build library files... | |||
#* <code> apt-get install build-essential </code> | |||
# Select "Install VM Tools" from the VI Client | |||
# Mount the VM Tools CD-ROM | |||
#* <code> mount /dev/cdrom /media/cdrom/ </code> | |||
#* If unable to mount, see [[Troubleshooting_(Ubuntu)#Unable_to_Mount_CD-ROM|Unable to Mount CD-ROM]], ''mounting read-only'' is expected | |||
# Copy to tmp directory (version number below will vary) | |||
#* <code> cp /media/cdrom/VMwareTools-9.0.0-782409.tar.gz /tmp/ </code> | |||
# Unmount the CD-ROM, and move into tmp directory | |||
#* <code> umount /media/cdrom/ </code> | |||
#* <code> cd /tmp/ </code> | |||
# Uncompress and then move into the <code> vmware-tools-distrib </code> directory | |||
#* <code> tar xzvf VMware*.gz </code> | |||
#* <code> cd vmware-tools-distrib </code>/ | |||
# Run the install script, and accept defaults | |||
#* <code> ./vmware-install.pl </code> | |||
# Restart (not actually required, but I tend to on a new install to be sure that VMtools start properly following a bounce) | |||
#* <code> shutdown -r now </code> | |||
[[Category:Ubuntu]] | [[Category:Ubuntu]] |
Revision as of 08:52, 19 August 2013
The pre-built modules that come with the VMTools installer aren't compatible, therefore the script needs to be able to compile them, however the required library files aren't available by default, so the procedure is a little laboured.
Ubuntu 8.04 LTS
- Install the build library files...
apt-get install build-essential
apt-get install linux-headers-2.6.24-26-server
- Use
uname -r
to get the right headers version number
- Use
- Select "Install VM Tools" from the VI Client
- Mount the VM Tools CD-ROM
mount /media/cdrom0/
- Copy to home directory
cp /media/cdrom/VMwareTools-4.0.0-219382.tar.gz /home/user/
- Uncompress and then move into the
vmware-tools-distrib
directorytar xf VMwareTools-4.0.0-219382.tar.gz
cd vmware-tools-distrib
- Run the install script
./vmware-install.pl
- Restart
shutdown -r now
Ubuntu 10.04 LTS
VM Tools can be installed via two methods, neither of which is ideal...
- Using the normal VM Tools CD - requires additional library install and sometimes mounting the CDROM doesn't work too well.
- Using APT package manager - doesn't work quite as well as it could (upgrading VM Tools isn't supported), and support for this method is rumoured to be dropped in future releases
VM Tools CD
- Install the build library files...
apt-get install build-essential
- Select "Install VM Tools" from the VI Client
- Mount the VM Tools CD-ROM
mount /dev/cdrom /media/cdrom/
- If unable to mount, see Unable to Mount CD-ROM, mounting read-only is expected
- Copy to tmp directory (version number below will vary)
cp /media/cdrom/VMwareTools-4.0.0-236512.tar.gz /tmp/
- Unmount the CD-ROM, and move into tmp directory
umount /media/cdrom/
cd /tmp/
- Uncompress and then move into the
vmware-tools-distrib
directorytar xzvf VMware*.gz
cd vmware-tools-distrib
/
- Run the install script, and accept defaults
./vmware-install.pl
- Restart (not actually required, but I tend to on a new install to be sure that VMtools start properly following a bounce)
shutdown -r now
APT Package Manager
- Install VM Tools using apt package manager
- Open VMware Packaging Public GPG Key at http://packages.vmware.com/tools/VMWARE-PACKAGING-GPG-KEY.pub
- On the server open a new file called
VMWARE-PACKAGING-GPG-KEY.pub
with the/tmp
directory - Copy and paste the contents of the webpage into the file and save
- Import the key using the following command
apt-key add /tmp/VMWARE-PACKAGING-GPG-KEY.pub
- You should get
OK
returned
- If you need to add a proxy see http://communities.vmware.com/servlet/JiveServlet/download/1554533-39836/Vmware%20Tools%20Guide%20Linux%20osp_install_guide.pdf
- Open a new vi in VI called
/etc/apt/sources.list.d/vmware-tools.list
- Add the following line
deb http://packages.vmware.com/tools/esx/<esx-version>/ubuntu lucid main restricted
where <esx-version> is the appropriate esx version found at http://packages.vmware.com/tools/esx/index.html
- Update the repository cache
apt-get update
- Install VM Tools
apt-get install vmware-tools
Ubuntu 12.04 LTS
Same as for 10.04...
- Install the build library files...
apt-get install build-essential
- Select "Install VM Tools" from the VI Client
- Mount the VM Tools CD-ROM
mount /dev/cdrom /media/cdrom/
- If unable to mount, see Unable to Mount CD-ROM, mounting read-only is expected
- Copy to tmp directory (version number below will vary)
cp /media/cdrom/VMwareTools-9.0.0-782409.tar.gz /tmp/
- Unmount the CD-ROM, and move into tmp directory
umount /media/cdrom/
cd /tmp/
- Uncompress and then move into the
vmware-tools-distrib
directorytar xzvf VMware*.gz
cd vmware-tools-distrib
/
- Run the install script, and accept defaults
./vmware-install.pl
- Restart (not actually required, but I tend to on a new install to be sure that VMtools start properly following a bounce)
shutdown -r now