Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mounting the shared folder as vmhgfs under Ubuntu 18.04 bionic #248

Closed
suntong opened this issue May 3, 2018 · 22 comments
Closed

Mounting the shared folder as vmhgfs under Ubuntu 18.04 bionic #248

suntong opened this issue May 3, 2018 · 22 comments

Comments

@suntong
Copy link

@suntong suntong commented May 3, 2018

As root:

$ ls -ld /mnt/hgfs
drwxr-xr-x 2 root root 4096 May  3 13:50 /mnt/hgfs

% mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs
Error -107 cannot open connection!

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04 LTS
Release:        18.04
Codename:       bionic

This is after

sudo apt-get -y install open-vm-tools fuse open-vm-tools-desktop

and reboot.

Is it a known issue? THX!

@johnwvmw

This comment has been minimized.

Copy link
Contributor

@johnwvmw johnwvmw commented May 7, 2018

@suntong Can you please provide a little more information?

What host (version and build #) are you using to run this VM - ESXi, WS, or Fusion?

What is the current version of tools that apt-get retrieves?

Thanks.
John

@suntong

This comment has been minimized.

Copy link
Author

@suntong suntong commented May 8, 2018

Thanks for the response @johnwvmw, here they are:

image

the current version of open-vm-tools are:

2:10.2.0-3ubuntu3: amd64

for both open-vm-tools and open-vm-tools-desktop

ref: https://packages.ubuntu.com/search?keywords=open-vm-tools&searchon=names&suite=bionic&section=all

Note that

For the same host, if using the old Ubuntu 17.04, then the share works fine. The open-vm-tools and open-vm-tools-desktop there that I'm using are:

 open-vm-tools_2:10.1.5-5055683-1ubuntu1.1
 open-vm-tools-desktop_2:10.1.5-5055683-1ubuntu1.1
@lousybrit

This comment has been minimized.

Copy link

@lousybrit lousybrit commented May 8, 2018

Hi there,

I am the main owner for the Shared Folders feature.

We haven't done a great job documenting this change but you have run into the change from using a kernel client driver to a FUSE file system driver.

You should change your mount command format:
mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs

to the FUSE mount
/usr/bin/vmhgfs-fuse .host:/ /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other

If you run the above as root either sudo or su you should have the mount appear as before for all users.

Let me know if this still doesn't work for you but it should.
Thanks

Steve

@suntong

This comment has been minimized.

Copy link
Author

@suntong suntong commented May 8, 2018

Thanks @lousybrit,

I gave it a try, but got the same thing:

root@vm:~# /usr/bin/vmhgfs-fuse .host:/ /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other
Error -107 cannot open connection!

root@vm:~# /usr/bin/vmhgfs-fuse -d .host:/ /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other
Error -107 cannot open connection!

I.e. the -o debug didn't give much helpful info either.

Anything else that I can try?

@suntong

This comment has been minimized.

Copy link
Author

@suntong suntong commented May 8, 2018

Here is strace output for that command:

872   execve("/usr/bin/vmhgfs-fuse", ["/usr/bin/vmhgfs-fuse", ".host:/", "/mnt/hgfs", "-o", "subtype=vmhgfs-fuse,allow_other"], 0x7ffc33487198 /* 14 vars */) = 0
872   brk(NULL)                         = 0x555b21de0000
872   access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
872   access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
872   openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
872   fstat(3, {st_mode=S_IFREG|0644, st_size=36690, ...}) = 0
872   mmap(NULL, 36690, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0e88d65000
872   close(3)                          = 0
872   access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
872   openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libfuse.so.2", O_RDONLY|O_CLOEXEC) = 3
872   read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360o\0\0\0\0\0\0"..., 832) = 832
872   fstat(3, {st_mode=S_IFREG|0644, st_size=243832, ...}) = 0
872   mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0e88d63000
872   mmap(NULL, 2339104, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0e8890b000
872   mprotect(0x7f0e88935000, 2093056, PROT_NONE) = 0
872   mmap(0x7f0e88b34000, 77824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x29000) = 0x7f0e88b34000
872   close(3)                          = 0
872   access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
872   openat(AT_FDCWD, "/usr/lib/libvmtools.so.0", O_RDONLY|O_CLOEXEC) = 3
872   read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\7\2\0\0\0\0\0"..., 832) = 832
872   fstat(3, {st_mode=S_IFREG|0644, st_size=619496, ...}) = 0
872   mmap(NULL, 2720256, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0e88672000
872   mprotect(0x7f0e886f6000, 2093056, PROT_NONE) = 0
872   mmap(0x7f0e888f5000, 81920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x83000) = 0x7f0e888f5000
872   mmap(0x7f0e88909000, 4608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0e88909000
872   close(3)                          = 0
872   access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
872   openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
872   read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\257\1\0\0\0\0\0"..., 832) = 832
872   fstat(3, {st_mode=S_IFREG|0644, st_size=1133872, ...}) = 0
872   mmap(NULL, 3232136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0e8835c000
872   mprotect(0x7f0e8846f000, 2097152, PROT_NONE) = 0
872   mmap(0x7f0e8866f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x113000) = 0x7f0e8866f000
872   mmap(0x7f0e88671000, 392, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0e88671000
872   close(3)                          = 0
872   access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
872   openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
872   read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000b\0\0\0\0\0\0"..., 832) = 832
872   fstat(3, {st_mode=S_IFREG|0755, st_size=144976, ...}) = 0
872   mmap(NULL, 2221184, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0e8813d000
872   mprotect(0x7f0e88157000, 2093056, PROT_NONE) = 0
872   mmap(0x7f0e88356000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19000) = 0x7f0e88356000
872   mmap(0x7f0e88358000, 13440, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0e88358000
872   close(3)                          = 0
872   access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
872   openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
872   read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\34\2\0\0\0\0\0"..., 832) = 832
872   fstat(3, {st_mode=S_IFREG|0755, st_size=2030544, ...}) = 0
872   mmap(NULL, 4131552, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0e87d4c000
872   mprotect(0x7f0e87f33000, 2097152, PROT_NONE) = 0
872   mmap(0x7f0e88133000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e7000) = 0x7f0e88133000
872   mmap(0x7f0e88139000, 15072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0e88139000
872   close(3)                          = 0
872   access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
872   openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
872   read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\16\0\0\0\0\0\0"..., 832) = 832
872   fstat(3, {st_mode=S_IFREG|0644, st_size=14560, ...}) = 0
872   mmap(NULL, 2109712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0e87b48000
872   mprotect(0x7f0e87b4b000, 2093056, PROT_NONE) = 0
872   mmap(0x7f0e87d4a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f0e87d4a000
872   close(3)                          = 0
872   access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
872   openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libdumbnet.so.1", O_RDONLY|O_CLOEXEC) = 3
872   read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0pR\0\0\0\0\0\0"..., 832) = 832
872   fstat(3, {st_mode=S_IFREG|0644, st_size=60936, ...}) = 0
872   mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0e88d61000
872   mmap(NULL, 2164240, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0e87937000
872   mprotect(0x7f0e87944000, 2093056, PROT_NONE) = 0
872   mmap(0x7f0e87b43000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xc000) = 0x7f0e87b43000
872   mmap(0x7f0e87b46000, 5648, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0e87b46000
872   close(3)                          = 0
872   access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
872   openat(AT_FDCWD, "/lib/x86_64-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
872   read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\"\0\0\0\0\0\0"..., 832) = 832
872   fstat(3, {st_mode=S_IFREG|0644, st_size=31680, ...}) = 0
872   mmap(NULL, 2128864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0e8772f000
872   mprotect(0x7f0e87736000, 2093056, PROT_NONE) = 0
872   mmap(0x7f0e87935000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f0e87935000
872   close(3)                          = 0
872   access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
872   openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libicui18n.so.60", O_RDONLY|O_CLOEXEC) = 3
872   read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\352\f\0\0\0\0\0"..., 832) = 832
872   fstat(3, {st_mode=S_IFREG|0644, st_size=2754872, ...}) = 0
872   mmap(NULL, 4853152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0e8728e000
872   mprotect(0x7f0e87520000, 2093056, PROT_NONE) = 0
872   mmap(0x7f0e8771f000, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x291000) = 0x7f0e8771f000
872   close(3)                          = 0
872   access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
872   openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libicuuc.so.60", O_RDONLY|O_CLOEXEC) = 3
872   read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\v\6\0\0\0\0\0"..., 832) = 832
872   fstat(3, {st_mode=S_IFREG|0644, st_size=1792008, ...}) = 0
872   mmap(NULL, 3894144, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0e86ed7000
872   mprotect(0x7f0e8707a000, 2093056, PROT_NONE) = 0
872   mmap(0x7f0e87279000, 81920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a2000) = 0x7f0e87279000
872   mmap(0x7f0e8728d000, 2944, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0e8728d000
872   close(3)                          = 0
872   access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
872   openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libssl.so.1.1", O_RDONLY|O_CLOEXEC) = 3
872   read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240w\1\0\0\0\0\0"..., 832) = 832
872   fstat(3, {st_mode=S_IFREG|0644, st_size=433760, ...}) = 0
872   mmap(NULL, 2529304, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0e86c6d000
872   mprotect(0x7f0e86ccd000, 2097152, PROT_NONE) = 0
872   mmap(0x7f0e86ecd000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x60000) = 0x7f0e86ecd000
872   close(3)                          = 0
872   access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
872   openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1", O_RDONLY|O_CLOEXEC) = 3
872   read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\220\6\0\0\0\0\0"..., 832) = 832
872   fstat(3, {st_mode=S_IFREG|0644, st_size=2575848, ...}) = 0
872   mmap(NULL, 4685184, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0e867f5000
872   mprotect(0x7f0e86a42000, 2097152, PROT_NONE) = 0
872   mmap(0x7f0e86c42000, 163840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x24d000) = 0x7f0e86c42000
872   mmap(0x7f0e86c6a000, 11648, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0e86c6a000
872   close(3)                          = 0
872   access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
872   openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
872   read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300*\0\0\0\0\0\0"..., 832) = 832
872   fstat(3, {st_mode=S_IFREG|0644, st_size=96616, ...}) = 0
872   mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0e88d5f000
872   mmap(NULL, 2192432, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0e865dd000
872   mprotect(0x7f0e865f4000, 2093056, PROT_NONE) = 0
872   mmap(0x7f0e867f3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7f0e867f3000
872   close(3)                          = 0
872   access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
872   openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpcre.so.3", O_RDONLY|O_CLOEXEC) = 3
872   read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \25\0\0\0\0\0\0"..., 832) = 832
872   fstat(3, {st_mode=S_IFREG|0644, st_size=464824, ...}) = 0
872   mmap(NULL, 2560264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0e8636b000
872   mprotect(0x7f0e863db000, 2097152, PROT_NONE) = 0
872   mmap(0x7f0e865db000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x70000) = 0x7f0e865db000
872   close(3)                          = 0
872   access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
872   openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3
872   read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\303\10\0\0\0\0\0"..., 832) = 832
872   fstat(3, {st_mode=S_IFREG|0644, st_size=1615312, ...}) = 0
872   mmap(NULL, 3723296, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0e85fdd000
872   mprotect(0x7f0e8615b000, 2097152, PROT_NONE) = 0
872   mmap(0x7f0e8635b000, 49152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17e000) = 0x7f0e8635b000
872   mmap(0x7f0e86367000, 12320, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0e86367000
872   close(3)                          = 0
872   access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
872   openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
872   read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\272\0\0\0\0\0\0"..., 832) = 832
872   fstat(3, {st_mode=S_IFREG|0644, st_size=1700792, ...}) = 0
872   mmap(NULL, 3789144, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0e85c3f000
872   mprotect(0x7f0e85ddc000, 2093056, PROT_NONE) = 0
872   mmap(0x7f0e85fdb000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19c000) = 0x7f0e85fdb000
872   close(3)                          = 0
872   access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
872   openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libicudata.so.60", O_RDONLY|O_CLOEXEC) = 3
872   read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\4\0\0\0\0\0\0"..., 832) = 832
872   fstat(3, {st_mode=S_IFREG|0644, st_size=26904264, ...}) = 0
872   mmap(NULL, 28999696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0e84096000
872   mprotect(0x7f0e85a3e000, 2093056, PROT_NONE) = 0
872   mmap(0x7f0e85c3d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19a7000) = 0x7f0e85c3d000
872   close(3)                          = 0
872   mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0e88d5d000
872   mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0e88d5b000
872   arch_prctl(ARCH_SET_FS, 0x7f0e88d5bbc0) = 0
872   mprotect(0x7f0e88133000, 16384, PROT_READ) = 0
872   mprotect(0x7f0e85c3d000, 4096, PROT_READ) = 0
872   mprotect(0x7f0e85fdb000, 4096, PROT_READ) = 0
872   mprotect(0x7f0e867f3000, 4096, PROT_READ) = 0
872   mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0e88d59000
872   mprotect(0x7f0e8635b000, 40960, PROT_READ) = 0
872   mprotect(0x7f0e88356000, 4096, PROT_READ) = 0
872   mprotect(0x7f0e865db000, 4096, PROT_READ) = 0
872   mprotect(0x7f0e87d4a000, 4096, PROT_READ) = 0
872   mprotect(0x7f0e86c42000, 122880, PROT_READ) = 0
872   mprotect(0x7f0e86ecd000, 16384, PROT_READ) = 0
872   mprotect(0x7f0e87279000, 77824, PROT_READ) = 0
872   mprotect(0x7f0e8771f000, 61440, PROT_READ) = 0
872   mprotect(0x7f0e87935000, 4096, PROT_READ) = 0
872   mprotect(0x7f0e87b43000, 8192, PROT_READ) = 0
872   mprotect(0x7f0e8866f000, 4096, PROT_READ) = 0
872   mprotect(0x7f0e888f5000, 73728, PROT_READ) = 0
872   mprotect(0x7f0e88b34000, 73728, PROT_READ) = 0
872   mprotect(0x555b202eb000, 4096, PROT_READ) = 0
872   mprotect(0x7f0e88d6e000, 4096, PROT_READ) = 0
872   munmap(0x7f0e88d65000, 36690)     = 0
872   set_tid_address(0x7f0e88d5be90)   = 872
872   set_robust_list(0x7f0e88d5bea0, 24) = 0
872   rt_sigaction(SIGRTMIN, {sa_handler=0x7f0e88142cb0, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f0e8814f890}, NULL, 8) = 0
872   rt_sigaction(SIGRT_1, {sa_handler=0x7f0e88142d50, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f0e8814f890}, NULL, 8) = 0
872   rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
872   prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
872   brk(NULL)                         = 0x555b21de0000
872   brk(0x555b21e01000)               = 0x555b21e01000
872   openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/charset.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
872   stat("/etc/vmware-tools/tools.conf", {st_mode=S_IFREG|0644, st_size=479, ...}) = 0
872   openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY) = 3
872   fstat(3, {st_mode=S_IFREG|0644, st_size=2995, ...}) = 0
872   read(3, "# Locale name alias data base.\n#"..., 4096) = 2995
872   read(3, "", 4096)                 = 0
872   close(3)                          = 0
872   futex(0x7f0e88670f38, FUTEX_WAKE_PRIVATE, 2147483647) = 0
872   openat(AT_FDCWD, "/etc/vmware-tools/tools.conf", O_RDONLY) = 3
872   fstat(3, {st_mode=S_IFREG|0644, st_size=479, ...}) = 0
872   read(3, "[logging]\n# Turns on logging glo"..., 4096) = 479
872   read(3, "", 4096)                 = 0
872   futex(0x7f0e88670f38, FUTEX_WAKE_PRIVATE, 2147483647) = 0
872   futex(0x7f0e88670f38, FUTEX_WAKE_PRIVATE, 2147483647) = 0
872   close(3)                          = 0
872   prlimit64(0, RLIMIT_CORE, NULL, {rlim_cur=0, rlim_max=RLIM64_INFINITY}) = 0
872   prlimit64(0, RLIMIT_CORE, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}, NULL) = 0
872   umask(000)                        = 022
872   write(2, "Error -107 cannot open connectio"..., 35) = 35
872   exit_group(-107)                  = ?
872   +++ exited with 149 +++
@lousybrit

This comment has been minimized.

Copy link

@lousybrit lousybrit commented May 8, 2018

Are you sure you have the feature enabled?
I only get this error if the settings for the Shared Folders feature are disabled.
For Workstation Menu VM -> Settings -> Options tab -> Shared Folders.
Modify the setting for "Disabled" to "Always Enabled"
Hit OK button.

The Shared Folders should automatically mount for you. So recheck the mount in the guest after this.

Can verify with the VM config file with the extension ".vmx " with the following line
isolation.tools.hgfs.disable = "TRUE"

If it is not the above, then somethiing odd is set up in your Linxu environment.

Steve

@suntong

This comment has been minimized.

Copy link
Author

@suntong suntong commented May 8, 2018

Oh, I'm so~~~ sorry. I turned it on, and checked it before, I swear.

Yeah, it's working now. Thanks a lot everyone, sorry for bothering you.

@suntong suntong closed this May 8, 2018
@suntong

This comment has been minimized.

Copy link
Author

@suntong suntong commented May 8, 2018

The Shared Folders should automatically mount for you. . .
Can verify with the VM config file with the extension ".vmx " with the following line
isolation.tools.hgfs.disable = "TRUE"

I don't quite get above -- I've rechecked the settings for the Shared Folders feature, AOK. However,

  • My VM config has: isolation.tools.hgfs.disable = "FALSE". Why need to disable it to make things work?
  • The Shared Folders is not automatically mount for me. The mount in the guest does not seems to have it by default.
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=1408180k,nr_inodes=352045,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=287136k,mode=755)
/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=24,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=15928)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
vmware-vmblock on /run/vmblock-fuse type fuse.vmware-vmblock (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other)
tmpfs on /run/user/9999 type tmpfs (rw,nosuid,nodev,relatime,size=287132k,mode=700,uid=xxx,gid=xxy)
@lousybrit

This comment has been minimized.

Copy link

@lousybrit lousybrit commented May 8, 2018

The vmx file setting I mentioned, if set to "TRUE" would indicate that the feature is in fact disabled. I mentioned it only for verification for the Shared Folders feature state.
If the disable setting is set to FALSE as you mention then the feature is enabled. It is reverse logic just to be confusing. Sorry.
You don't change the .vmx file setting manually unless your VM is powered off and you don't want to or can't use the UI. The UI is the preferred and expected way to enable/disable the feature and add/remove shares and modify their properties.

You stated that it was working. However, now you add that if you use the UI and disable and enable the shared folders feature, it now doesn't work at all? Or do you mean that the mount doesn't appear and be listed by running "mount" in a terminal shell after the UI enabled the feature?

Steve

@suntong

This comment has been minimized.

Copy link
Author

@suntong suntong commented May 8, 2018

Oh, sorry for the confusing.

Answering questions one by one.

I was tweaking the vmx file setting manually previously, while my VM is powered off and I've even closed it from my VMWare, then reopen it. However, there are still other VM running at the same time, so I suspect that when VMWare was completely closed (instead of my new VM only), the share get disabled. That's my suspicion why the Shared Folders feature was enabled when I check it, but disabled now. Any way.

I was saying,

  • Now the Shared Folders feature is enabled, but
  • The Shared Folders is not automatically mount for me.

Only after manually mount it with the command you gave me, when I can see that Shared mount.

not a big deal but just want to be clear.

@lousybrit

This comment has been minimized.

Copy link

@lousybrit lousybrit commented May 8, 2018

That is odd.
If you run
ps aux | grep "vmtoolsd"

Does it list any processes?
There should be 2.

Just to clarify.
You have the VM up and running, from the UI disable Shared Folders hit OK, go back to the UI enable Shared Folders and hit OK. You don't see any error dialog messages pop up? In the Ubuntu VM mount does not list the /mnt/hgfs and doing an ls -al /mnt/hgfs shows an empty folder?

Is that correct?
If you then manually mount the shared folder as mentioned it succeeds and the shares appear under /mnt/hgfs?

Steve

@suntong

This comment has been minimized.

Copy link
Author

@suntong suntong commented May 8, 2018

You have the VM up and running, from the UI disable Shared Folders hit OK, go back to the UI enable Shared Folders and hit OK. You don't see any error dialog messages pop up?

Yep.

In the Ubuntu VM mount does not list the /mnt/hgfs

Now it is there, and in my mount and df output as well. Thinking that I might have mounted it manually previously, so I remove the mount and tried above steps again. and the /mnt/hgfs is mounted properly again.

So, what was the problem?

The Shared Folders is not automatically mounted when system initially booted up.

  • reboot the VM
  • login after reboot
  • do mount and df
  • the /mnt/hgfs is not in the output (not mounted)

Repeat the steps you mentioned above, the /mnt/hgfs is mounted properly again.

I first thought I don't have that /mnt/hgfs entry in my /etc/fstab, but then realized that your above steps don't need it there either.

Again, just want to be clear, not a big deal to me at all.

@lousybrit

This comment has been minimized.

Copy link

@lousybrit lousybrit commented May 8, 2018

For automatic mount on boot, you can save yourself from having to go through the UI steps by adding an entry to fstab. I have the following:
vmhgfs-fuse /mnt/hgfs fuse defaults,allow_other 0 0

@suntong suntong changed the title Error -107 cannot open connection! when mounting Mounting the shared folder as vmhgfs under Ubuntu 18.04 bionic May 9, 2018
@prusswan

This comment has been minimized.

Copy link

@prusswan prusswan commented Sep 24, 2018

I had an old line for automounting /mnt/hgfs, but after some update in 16.04 it just stopped working, and dropping the system to emergency mode on every boot. The current entry from @lousybrit fixed that.

@paulsm4

This comment has been minimized.

Copy link

@paulsm4 paulsm4 commented Oct 30, 2018

This syntax worked for me:
vmhgfs-fuse .host:/ /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other

@zoneyang

This comment has been minimized.

Copy link

@zoneyang zoneyang commented Dec 19, 2018

You should change your mount command format:
mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs

to the FUSE mount
/usr/bin/vmhgfs-fuse .host:/ /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other

If you run the above as root either sudo or su you should have the mount appear as before for all users.

Steve

I have set isolation.tools.hgfs.disable = "FALSE", but the follow code doesn't work for me.
vmhgfs-fuse .host:/ /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other
and return:
Error -107 cannot open connection!

my settting in vmx is:

isolation.tools.hgfs.disable = "FALSE"
sharedFolder0.present = "TRUE"
sharedFolder0.enabled = "TRUE"
sharedFolder0.readAccess = "TRUE"
sharedFolder0.writeAccess = "TRUE"
sharedFolder0.hostPath = "E:\work"
sharedFolder0.guestName = "work"
sharedFolder0.expiration = "never"
sharedFolder.maxNum = "1"
@suntong

This comment has been minimized.

Copy link
Author

@suntong suntong commented Dec 19, 2018

Please read the previous answer(s) before asking questions, especially,

Are you sure you have the feature enabled?
I only get this error if the settings for the Shared Folders feature are disabled.
For Workstation Menu VM -> Settings -> Options tab -> Shared Folders.
Modify the setting for "Disabled" to "Always Enabled"
Hit OK button.

@zoneyang

This comment has been minimized.

Copy link

@zoneyang zoneyang commented Dec 19, 2018

Please read the previous answer(s) before asking questions, especially,

Are you sure you have the feature enabled?
I only get this error if the settings for the Shared Folders feature are disabled.
For Workstation Menu VM -> Settings -> Options tab -> Shared Folders.
Modify the setting for "Disabled" to "Always Enabled"
Hit OK button.

Yes, I have tried, but the problem also came out.

@lousybrit

This comment has been minimized.

Copy link

@lousybrit lousybrit commented Dec 20, 2018

If you see

Error -107 cannot open connection!

Then this means that the server is not responding.
So, a question or more:

  • DId you edit the vmx file directly?
  • Did you have the VM powered off when you did this? Or suspended at a minimum.
  • Why not simply use the UI and shared folders setting to do this? That way you can do this with the VM powered on and running.
  • If you edited the setting while the VM was running, the setting will be not read and lost. The VMX settings will be read only on the VM start up either power on or resume.
  • If you do not have an entry in the fstab for the Linux VM modifying the Shared Folders setting from off to on with a FUSE client can go unnoticed and the mount might not be created. This is a known issue we are fixing. So use a fstab entry if you want consistency of Shared Folder mounts that persist across system reboot.

Here is the text from the other thread about fstab and shared folder mounts:
There are 2 ways to specify the Shared Folders mounts persistently in /etc/fstab
Below there are both samples /etc/fstab line to mount a FUSE vmhgfs export.

Method 1: Specifying the file system

Replace with vmhgfs-fuse.
Replace with the local file system on which the exported directory is mounted, which default replacement is to use /mnt/hgfs
Replace with fuse.
e.g.
vmhgfs-fuse /mnt/hgfs fuse defaults,allow_other 0 0

Method 2: Specifying the remote server and share

:</remote/export> </local/directory>
Replace with the hostname .host the shared folders name of the host server exporting the hosts file system.
Replace </remote/export> with the path to the exported directory which defaults to/or you can use the /share-name-you-created.
Replace </local/directory> with the local file system on which the exported directory is mounted, which defaults to /mnt/hgfs.
Replace with fuse.vmhgfs-fuse.
Eg.
.host:/ /mnt/hgfs fuse.vmhgfs-fuse defaults,allow_other 0 0

Final diagnositic test to run from a terminal window:
/usr/bin/vmware-hgfsclient
What does it report? If the shared folder you have added is not shown or nothing is shown the host server is likely not enabled.

Hope that helps.
Steve

@tbl0605

This comment has been minimized.

Copy link

@tbl0605 tbl0605 commented Mar 20, 2019

This syntax also worked for me:
vmhgfs-fuse .host:/ /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other

BUT I first had to be sure that /mnt/hgfs was totally empty (I created a directory /mnt/hgfs/myshare for my tests) or my Ubuntu system booted into recovery mode without more explanation.
I just wanted to share that ;)

Thierry.

@babuilyas

This comment has been minimized.

Copy link

@babuilyas babuilyas commented Mar 29, 2019

Try this
sudo vmhgfs-fuse -o nonempty -o allow_other -o uid=? .host:/SUM /usr/sap/R3P/SUM
? = numeric id for user account. can be get by command "id" or "getent passwd"

@tbl0605

This comment has been minimized.

Copy link

@tbl0605 tbl0605 commented Apr 2, 2019

Try this
sudo vmhgfs-fuse -o nonempty -o allow_other -o uid=? .host:/SUM /usr/sap/R3P/SUM
? = numeric id for user account. can be get by command "id" or "getent passwd"

Thank you @babuilyas, your command worked well, I didn't know about the "nonempty" parameter.
Now in my /etc/fstab file, I've added following line and everything seems ok:

vmhgfs-fuse /mnt/hgfs fuse defaults,nonempty,allow_other 0 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
8 participants
You can’t perform that action at this time.