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

[bug] Unable to copy files from host to guest when Fedora as guest #427

Closed
suiahae opened this issue May 23, 2020 · 7 comments
Closed

[bug] Unable to copy files from host to guest when Fedora as guest #427

suiahae opened this issue May 23, 2020 · 7 comments

Comments

@suiahae
Copy link

suiahae commented May 23, 2020

Hello VMware Development Team,

I have encountered the problem "Cannot copy files from host to Fedora guest". My laptop running latest Windows 10 Pro 1909 Build 18363.836 and VMware Workstation 15.52 build-15785246 and guest is Fedora 32 with Gnome 3.36.

As we all know, there are two ways to copy the host file to the virtual machine, namely: No.1"drag the file to the virtual machine" and No.2"just copy and paste".

When i try method No.2, It said "No such file or directory" as follows
image
And the folder(/tem/VMwareDnD/SmzgBG) is empty indeed.
image


When i try method No.1, there will be a transparent program named "vmware-user" running(No icon, like this).
image
Then, if I switch to another interface, the desktop will definitely freeze soon.

And I think the reason for "Desktop keeps freezing" is that "vmware-user" cannot exit from "File Copy" because "File Copy" cannot be completed.

@suiahae
Copy link
Author

suiahae commented May 23, 2020

I think #176 (GNOME desktop freezing on VMware Workstation Pro for Windows host and Fedora guest (likely due to 3D acceleration)) is related.

@suiahae suiahae changed the title Unable to copy files from host to guest when Fedora as guest [bug] Unable to copy files from host to guest when Fedora as guest May 23, 2020
@johnwvmw
Copy link
Contributor

The vmblock enables dragging or copying files between host and guest in a Fusion or Workstation virtual environment.

The service is available as part of the open-vm-tools packages on Fedora, but the service is not enabled by default. DnD and copy/paste between host and guest is disabled when the VM is on a vSphere host..

For WorkStation hosts, It is simply a matter of enabling and starting the vmblock-fuse service.

systemctl enable run-vmblock\x2dfuse.mount

systemctl start run-vmblock\x2dfuse.mount

systemctl status -l run-vmblock\x2dfuse.mount

Once enabled, the service will be started automatically when the Fedora VM is booted.

@suiahae
Copy link
Author

suiahae commented May 25, 2020

The vmblock enables dragging or copying files between host and guest in a Fusion or Workstation virtual environment.

The service is available as part of the open-vm-tools packages on Fedora, but the service is not enabled by default. DnD and copy/paste between host and guest is disabled when the VM is on a vSphere host..

For WorkStation hosts, It is simply a matter of enabling and starting the vmblock-fuse service.

systemctl enable run-vmblock\x2dfuse.mount

systemctl start run-vmblock\x2dfuse.mount

systemctl status -l run-vmblock\x2dfuse.mount

Once enabled, the service will be started automatically when the Fedora VM is booted.

Thank for your help.
These commands can be allowed by adding "\" before the "\" of the command, like this:

systemctl enable run-vmblock\\x2dfuse.mount
systemctl start run-vmblock\\x2dfuse.mount
systemctl status -l run-vmblock\\x2dfuse.mount

And copying files by method2(just copy and paste) can run normally.

But "dragging to copy files" still cannot run successfully, besides the gnome desktop will still freeze too.
:(

@johnwvmw
Copy link
Contributor

I apologize, I did not take notice that the "//'" was changed to a single "/" when I copied my response to this issue. I am happy that you caught that.

Please switch from the default Wayland X protocol to X11 protocol.
When logging onto the desktop, click on the small menu in the lower right corner of the logon screen and select "Gnome on Xorg". Please lets the tools team know if this resolves the drag-n-drop problems that you have been experiencing.

Switching to X11 protocol may also resolve the desktop freeze. Please take a look at issue #417 for details. If the freeze should continue, please open a separate issue to be used to track that problem.

Thanks

@suiahae
Copy link
Author

suiahae commented May 25, 2020

I apologize, I did not take notice that the "//'" was changed to a single "/" when I copied my response to this issue. I am happy that you caught that.

Please switch from the default Wayland X protocol to X11 protocol.
When logging onto the desktop, click on the small menu in the lower right corner of the logon screen and select "Gnome on Xorg". Please lets the tools team know if this resolves the drag-n-drop problems that you have been experiencing.

Switching to X11 protocol may also resolve the desktop freeze. Please take a look at issue #417 for details. If the freeze should continue, please open a separate issue to be used to track that problem.

Thanks

It works!! Thank you very much!

@johnwvmw
Copy link
Contributor

@suiahae Thanks for confirming. Closing this issue for now. Please feel free to re-open should you encounter other issues with the DnD copy/paste plugin.

@SinoAHpx
Copy link

I apologize, I did not take notice that the "//'" was changed to a single "/" when I copied my response to this issue. I am happy that you caught that.

Please switch from the default Wayland X protocol to X11 protocol. When logging onto the desktop, click on the small menu in the lower right corner of the logon screen and select " gnome on Xorg". Please lets the tools team know if this resolves the drag-n-drop problems that you have been experiencing.

Switching to X11 protocol may also resolve the desktop freeze. Please take a look at issue #417 for details. If the freeze should continue, please open a separate issue to be used to track that problem.

Thanks

for who's googling this:

just refer to official documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants