beauty in struggle

Mount vmware-linux shared folder, Host 공유폴더 mount 하기 본문

After-work/linux

Mount vmware-linux shared folder, Host 공유폴더 mount 하기

dgdeus 2023. 5. 10. 12:05
728x90
SMALL

먼저 vmware GUI에서 linux guest에 공유폴더(vm_shared)를 설정 해준다.

 

vmware guest인 linux의 terminal에서 다음 command로 vmware에서 공유된 폴더를 불러온다.

vmware-hgfsclient *

 

~/shared 폴더를 만들고, 여기에 shared folder를 mount 한다.

mkdir ~/shared
sudo vmhgfs-fuse .host:/vm_shared ~/shared -o allow_other -o uid=1000

 

이 설정은 linux가 재시작할 때마다 사라지기 때문에, linux가 booting될때 이 공유폴더가 자동으로 mount 되도록 해준다.

- 먼저 /etc/fstab 파일을 열고,

sudo nano /etc/fstab

- 아래의 내용을 추가해준다.

# To share folders in host with guests of vmware
.host:/vm_shared    ~/shared    fuse.vmhgfs-fuse    defaults,allow_other,uid=1000     0    0

 

728x90
LIST
Comments