Upgrade VMware Tools on Linux


Ich nutze sehr gerne VMware um virtuelle Maschinen auf meinem heimischen Rechner oder im Betrieb zu virtualisieren. Gelegentlich kommt es vor, dass man ein Update einspielen muss. Wenn das dann der Fall ist sollte man nach Möglichkeit auch die VMware Tools für die Unterstützung der virtuellen Maschine gleich mit aktualisieren. Bei Windows ist das nicht das große Problem, hingegen bei Linux gibt es unterschiedliche Ansätze wie man bewerkstelligt. Ein Weg dies zu tun ist folgender:

$  mount /dev/cdrom /media/cdrom
$ cp /media/cdrom/VMwareTools-9.X.X-XXXXXX.tar.gz /tmp
$ tar xzvf /tmp/VMwareTools-9.X.X-XXXXXX.tar.gz
$ cd /tmp/vmware-tools-distrib
$ ./vmware-install.pl -d

Den Installer im Terminal muss nun mit Root-Rechten ausgeführen werden und die Tools werden aktualisiert. In meinem Beispiel lasse ich nun alle Fragen mit JA beantworten indem ich den Switch -d nutze.

$ ./vmware-install.pl -d
Creating a new VMware Tools installer database using the tar4 format.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/usr/bin]

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc]

What is the directory that contains the init scripts?
[/etc/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]

The path "/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]

The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]

The installation of VMware Tools 8.3.7 build-341836 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]

Initializing...

WARNING: A module identified as vsock has been found at
/lib/modules/3.13.0-24-generic/kernel/net/vmw_vsock/vsock.ko and at
/lib/modules/3.13.0-24-generic/kernel/net/vmw_vsock/vmw_vsock_vmci_transport.ko.
Leaving both modules in there could potentially cause a race condition when a
device is added.  We reccomend you remove one of them, run 'depmod -a' and then
re-run this configurator.


Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                                      done
   Virtual Printing daemon:                                            done
   Unmounting HGFS shares:                                             done
   Guest filesystem driver:                                            done


update-rc.d: warning:  start runlevel arguments (S) do not match vmware-tools Default-Start values (2 3 5)
 Adding system startup for /etc/init.d/vmware-tools ...
   /etc/rc0.d/S36vmware-tools -> ../init.d/vmware-tools
   /etc/rc6.d/S36vmware-tools -> ../init.d/vmware-tools
   /etc/rcS.d/S38vmware-tools -> ../init.d/vmware-tools
The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmmemctl to override.


WARNING: This program cannot compile any modules for the following reason(s)...

- This program could not find a valid path to the kernel headers of the running
kernel.  Please ensure that the header files for the running kernel are
installed on this sytem.

[ Press Enter key to continue ]


The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.

If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]


The fast network device driver (vmxnet module) is used only for our fast
networking interface. The rest of the software provided by VMware Tools is
designed to work independently of this feature.
If you wish to have the fast network driver enabled, you can install the driver
by running vmware-config-tools.pl again after making sure that gcc, binutils,
make and the kernel sources for your running kernel are installed on your
machine. These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]


The vmblock module enables dragging or copying files from within a host and
dropping or pasting them onto your guest (host to guest drag and drop and file
copy/paste).  The rest of the software provided by VMware Tools is designed to
work independently of this feature (including guest to host drag and drop and
file copy/paste).

If you would like the host to guest drag and drop and file copy/paste features,
you can install the driver by running vmware-config-tools.pl again after making
sure that gcc, binutils, make and the kernel sources for your running kernel
are installed on your machine. These packages are available on your
distribution's installation CD.
[ Press Enter key to continue ]

The module vmci has already been installed on this system by another installer
or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmci to override.

The module vsock has already been installed on this system by another installer
or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vsock to override.

The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmxnet3 to override.

The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=pvscsi to override.

No X install found.

Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-3.13.0-24-generic
Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                                   done
   Guest operating system daemon:                                      done
   Virtual Printing daemon:                                            done

The configuration of VMware Tools 8.3.7 build-341836 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking the following command:
"/usr/bin/vmware-toolbox" during an X server session.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

Enjoy,

--the VMware team

Wenn dies nicht gewünscht ist sollte man den Switch -d entfernen. Obiger Auszug ist auf meiner virtuellen maschine und kann bei Dir abweichen. Nun muss die virtuelle Maschine einmal neu gestartet werden. Fertig. ;)

Related Posts

Kali 2.0 Linux Autologin

Roundcube aktualisieren unter Debian

Neuinstallation von Windows 7 sucht endlich nach Updates

iTunes Backup verschieben

IRSSI Cheat Sheet

Apps via SSH tunneln

Mit Powershell Dateien suchen und kopieren

Keybase Invites zu vergeben

SSH Keys

Meine liebsten TV-Serien - bluecon