想把物理機中的文件拷貝到VMware Workstation中的賓客虛擬機中,或者相反,怎麼辦?VMware提供了兩種方法:ios
1)拖曳bash
2)共享文件夾session
拖曳方法最好理解,直接將物理機中的文件拖曳到虛擬機中;共享文件夾呢,則是指定物理機中一個文件夾供物理機與賓客機共用。這兩個功能都要求咱們在賓客機中安裝VMware Tools。安裝過程以下:ide
點擊VMware Workstation菜單「虛擬機---安裝VMware tools」,安裝後,會顯示成「從新安裝VMware tools」,如上圖。ui
虛擬機的桌面上會顯示出一個光盤的圖標。this
此時,在桌面上用鼠標點右鍵,打開一個Shell終端,運行以下命令:spa
# cd # lsblk # ls /run/media/kiosk/"VMware Tools" //你的顯示可能有所不一樣 manifest.txt VMwareTools-10.3.2-9925305.tar.gz vmware-tools-upgrader-64 run_upgrader.sh vmware-tools-upgrader-32 # cp /run/media/kiosk/"VMware Tools"/*.tar.gz /root //把那惟一個壓縮包拷貝到/root目錄下 # tar VMwareTools-10.3.2-9925305.tar.gz # cd vmware-tools-distrib/ # ./vmware-install.pl //啓動安裝過程
open-vm-tools packages are available from the OS vendor and VMware recommends
using open-vm-tools packages. See http://kb.vmware.com/kb/2073803 for more
information.
Do you still want to proceed with this installation? [no] yesrest
INPUT: [yes]code
Creating a new VMware Tools installer database using the tar4 format.orm
Installing VMware Tools.
In which directory do you want to install the binary files?
[/usr/bin]
INPUT: [/usr/bin] default
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]
INPUT: [/etc/rc.d] default
What is the directory that contains the init scripts?
[/etc/rc.d/init.d]
INPUT: [/etc/rc.d/init.d] default
In which directory do you want to install the daemon files?
[/usr/sbin]
INPUT: [/usr/sbin] default
In which directory do you want to install the library files?
[/usr/lib/vmware-tools]
INPUT: [/usr/lib/vmware-tools] default
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]
INPUT: [yes] default
In which directory do you want to install the common agent library files?
[/usr/lib]
INPUT: [/usr/lib] default
In which directory do you want to install the common agent transient files?
[/var/lib]
INPUT: [/var/lib] default
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
INPUT: [/usr/share/doc/vmware-tools] default
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]
INPUT: [yes] default
The installation of VMware Tools 10.3.2 build-9925305 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]
INPUT: [yes] default
Initializing...
Making sure services for VMware Tools are stopped.
Stopping vmware-tools (via systemctl): [ OK ]
The module vmci has already been installed on this system by another installer
or package and will not be modified by this installer.
The module vsock has already been installed on this system by another installer
or package and will not be modified by this installer.
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]
INPUT: [yes] default
The vmxnet driver is no longer supported on kernels 3.3 and greater. Please
upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)
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]
INPUT: [yes] default
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?
[yes] no
INPUT: [no]
Disabling timer-based audio scheduling in pulseaudio.
Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed
if you want to enable Common Agent (caf). [yes] no
INPUT: [no]
Detected X server version 1.15.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.
Generating the key and certificate files.
Successfully generated the key and certificate files.
The configuration of VMware Tools 10.3.2 build-9925305 for Linux for this
running kernel completed successfully.
You must restart your X session before any mouse or graphics changes take
effect.
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
3. Restart your X session.
Enjoy,
--the VMware team
Found VMware Tools CDROM mounted at /run/media/kiosk/VMware Tools. Ejecting
device /dev/sr0 ...
第3步
重啓虛擬機。