VMware shared folders

emosms

Member


Messages: 38

Anyone running a virtual FreeBSD via VMWare?
I have a guest FreeBSD and WinXP host.
Running the VM through VMWare and have installed vmware tools.
I enabled shared folders and try to mount the shared folders.
Cant find into the documentation explicitly stated, that this feature works for FreeBSD guest.
So according to the instructions I followed:
Permissions and Folder Mounting for Shared Folders on Linux Guests
When type:
Code:
mount -t vmhgfs .host:/ /home/user1/shares
I get:
Code:
mount: .host/ : Operation not supported by device
 
Last edited by a moderator:

pol

New Member


Messages: 2

Hi. I'm running FreeBSD 8.2-PRERELEASE i386 on VMware Workstation 6.5.5 (Win7 x64) with working Share Folders feature.

I used the current port emulators/open-vm-tools-nox11. Including the use of shared folders in the virtual machine configuration, added a shared directory on the host, on the guest executed the mount command: [cmd=]mount -t vmhgfs .host: /mnt[/cmd] And you're done.
 

tuaris

Active Member

Reaction score: 4
Messages: 123

Hate to post to an old thread, but it comes up as one of the first results in a web search.
The mount command given above no longer works. The correct approach (tested in 11.1) is to run the following as root:

Bash:
pkg install open-vm-tools

SHARE_NAME=edit_as_needed
mkdir /mnt/${SHARE_NAME}
vmhgfs-fuse .host:/${SHARE_NAME} /mnt/${SHARE_NAME}
The above will only allow root access to the shared folder. To allow for other users add in the -o allow_other option, and if you want a user id:

Code:
vmhgfs-fuse -o allow_other -o uid=XXXX .host:/${SHARE_NAME} /mnt/${SHARE_NAME}
 

joggx

New Member

Reaction score: 1
Messages: 11

how to mount it in /etc/fstab?

Code:
.host:/ /mnt/share/ vmhgfs-fuse defaults,allow_other,uid=1000 0 0
it says 'Inappropriate file type or format'.
 

T-Daemon

Well-Known Member

Reaction score: 87
Messages: 267

Try this:

/etc/fstab
Rich (BB code):
.host:/ /mnt/share/ vmhgfs mountprog=/usr/local/bin/vmhgfs-fuse,defaults,allow_other,uid=1000 0 0
From mount(8)
Code:
mountprog=<program>
             Force mount to use    the specified program to mount the
             file system, instead of calling nmount(2) directly.  For
             example:

             mount -t foofs -o mountprog=/mydir/fooprog    /dev/cd0 /mnt
 
Top