admin管理员组文章数量:1535374
2024年1月11日发(作者:)
VMWare tools的安装过程及文件共享设置
为了更好的解决虚拟机与主机的共享问题,VMware公司有一个VMWare-tools,来实现文件共享。这里主要讲的是在Windows下用Vmware虚拟Linux来与windows来共享。
虚拟机:vmware 5.0.0 build-13124
安装过程:
1.首先在虚拟机上安装了vmware,安装完成后,默认vm tools是没有安装的,启动后在下方提示没有安装虚拟工具,安装过程省略;
2.安装redhat9,安装过程省略;
3.安装vm tools:
1)以ROOT身份进入LINUX
2)按下 CTRL+ALT组合键,进入主操作系统,点击VMWARE状态栏安装提示,或者点击虚拟菜单下的安装虚拟机工具子菜单。
菜单:VM->Install
3)确认安装VMWARE TOOLS。
4)鼠标点击LINUX界面,进入LINUX。
5)运行如下命令,注意大小写。
mount /mnt/cdrom
加载CDROM设备,这时如果进入/mnt/cdrom 目录下,你将会发现多了两个文件: 和 。这就是WMWARE
TOOLS的LINUX软件包,也就是我们刚才使用WINISO 打开文件所看到的。
cp /mnt/cdrom/ /tmp
将该软件包拷贝到LINUX的 TMP目录下。
umount /mnt/cdrom
卸载CDROM。
cd /tmp
进入TMP目录
tar -zxf
解压缩该软件包,默认解压到vmware-tools-distrib 目录下(与文件名同名)。
cd vmware-tools-distrib
进入解压后的目录
这时要进入文本模式下运行下面的命令
./
这时install提示你是否需要备份以前的配置文件,建议选择“y”。安装路径采用默认,一直回车....
是不是在“/mnt”看到了一个hgfs文件夹,这就表明安装成功了
5、安装过程中的一些选择:
。。。。。。。。。。。。
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/rc.d]
What is the directory that contains the init scripts?
[/etc/rc.d/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 6.0.2 build-59824 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/".
Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/". Do you want
this program to invoke the command for you now? [yes]
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ 确定 ]
Trying to find a suitable vmmemctl module for your running kernel.
The module -RH9.0 loads perfectly in the running kernel.
Trying to find a suitable vmhgfs module for your running kernel.
The module up-2.4.20-8.i686-RH9.0 loads perfectly in the running kernel.
pcnet32 18240 0
Unloading pcnet32 module
Trying to find a suitable vmxnet module for your running kernel.
The module up-2.4.20-8.i686-RH9.0 loads perfectly in the running kernel.
Trying to find a suitable vmblock module for your running kernel.
The module up-2.4.20-8.i686-RH9.0 loads perfectly in the running kernel.
[EXPERIMENTAL] The VMware CPU Time Accounting daemon (vmware-vmdesched) can
help increase the accuracy of CPU time accounting performed by the guest
operating system. Please refer to the VMware Knowledge Base for more details on
this capability. Do you wish to enable this feature? [no]
[EXPERIMENTAL] The Virtual Machine Communication Interface (VMCI) service
provides a new communication capability with the Host, primarily for
development at the moment. Would you like to enable this feature? [no]
Detected XFree86 version 4.3.0.
Please choose one of the following display sizes that X will start with (1 -
15):
[1] "640x480"
[2]< "800x600"
[3] "1024x768"
[4] "1152x864"
[5] "1280x800"
[6] "1152x900"
[7] "1280x1024"
[8] "1376x1032"
[9] "1400x900"
[10] "1400x1050"
[11] "1440x900"
[12] "1680x1050"
[13] "1600x1200"
[14] "1920x1200"
[15] "2364x1773"
Please enter a number between 1 and 15:
[2]
XFree86 Version 4.3.0 (Red Hat Linux release: 4.3.0-2)
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.4.20-3bigmem i686 [ELF]
Build Date: 27 February 2003
Build Host:
Before reporting problems, check /
to make sure that you have the latest version.
Module Loader present
OS Kernel: Linux version 2.4.20-8 (bhcompile@) (gcc version 3.2.2 20030222
(Red Hat Linux 3.2.2-5)) #1 Thu Mar 13 17:54:28 EST 2003 PF
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/vmware-config0/XF86ConfigLog.2679", Time: Thu Apr 16 15:47:24 2009
(++) Using config file: "/tmp/vmware-config0/XF86Config.2679"
X is running fine with the new config file.
Starting VMware Tools services in the virtual machine:
Switching to guest configuration: [ 确定 ]
Guest filesystem driver: [ 确定 ]
Mounting HGFS shares: [ 确定 ]
Guest memory manager: [ 确定 ]
Guest vmxnet fast network device: [ 确定 ]
Blocking file system: [ 确定 ]
DMA setup: [ 确定 ]
Guest operating system daemon: [ 确定 ]
The configuration of VMware Tools 6.0.2 build-59824 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 use the vmxnet driver, restart networking using the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/network start
To make use of the virtual printer, you will need to restart the CUPS service
Enjoy,
--the VMware team
6、安装完后的所有文件系统:
[root@localhost vmware-tools-distrib]# df
文件系统 1K-块 已用 可用 已用% 挂载点
/dev/sda2 10728996 2625096 7558896 26% /
/dev/sda1 101089 9426 86444 10% /boot
none 127632 0 127632 0% /dev/shm
/dev/cdrom 107456 107456 0 100% /mnt/cdrom
.host:/ 60807168 19917024 40890144 33% /mnt/hgfs
下面就要讲一下怎么来设置共享了,这一部分更简单。
记得上面在VM菜单里进行操作了吗?对!下面接着要在VM菜单里进行,选择setting子项,再选择Options.
在窗体的左半部分是不是看到了Shared Folders这么一项,如果你以前没有设置过,应该是Disabled。
下面就要启动它,选择它,在右边就会出现共享文件夹的设置窗口。
选择Add,选择要与客户Linux进行共享的文件夹。
现在已经完成了所有的工作了,在windows下向指定的share folders写文件,在Linux客户机里面就能够看到,同样在Linux上写文件在Windows下也能够看到,并且可以修改。
版权声明:本文标题:VMWare tools的安装过程及文件共享设置 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1704954680a116067.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论