安装vmware tools 来共享Windows到linux的文件

安装vmware tools 来共享Windows到linux的文件

1.把旧的vmware workstation卸载。按好最新版的vmware workstation Pro 16 (路径D:\Program File (×86)\vmware workstation),因为与Windows 10兼容。

2.按好之后,打开设置桥接模式

点击硬件:
CD/DVD的设备状态:打勾:已连接,启动时连接,使用ISO映象文件的路径:D:\Program File (×86)\vmware workstation\linux.iso

点击选项:
[1]共享文件夹 :总是启用,添加文件夹,打开路径,(在Windows主机上的桌面,新建一个文件夹,添加要共享的文件。打开文件夹的属性,设置成共享文件夹,密码保护,网络和共享中心:无密码保护的共享)。
[2]vmware tools:打勾,将客户机时间与主机同步确定

3.打开虚拟机界面化,在超级用户root下进行

[1]联网
ping www.baidu.com

[2]更新所有软件包,要大概半个小时
yum update

[3]下载几个软件包,安装vmware tools要用到yum install -y epel-release
yum install -y gcc

[4]解压vmware tools (*.tar.gz )
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom(挂载)
cd /mnt/cdrom
ls(查看有没有vmwaretools-10.3.23-17030940.tar.gz)
tar -xzvf /mnt/cdrom/vmwaretools-10.3.23-17030940.tar.gz(解压)

[5]安装
cd
cd vmware-tools-distrib
ls(查看有没有vmware-install.pl)
./vmware-install.pl (结果是enjoy team ,成功安装vmware tools。)

[6]共享文件夹
vm加两个tab键,查看一下有没有vmware-config-tools.pl,有就成功了
cd /usr/bin
ls *.pl
cd(查看有没有vmware-config-tools.pl)
./vmware-config-tools.pl
[重启] reboot
[查看] cd vmware-hgfsclient (查看有没有共享文件夹名)
cd /mnt
ls
cd hgfs (查看一下有没有共享文件夹名)
[没有的话,挂载]
mount -t vmhgfs .host/共享文件夹名 /mnt/hgfs
sudo vmhgfs-fuse .host/共享文件夹名 /mnt/hgfs -o nonempty -o allow_other
再查看一下cd /mnt/hgfs里面有没有共享文件夹名

注意:在./vmware-install.pl时,一步一回车,但你有这种情况,有一步,要输no。

INPUT: [ yes]
default
The vmxnet driver is no longer supported on kernels 3.3 and greater.
Pleaseupgrade to a newer virtual NIC. (e.g… vmxnet3 or el 000e)
Skipping configuring automatic kernel modules as no drivers were installed bySkipping rebuilding initrd boot image for kernel as no drivers to be incl udedin boot image were installed by this installer.
he configuration of VMware Tools 10.3.23 build- 17030940 for Linux for thisrunning kernel completed successfully.
VMware Tools installed on top of open- vm- tools has not added anything ofsignificance or potential benefit.
would you like to recover the wasted disk space by uninstalling VMware Tools atthis time? (yes/no) no
enjoy
team

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值