Windows环境下安装了Linux虚拟机,如果要安装大型软件(例如Oracle),难道需要把安装包上传上去吗(超占空间)?
能直接访问Windows下才磁盘文件就好了。
强大的VMWare支持文件夹共享功能,这样虚拟机就能无缝访问Windows下的硬盘内容了。
1. 开VMWare共享文件夹功能
在关闭虚拟机状态下,右击待指定虚拟机 --> 设置 --> 选项 --> 共享文件夹 --> 总是启用 --> 添加 -->确定
示例共享了G:\下的几个目录
2. 安装vmwaretools
打开虚拟机 --> 右击待安装的虚拟机 --> 安装VMware Tools -->此时(虚拟)系统会默认打开 VMWare的安装压缩包
Extract解压到任意一个目录下(例子解压缩到/tmp/vmwaretools)-->右击Open in Terminal(在命令行中打开)
安装即为简单,根据回显提示,一路yes或者no即可,注意使用root用户安装。安装全过程如下:
[root@XD-ORACLE vmware-tools-distribu]# cd vmware-tools-distrib/ [root@XD-ORACLE vmware-tools-distrib]# ls bin doc etc FILES INSTALL installer lib vmware-install.pl [root@XD-ORACLE vmware-tools-distrib]# ./vmware-install.pl A previous installation of VMware Tools has been detected. The previous installation was made by the tar installer (version 4). Keeping the tar4 installer database format. You have a version of VMware Tools installed. Continuing this install will first uninstall the currently installed version. Do you wish to continue? (yes/no) [yes] yes Uninstalling the tar installation of VMware Tools. Stopping services for VMware Tools Stopping VMware Tools services in the virtual machine: Guest operating system daemon: [ OK ] VMware User Agent (vmware-user): [ OK ] Blocking file system: [ OK ] Unmounting HGFS shares: [ OK ] Guest filesystem driver: [ OK ] VM communication interface socket family: [ OK ] VM communication interface: [ OK ] Stopping Thinprint services in the virtual machine: Stopping Virtual Printing daemon: done /sbin/restorecon: Warning no default label for /tmp/vmware-block-restore0/tmp_file File /etc/pulse/default.pa is backed up to /etc/pulse/default.pa.old.0. The removal of VMware Tools 9.6.1 build-1378637 for Linux completed successfully. 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/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] 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.6.1 build-1378637 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] yes Initializing... /usr/bin/xrandr: Failed to get size of gamma for output default 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: [ OK ] VMware User Agent (vmware-user): [ OK ] Blocking file system: [ OK ] Unmounting HGFS shares: [ OK ] Guest filesystem driver: [ OK ] VM communication interface socket family: [ OK ] VM communication interface: [ OK ] Found a compatible pre-built module for vmci. Installing it... Found a compatible pre-built module for vsock. Installing it... 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. 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. 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] yes Found a compatible pre-built module for vmhgfs. Installing it... Found a compatible pre-built module for vmxnet. Installing it... 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] 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] no Thinprint provides driver-free printing. Do you wish to enable this feature? [yes] yes Disabling timer-based audio scheduling in pulseaudio. Detected X server version 1.13.0 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. Starting Virtual Printing daemon: done Checking acpi hot plug [ OK ] Starting VMware Tools services in the virtual machine: Switching to guest configuration: [ OK ] VM communication interface: [ OK ] VM communication interface socket family: [ OK ] Guest filesystem driver: [ OK ] Mounting HGFS shares: [ OK ] Blocking file system: [ OK ] VMware User Agent: [ OK ] Guest operating system daemon: [ OK ] The configuration of VMware Tools 9.6.1 build-1378637 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/VMware Tools. Ejecting device /dev/sr0 ... /sbin/restorecon: Warning no default label for /tmp/vmware-block-restore0/tmp_file [root@XD-ORACLE vmware-tools-distrib]#
切换到/mnt/hgfs/下就能看到共享的文件夹了
[root@XD-ORACLE vmware-tools-distrib]# cd /mnt/hgfs/FUTENG.Repository/ [root@XD-ORACLE FUTENG.Repository]# ls Java Oracle [root@XD-ORACLE FUTENG.Repository]#
至此完成VMware Tools的安装工作。对于大型软件的安装,可直接放置于共享盘,亦可在Windows下直接解压,Linux下安装使用,非常方便。
相关推荐
Vmware 虚拟机共享文件夹设置教程 本教程将指导您如何在苹果 Mac 电脑上设置 Vmware 虚拟机的共享文件夹,使您可以在 Mac 和虚拟机之间...* 在设置共享文件夹时,请确保虚拟机系统中正确安装了 Vmware Tools 工具。
这通常涉及使用`mount`命令,并指定VMware Tools提供的特殊驱动器名(例如,`/mnt/hgfs`)和共享文件夹的名称。 值得注意的是,使用共享文件夹虽然提供了便捷的数据交换途径,但也可能降低系统的安全性。因为共享...
VMware共享文件夹的创建 VMware共享文件夹的创建是指在VMware虚拟机中创建可以在Windows和Linux操作系统下都可以访问的共享文件夹。这个共享文件夹可以方便地共享文件和文件夹,省去很多在Linux下操作的麻烦。 在...
### VMWare虚拟机与主机共享文件夹及安装VMWare Tools详解 在IT行业中,虚拟化技术扮演着举足轻重的角色,尤其是对于软件开发、测试和系统管理领域来说,能够在一个物理机上运行多个独立的操作系统环境是极其必要的...
在 VMware Workstation 虚拟机中创建共享文件夹非常简单,只需要安装 VMware Tools,然后设置共享文件夹和访问共享文件夹。按照本文所述的步骤,我们可以轻松地创建和访问共享文件夹,提高工作效率和协作度。
2. 切换到root用户权限,运行`cd /media`,然后找到挂载的VMware Tools光盘镜像,例如`cd VMwareTools-x.x.x-yyyyyy`。 3. 运行`./vmware-tools-install.pl`开始安装过程,跟随提示完成安装。 安装完VMware Tools后...
在安装虚拟机时,确保安装了VMware Tools,这是一个增强虚拟硬件功能的软件包,包含了处理共享文件夹所需的部分。 总的来说,VMware虚拟机的共享文件夹功能极大地提升了主机和虚拟机之间的协作效率。无论是开发人员...
VM tools(VM tools的安装一路回车即可)顾名思义就是Vmware的一组工具。主要用于虚拟主机显示优化与调整,另外还可以方便虚拟主机与本机的交互,如允许共享文件夹,甚至可以直接从本机向虚拟主机拖放文件、鼠标无缝...
### VMware虚拟机与宿主机共享文件夹详解 #### 一、引言 在虚拟化技术的应用场景中,经常需要在虚拟机(Guest OS)与宿主机(Host OS)之间进行文件传输。传统的文件传输方法包括使用USB设备、FTP服务器、或者网络...
sudo tar zxf VMwareTools-xxx.tar.gz cd /vmware-tools-distrib sudo ./vmware-install.pl 安装过程中,一直按 Enter 键,或者输入 yes 和 no,直到安装完毕。 第二个步骤:设置共享文件夹目录 在安装完毕 ...
sudo tar -xvf /media/cdrom0/VMwareTools-*.tar.gz -C /tmp/ cd /tmp/vmware-tools-distrib/ sudo ./vmware-tools-install.pl ``` - 安装完成后,重启Ubuntu虚拟机。 2. 配置共享文件夹: - 在VMware主界面...
安装 VMwareTools 后,需要挂载共享文件夹。具体步骤如下: 1. 在 Linux 系统中,创建一个挂载点 /mnt/cdrom,并挂载光驱 cdrom。 ``` mkdir /mnt/cdrom mount /dev/cdrom /mnt/cdrom ``` 2. 解压压缩包 VMware...
在VMware WorkStation中设置共享文件夹的步骤如下: 1. 选择已经安装好的Ubuntu Server虚拟机,点击右键选择“设置”(Settings)。 2. 在设置窗口中选择“选项”(Options),然后在设备(Devices)中找到“共享...
### CentOS系统安装与配置 #### 一、CentOS开发环境搭建 **1.... - **新建虚拟机**: 打开...通过以上步骤,您不仅成功安装了CentOS系统,还设置了共享文件夹以及安装了VMwareTools,大大提高了虚拟机的可用性和便捷性。
通过安装VMware Tools和设置共享文件夹,我们可以非常方便地在宿主机和虚拟机之间共享文件。这种方法不仅提高了工作效率,还避免了使用其他复杂工具的麻烦。希望以上指南能够帮助您顺利完成设置过程。如果有任何疑问...
linux版本VMwareTools-10.0.5-3228253.tar.gz。 解决无法使用wmare虚拟机直接安装的问题 参考文章: CentOS虚拟机和物理机共享文件夹实现 http://www.linuxidc.com/Linux/2017-04/142897.htm 使用方法:下载->...
装好Ubuntu后,你兴致勃勃地准备安装VMware Tools,设置共享文件夹。这时,你选择使用命令让Ubuntu下载VMware Tools:sudo apt-get install open-vm-tools 这时你发现你遇到了第一个问题: 那么你可能需要使用其他...
在文本终端中,先进入“/tmp”目录,再执行“tar xvfz /media/cdrom/VMwareTools-6.5.0-118166.tar.gz”命令解压缩VMware Tools安装包。接着,通过“cd vmware-tools-distrib”命令进入解压后的目录,运行“vmware-...
《VMware共享文件夹外部依赖:vmware-tools-patches详解》 VMware Tools是VMware虚拟化环境中不可或缺的一部分,它提供了虚拟机与主机之间高效的数据交换、图形优化以及硬件兼容性等功能。在实际使用过程中,有时...