全新安装完Debian7.8之后,为了实现根据窗口自动调整分辨率和共享剪贴板,需要安装Vmware Tools。
安装环境
Debian 7.8 Wheezy 64-bit,Vmware Workstation 10
安装支持库
因为全新安装,所以首先需要安装一些缺少的支持库
1 |
#apt-get install binutils cpp gcc make psmisc linux-headers-$(uname -r) |
安装Vmware Tools
之后从虚拟机菜单选择安装Vmware Tools,Vmware会自动Mount到Debian系统的cdrom,打开文件管理器,浏览光盘文件找到类似 VMwareTools-x.x.x-x.tar.gz 的压缩包文件,右键获取压缩包的绝对路径 /media/cdrom0/VMwareTools-x.x.x-x.tar.gz ,将文件解压到 /tmp 文件夹
1 |
#tar -C /tmp -zxvf /media/cdrom0/VMwareTools-x.x.x-x.tar.gz |
然后执行cd命令定位到刚才解压的文件夹
1 |
#cd /tmp/vmware-tools-distrib |
执行安装命令
1 |
#./vmware-install.pl |
之后会出现很多参数的确认,只需要保持默认一路回车
一些问题
在安装的过程中,可能会出现
1 2 3 |
Searching for a valid kernel header path... The path "" is not a valid path to the 3.2.0-4-amd64 kernel headers. Would you like to change it? [yes] |
意思是系统找不到 kernel header 的路径,让我们手动输入一个位置
出现这条说明 kernel header 的安装有些问题,需要另外打开一个Terminal窗口重新执行一下安装命令
1 |
apt-get install linux-headers-$(uname -r) |
然后回到之前安装到一半的Vmware Tools的安装Terminal,手动输入一个位置
1 |
Enter the path to the kernel header files for the 3.2.0-4-amd64 kernel? /usr/src/linux-headers-$(uname -r)/include |
接下来一路Enter就能完成整个安装
整个安装过程
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 |
root@debian:/home/minirplus# cd /tmp/vmware-tools-distrib root@debian:/tmp/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] 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 9.9.0 build-2304977 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 Thinprint services in the virtual machine: Stopping Virtual Printing daemon: done Stopping VMware Tools services in the virtual machine: Guest operating system daemon: done VMware User Agent (vmware-user): 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". The path "/usr/bin/gcc" appears to be a valid path to the gcc binary. Would you like to change it? [no] Searching for a valid kernel header path... The path "" is not a valid path to the 3.2.0-4-amd64 kernel headers. Would you like to change it? [yes] Enter the path to the kernel header files for the 3.2.0-4-amd64 kernel? /usr/src/linux-headers-$(uname -r)/include The path "/usr/src/linux-headers-$(uname -r)/include" appears to be a valid path to the 3.2.0-4-amd64 kernel headers. Would you like to change it? [no] Provided kernel information will not work with the running kernel. The communication service is used in addition to the standard communication between the guest and the host. The rest of the software provided by VMware Tools is designed to work independently of this feature. If you wish to have the VMCI 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 ] Provided kernel information will not work with the running kernel. The VM communication interface socket family is used in conjunction with the VM communication interface to provide a new communication path among guests and host. The rest of this software provided by VMware Tools is designed to work independently of this feature. If you wish to have the VSOCK 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 the Enter key to continue.] The module vmxnet3 has already been installed on this system by another installer or package and will not be modified by this installer. The module pvscsi has already been installed on this system by another installer or package and will not be modified by this installer. The module vmmemctl has already been installed on this system by another installer or package and will not be modified by this installer. The VMware Host-Guest Filesystem allows for shared folders between the host OS and the guest OS in a Fusion or Workstation virtual environment. Do you wish to enable this feature? [yes] Provided kernel information will not work with the running kernel. 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 enables dragging or copying files between host and guest in a Fusion or Workstation virtual environment. Do you wish to enable this feature? [yes] VMware automatic kernel modules enables automatic building and installation of VMware kernel modules at boot that are not already present. This feature can be enabled/disabled by re-running vmware-config-tools.pl. Would you like to enable VMware automatic kernel modules? [no] Thinprint provides driver-free printing. Do you wish to enable this feature? [yes] Disabling timer-based audio scheduling in pulseaudio. Do you want to enable Guest Authentication (vgauth)? [yes] Detected X server version 1.12.4 Distribution provided drivers for Xorg X server are used. Skipping X configuration because X drivers are not included. Creating a new initrd boot image for the kernel. update-initramfs: Generating /boot/initrd.img-3.2.0-4-amd64 Starting Virtual Printing daemon: done Checking acpi hot plug done Starting VMware Tools services in the virtual machine: Switching to guest configuration: done Blocking file system: done Guest operating system daemon: done The configuration of VMware Tools 9.9.0 build-2304977 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. 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 Found VMware Tools CDROM mounted at /media/cdrom0. Ejecting device /dev/sr0 ... root@debian:/tmp/vmware-tools-distrib# |
There are no comments yet