VMware Tools pour Debian 6
01/05/11 22:21 Classé dans: Techniques
MAJ 09/01/2011 Afin d'améliorer la gestion des VMware Tools pour les VM Debian, il faut installer les paquets de compilation suivants :
Ensuite, appliquer la procédure suivante :
• Sélectionner le menu Machine virtuelle / Installer VMware Tools
• Monter le cdrom virtuel mount /media/cdrom
• Copier le fichier VMTools dans un répertoire de travail cp /media/cdrom/VMwareTools-8.4.2-261058.tar.gz /usr/local/src
• Se positionner dans le répertoire cd /usr/local/src
• Décompresser le fichier VMTools tar xzf /usr/local/src/VMwareTools-8.4.2-261058.tar.gz
• Se positionner dans le répertoire cd /usr/local/src/vmware-tools-distrib/
• Lancer le script ./vmware-install.pl
• Répondre par défaut aux questions (touche entrée)
• Les VMTools doivent s’installer et le cdrom virtuel se démonte automatiquement.
Voici le résultat complet
apt-get install autoconf gcc-4.3* make psmisc linux-headers-$(uname -r)
Ensuite, appliquer la procédure suivante :
• Sélectionner le menu Machine virtuelle / Installer VMware Tools
• Monter le cdrom virtuel mount /media/cdrom
• Copier le fichier VMTools dans un répertoire de travail cp /media/cdrom/VMwareTools-8.4.2-261058.tar.gz /usr/local/src
• Se positionner dans le répertoire cd /usr/local/src
• Décompresser le fichier VMTools tar xzf /usr/local/src/VMwareTools-8.4.2-261058.tar.gz
• Se positionner dans le répertoire cd /usr/local/src/vmware-tools-distrib/
• Lancer le script ./vmware-install.pl
• Répondre par défaut aux questions (touche entrée)
• Les VMTools doivent s’installer et le cdrom virtuel se démonte automatiquement.
Voici le résultat complet
root@debian6:/usr/local/src/vmware-tools-distrib# ./vmware-install.pl
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]
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.4.5 build-332101 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...
Making sure services for VMware Tools are stopped.
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
Before you can compile modules, you need to have the following installed...
make
gcc
kernel headers of the running kernel
Searching for GCC...
Detected GCC binary at "/usr/bin/gcc-4.3".
The path "/usr/bin/gcc-4.3" appears to be a valid path to the gcc binary.
Would you like to change it? [no]
Searching for a valid kernel header path...
Detected the kernel headers of the running kernel at
"/lib/modules/2.6.32-5-686/build/include".
The path "/lib/modules/2.6.32-5-686/build/include" appears to be a valid path
to the kernel headers of the running kernel.
Would you like to change it? [no]
Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-root/modules/vmmemctl-only »
make -C /lib/modules/2.6.32-5-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.32-5-686 »
CC [M] /tmp/vmware-root/modules/vmmemctl-only/backdoorGcc32.o
CC [M] /tmp/vmware-root/modules/vmmemctl-only/os.o
CC [M] /tmp/vmware-root/modules/vmmemctl-only/vmballoon.o
LD [M] /tmp/vmware-root/modules/vmmemctl-only/vmmemctl.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/vmmemctl-only/vmmemctl.mod.o
LD [M] /tmp/vmware-root/modules/vmmemctl-only/vmmemctl.ko
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.32-5-686 »
make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: entrant dans le répertoire « /tmp/vmware-root/modules/vmmemctl-only »
make[1]: « postbuild » est à jour.
make[1]: quittant le répertoire « /tmp/vmware-root/modules/vmmemctl-only »
cp -f vmmemctl.ko ./../vmmemctl.o
make: quittant le répertoire « /tmp/vmware-root/modules/vmmemctl-only »
Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-root/modules/vmhgfs-only »
make -C /lib/modules/2.6.32-5-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.32-5-686 »
CC [M] /tmp/vmware-root/modules/vmhgfs-only/backdoor.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/backdoorGcc32.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/bdhandler.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/cpName.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/cpNameLinux.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/cpNameLite.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/dentry.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/dir.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/file.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/filesystem.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/fsutil.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/hgfsBd.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/hgfsEscape.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/hgfsUtil.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/inode.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/kernelStubsLinux.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/link.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/messageBackdoor.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/message.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/module.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/page.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/request.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/rpcout.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/stubs.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/super.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/tcp.o
CC [M] /tmp/vmware-root/modules/vmhgfs-only/transport.o
LD [M] /tmp/vmware-root/modules/vmhgfs-only/vmhgfs.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/vmhgfs-only/vmhgfs.mod.o
LD [M] /tmp/vmware-root/modules/vmhgfs-only/vmhgfs.ko
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.32-5-686 »
make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: entrant dans le répertoire « /tmp/vmware-root/modules/vmhgfs-only »
make[1]: « postbuild » est à jour.
make[1]: quittant le répertoire « /tmp/vmware-root/modules/vmhgfs-only »
cp -f vmhgfs.ko ./../vmhgfs.o
make: quittant le répertoire « /tmp/vmware-root/modules/vmhgfs-only »
Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-root/modules/vmxnet-only »
make -C /lib/modules/2.6.32-5-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.32-5-686 »
CC [M] /tmp/vmware-root/modules/vmxnet-only/vmxnet.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/vmxnet-only/vmxnet.mod.o
LD [M] /tmp/vmware-root/modules/vmxnet-only/vmxnet.ko
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.32-5-686 »
make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: entrant dans le répertoire « /tmp/vmware-root/modules/vmxnet-only »
make[1]: « postbuild » est à jour.
make[1]: quittant le répertoire « /tmp/vmware-root/modules/vmxnet-only »
cp -f vmxnet.ko ./../vmxnet.o
make: quittant le répertoire « /tmp/vmware-root/modules/vmxnet-only »
Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-root/modules/vmblock-only »
make -C /lib/modules/2.6.32-5-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.32-5-686 »
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/block.o
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/control.o
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/dbllnklst.o
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/dentry.o
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/file.o
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/filesystem.o
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/inode.o
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/module.o
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/stubs.o
CC [M] /tmp/vmware-root/modules/vmblock-only/linux/super.o
LD [M] /tmp/vmware-root/modules/vmblock-only/vmblock.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/vmblock-only/vmblock.mod.o
LD [M] /tmp/vmware-root/modules/vmblock-only/vmblock.ko
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.32-5-686 »
make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: entrant dans le répertoire « /tmp/vmware-root/modules/vmblock-only »
make[1]: « postbuild » est à jour.
make[1]: quittant le répertoire « /tmp/vmware-root/modules/vmblock-only »
cp -f vmblock.ko ./../vmblock.o
make: quittant le répertoire « /tmp/vmware-root/modules/vmblock-only »
Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-root/modules/vmci-only »
make -C /lib/modules/2.6.32-5-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.32-5-686 »
CC [M] /tmp/vmware-root/modules/vmci-only/kernelStubsLinux.o
CC [M] /tmp/vmware-root/modules/vmci-only/vmciDatagram.o
CC [M] /tmp/vmware-root/modules/vmci-only/vmci_drv.o
CC [M] /tmp/vmware-root/modules/vmci-only/vmciEvent.o
CC [M] /tmp/vmware-root/modules/vmci-only/vmciGuestDs.o
CC [M] /tmp/vmware-root/modules/vmci-only/vmciGuestKernelIf.o
CC [M] /tmp/vmware-root/modules/vmci-only/vmciKernelIf.o
CC [M] /tmp/vmware-root/modules/vmci-only/vmciProcess.o
CC [M] /tmp/vmware-root/modules/vmci-only/vmciQueuePair.o
CC [M] /tmp/vmware-root/modules/vmci-only/vmciUtil.o
LD [M] /tmp/vmware-root/modules/vmci-only/vmci.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/vmci-only/vmci.mod.o
LD [M] /tmp/vmware-root/modules/vmci-only/vmci.ko
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.32-5-686 »
make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: entrant dans le répertoire « /tmp/vmware-root/modules/vmci-only »
make[1]: « postbuild » est à jour.
make[1]: quittant le répertoire « /tmp/vmware-root/modules/vmci-only »
cp -f vmci.ko ./../vmci.o
make: quittant le répertoire « /tmp/vmware-root/modules/vmci-only »
Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-root/modules/vmci-only »
make -C /lib/modules/2.6.32-5-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.32-5-686 »
CC [M] /tmp/vmware-root/modules/vmci-only/kernelStubsLinux.o
CC [M] /tmp/vmware-root/modules/vmci-only/vmciDatagram.o
CC [M] /tmp/vmware-root/modules/vmci-only/vmci_drv.o
CC [M] /tmp/vmware-root/modules/vmci-only/vmciEvent.o
CC [M] /tmp/vmware-root/modules/vmci-only/vmciGuestDs.o
CC [M] /tmp/vmware-root/modules/vmci-only/vmciGuestKernelIf.o
CC [M] /tmp/vmware-root/modules/vmci-only/vmciKernelIf.o
CC [M] /tmp/vmware-root/modules/vmci-only/vmciProcess.o
CC [M] /tmp/vmware-root/modules/vmci-only/vmciQueuePair.o
CC [M] /tmp/vmware-root/modules/vmci-only/vmciUtil.o
LD [M] /tmp/vmware-root/modules/vmci-only/vmci.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/vmci-only/vmci.mod.o
LD [M] /tmp/vmware-root/modules/vmci-only/vmci.ko
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.32-5-686 »
make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: entrant dans le répertoire « /tmp/vmware-root/modules/vmci-only »
make[1]: « postbuild » est à jour.
make[1]: quittant le répertoire « /tmp/vmware-root/modules/vmci-only »
cp -f vmci.ko ./../vmci.o
make: quittant le répertoire « /tmp/vmware-root/modules/vmci-only »
Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-root/modules/vsock-only »
make -C /lib/modules/2.6.32-5-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.32-5-686 »
CC [M] /tmp/vmware-root/modules/vsock-only/linux/af_vsock.o
CC [M] /tmp/vmware-root/modules/vsock-only/linux/notify.o
CC [M] /tmp/vmware-root/modules/vsock-only/linux/stats.o
CC [M] /tmp/vmware-root/modules/vsock-only/linux/util.o
CC [M] /tmp/vmware-root/modules/vsock-only/linux/vsockAddr.o
CC [M] /tmp/vmware-root/modules/vsock-only/driverLog.o
LD [M] /tmp/vmware-root/modules/vsock-only/vsock.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/vsock-only/vsock.mod.o
LD [M] /tmp/vmware-root/modules/vsock-only/vsock.ko
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.32-5-686 »
make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: entrant dans le répertoire « /tmp/vmware-root/modules/vsock-only »
make[1]: « postbuild » est à jour.
make[1]: quittant le répertoire « /tmp/vmware-root/modules/vsock-only »
cp -f vsock.ko ./../vsock.o
make: quittant le répertoire « /tmp/vmware-root/modules/vsock-only »
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.
Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-root/modules/pvscsi-only »
make -C /lib/modules/2.6.32-5-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.32-5-686 »
CC [M] /tmp/vmware-root/modules/pvscsi-only/pvscsi.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/pvscsi-only/pvscsi.mod.o
LD [M] /tmp/vmware-root/modules/pvscsi-only/pvscsi.ko
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.32-5-686 »
make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: entrant dans le répertoire « /tmp/vmware-root/modules/pvscsi-only »
make[1]: « postbuild » est à jour.
make[1]: quittant le répertoire « /tmp/vmware-root/modules/pvscsi-only »
cp -f pvscsi.ko ./../pvscsi.o
make: quittant le répertoire « /tmp/vmware-root/modules/pvscsi-only »
No X install found.
Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-2.6.32-5-686
Checking acpi hot plug done
Starting VMware Tools services in the virtual machine:
Switching to guest configuration: done
Paravirtual SCSI module: done
Guest filesystem driver: done
Mounting HGFS shares: failed
Guest memory manager: done
Guest vmxnet fast network device: done
VM communication interface: done
VM communication interface socket family: done
Blocking file system: done
Guest operating system daemon: done
Virtual Printing daemon: done
The configuration of VMware Tools 8.4.5 build-332101 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 "/usr/bin/vmware-toolbox-cmd" from the
command line or by invoking "/usr/bin/vmware-toolbox" from the command line
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.
To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/networking stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/networking start
Enjoy,
--the VMware team
blog comments powered by Disqus