출처 : http://theholmesoffice.com/how-to-share-folders-between-windows-and-ubuntu-using-vmware-player/
How to share folders between Windows and Ubuntu using VMware Player
Posted by Simon Holmes on June 15th, 2012 in Knowing Node / 13 Comments
Tags: shared folders, ubuntu, vmware, vmware player, windows
Tags: shared folders, ubuntu, vmware, vmware player, windows
So now you’ve got Ubuntu installed in a Virtual Machine, you’ll probably find it useful to have a shared folder with the Windows host OS.
- Create a folder in your Windows file system that you want to use as the share. Make sure it’s in a location where your user account has full access rights. I’ve created one in My Documents as it will also be backed up by my Mozy Home account
- Power down the VM shutting down Ubuntu
- Select your VM in VMware Player and click Edit virtual machine settings
- In the Options tab click Shared Folders in the left hand pane
- Click Always enabled in the right and pane and click Add…
- This will take you into the “Add Shared Folder Wizard”
- Click Next and follow the prompts selecting the folder you created in Step 1
- Also name the share – this is the name that the folder will have in Ubuntu
- You will come back to the Settings screen with your share added
- Click OK to close the settings
- Play the VM to boot Ubuntu
- Shared folders in Ubuntu appear in the location /mnt/hgfs but you probably won’t be able to see it
- To check to see if Ubuntu is aware that there is a shared folder available run this command in a terminal window
1
vmware-hgfsclient
This will output the share name into the terminal window, e.g.
1
$ vmware-hgfsclient
2
WinLinShare
- So far so good! Now we need to run the VMWare config tools. In terminal enter
1
sudo
vmware-config-tools.pl
- Follow the prompts, accepting the default values
- Check to see that your folder is now showing in the /mnt/hgfs directory
1
$
dir
/mnt/hgfs
2
WinLinShare
Share folder permissions across Ubuntu Virtual Machine & Windows Host
Finally, here’s a little trick to share folder permissions across Ubuntu Virtual Machine & Windows Host. This also gives you quick access to the folder from your Ubuntu desktop. Enter this into terminal:
1 | ln -s /mnt/hgfs/shared-directory ~/Desktop/Name-of-the-folder |
And there you have it, your Windows folder is now fully accessible and usable from your Ubuntu VM. The script files for the rest of my Knowing Node series will be based in this directory.
'개발지식창고 > Web_Server' 카테고리의 다른 글
[Centos] samba를 이용하여 리눅스 폴더를 윈도우에서 공유하기 (0) | 2017.10.17 |
---|---|
[NodeJS] gcm push 서버 성공 예제소스 (0) | 2015.08.15 |
openfire utf8 설정 (0) | 2014.10.19 |
XMPP 관련 Sample 소스 (0) | 2014.10.16 |
SparkWeb 성공된 설정 (0) | 2014.10.16 |