Cannot copy from VM to host vmware Workstation

Hi, recently, I try to copy files from VM in vmware Workstation, and can’t do it. vmware tools is installed (open-vm-tools). Even shere folders are enabled, but, still doesn’t work.

Garuda-inxi:

garuda-inxi
System:
  Kernel: 6.9.3-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 14.1.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=e38ee0d4-0c6f-4526-9adf-c7cf1a1f23b5 rw rootflags=subvol=@
    quiet loglevel=3 ibt=off
  Desktop: Cinnamon v: 6.0.4 tk: GTK v: 3.24.42 wm: Muffin v: 6.0.1 tools:
    avail: cinnamon-screensaver,xautolock vt: 7 dm: LightDM v: 1.32.0
    Distro: Garuda base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: VIQYx v: INVALID
    serial: <superuser required> Chassis: type: 10 v: INVALID
    serial: <superuser required>
  Mobo: LENOVO model: VIQY0Y1 v: 31900006WIN8 STD MBR IPG
    serial: <superuser required> part-nu: LENOVO_BI_IDEAPAD
    uuid: <superuser required> UEFI: LENOVO v: 74CN26WW(107T22)
    date: 05/09/2013
Battery:
  ID-1: BAT1 charge: 42.4 Wh (100.0%) condition: 42.4/56.4 Wh (75.2%)
    power: 655.4 W volts: 12.2 min: 10.8 model: LENOVO PABAS0241231 type: Li-ion
    serial: <filter> status: full
CPU:
  Info: model: Intel Core i7-4700MQ bits: 64 type: MT MCP arch: Haswell
    gen: core 4 level: v3 note: check built: 2013-15 process: Intel 22nm
    family: 6 model-id: 0x3C (60) stepping: 3 microcode: 0x28
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 3079 high: 3400 min/max: 800/3400 scaling:
    driver: intel_cpufreq governor: performance cores: 1: 2109 2: 3400 3: 3400
    4: 2130 5: 3400 6: 3400 7: 3400 8: 3400 bogomips: 38314
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel 4th Gen Core Processor Integrated Graphics vendor: Lenovo
    driver: i915 v: kernel arch: Gen-7.5 process: Intel 22nm built: 2013 ports:
    active: VGA-1,eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:0416
    class-ID: 0300
  Device-2: NVIDIA GK107M [GeForce GT 750M] vendor: Lenovo driver: nvidia
    v: 470.239.06 alternate: nouveau,nvidia_drm non-free: series: 470.xx+
    status: legacy-active (EOL~2024-09-xx) arch: Kepler code: GKxxx
    process: TSMC 28nm built: 2012-2018 pcie: gen: 1 speed: 2.5 GT/s lanes: 8
    link-max: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:0fe4 class-ID: 0300
  Device-3: Realtek Lenovo EasyCamera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-1:2 chip-ID: 0bda:58b9
    class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.13 with: Xwayland v: 24.1.0 driver: X:
    loaded: modesetting,nvidia unloaded: nouveau alternate: fbdev,intel,nv,vesa
    dri: crocus gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2966x900 s-dpi: 96 s-size: 784x238mm (30.87x9.37")
    s-diag: 819mm (32.26")
  Monitor-1: VGA-1 pos: left model: LG (GoldStar) 20EN33 serial: <filter>
    built: 2013 res: 1600x900 hz: 60 dpi: 92 gamma: 1.2
    size: 443x249mm (17.44x9.8") diag: 508mm (20") ratio: 16:9 modes:
    max: 1600x900 min: 720x400
  Monitor-2: eDP-1 pos: primary,right model: LG Display 0x033a built: 2011
    res: 1366x768 hz: 60 dpi: 101 gamma: 1.2 size: 344x194mm (13.54x7.64")
    diag: 395mm (15.5") ratio: 16:9 modes: 1366x768
  API: EGL v: 1.5 hw: drv: intel crocus drv: nvidia platforms: device: 0
    drv: nvidia device: 2 drv: crocus device: 3 drv: swrast surfaceless:
    drv: swrast x11: drv: crocus inactive: gbm,wayland,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.1.0-arch1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel HD Graphics 4600 (HSW
    GT2) device-ID: 8086:0416 memory: 1.46 GiB unified: yes
  API: Vulkan v: 1.3.279 layers: 4 device: 0 type: integrated-gpu name: Intel
    HD Graphics 4600 (HSW GT2) driver: mesa intel v: 24.1.0-arch1.1
    device-ID: 8086:0416 surfaces: xcb,xlib device: 1 type: discrete-gpu
    name: NVIDIA GeForce GT 750M driver: nvidia v: 470.239.06
    device-ID: 10de:0fe4 surfaces: xcb,xlib device: 2 type: cpu name: llvmpipe
    (LLVM 17.0.6 256 bits) driver: mesa llvmpipe v: 24.1.0-arch1.1 (LLVM
    17.0.6) device-ID: 10005:0000 surfaces: xcb,xlib
Audio:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio
    vendor: Lenovo driver: snd_hda_intel v: kernel bus-ID: 00:03.0
    chip-ID: 8086:0c0c class-ID: 0403
  Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8c20
    class-ID: 0403
  Device-3: NVIDIA GK107 HDMI Audio vendor: Lenovo driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 8 link-max: lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:0e1b class-ID: 0403
  API: ALSA v: k6.9.3-zen1-1-zen status: kernel-api tools: N/A
  Server-1: PipeWire v: 1.0.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Qualcomm Atheros QCA8171 Gigabit Ethernet vendor: Lenovo
    driver: alx v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000
    bus-ID: 08:00.0 chip-ID: 1969:10a1 class-ID: 0200
  IF: enp8s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Broadcom BCM4352 802.11ac Dual Band Wireless Network Adapter
    vendor: Lenovo driver: wl v: kernel modules: bcma pcie: gen: 2 speed: 5 GT/s
    lanes: 1 bus-ID: 09:00.0 chip-ID: 14e4:43b1 class-ID: 0280
  IF: wlp9s0 state: down mac: <filter>
  IF-ID-1: vmnet1 state: unknown speed: N/A duplex: N/A mac: <filter>
  IF-ID-2: vmnet8 state: unknown speed: N/A duplex: N/A mac: <filter>
  Info: services: NetworkManager,systemd-timesyncd
Bluetooth:
  Device-1: Realtek Bluetooth 5.1 Radio driver: btusb v: 0.8 type: USB
    rev: 1.1 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-4.2:6
    chip-ID: 0bda:a725 class-ID: e001 serial: <filter>
  Report: btmgmt ID: hci1 rfk-id: 3 state: up address: <filter> bt-v: 5.1
    lmp-v: 10 status: discoverable: no pairing: no class-ID: 6c010c
  Device-2: Lite-On BCM20702A0 driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-7:5 chip-ID: 04ca:200b
    class-ID: fe01 serial: <filter>
  Report: ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 4.0 lmp-v: 6
    status: discoverable: no pairing: no class-ID: 6c010c
Drives:
  Local Storage: total: 2.27 TiB used: 1021.46 GiB (43.9%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Crucial model: CT500MX500SSD1
    size: 465.76 GiB block-size: physical: 4096 B logical: 512 B speed: 3.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 023 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT2000MX500SSD1
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 023 scheme: GPT
Partition:
  ID-1: / raw-size: 100.42 GiB size: 100.42 GiB (100.00%)
    used: 34.11 GiB (34.0%) fs: btrfs dev: /dev/sdb4 maj-min: 8:20
  ID-2: /boot/efi raw-size: 1.86 GiB size: 1.86 GiB (99.80%)
    used: 584 KiB (0.0%) fs: vfat dev: /dev/sdb1 maj-min: 8:17
  ID-3: /home raw-size: 309.96 GiB size: 309.96 GiB (100.00%)
    used: 181.52 GiB (58.6%) fs: btrfs dev: /dev/sdb5 maj-min: 8:21
  ID-4: /var/log raw-size: 100.42 GiB size: 100.42 GiB (100.00%)
    used: 34.11 GiB (34.0%) fs: btrfs dev: /dev/sdb4 maj-min: 8:20
  ID-5: /var/tmp raw-size: 100.42 GiB size: 100.42 GiB (100.00%)
    used: 34.11 GiB (34.0%) fs: btrfs dev: /dev/sdb4 maj-min: 8:20
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 15.35 GiB used: 133 MiB (0.8%) priority: 100
    comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 8 dev: /dev/zram0
  ID-2: swap-2 type: partition size: 20.12 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/sdb3 maj-min: 8:19
Sensors:
  System Temperatures: cpu: 61.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 16 GiB note: est. available: 15.35 GiB used: 11 GiB (71.7%)
  Processes: 349 Power: uptime: 6h 14m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 6.11 GiB services: csd-power,upowerd
    Init: systemd v: 255 default: graphical tool: systemctl
  Packages: pm: pacman pkgs: 1502 libs: 422 tools: octopi,paru Compilers:
    gcc: 14.1.1 Shell: garuda-inxi default: fish v: 3.7.1
    running-in: gnome-terminal inxi: 3.3.34
Garuda (2.6.26-1):
  System install date:     2024-02-04
  Last full system update: 2024-06-04
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       No/Undetected
  Failed units:            

Can you clarify how you are trying to copy it? What process are you using and what error are you getting?

If you are trying to use folder sharing, you might need to add this to /etc/fstab

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

Make sure the directory /mnt/hgfs exists.

There is no error. Drag and drop doesn’t work, copy-paste doesn’t work. With both processes I don’t get an error.

The task or process doesn’t work and there is no error.

For copy/paste work there are a few prerequisites:

  • You need to be running X, not wayland in the VM(and maybe on the host?, I would have to test the host part)
  • You need to have gtkmm3 installed in the VM
  • You need to have open-vm-tools installed in the vm
  • vmtoolsd needs to be enabled and running

Shared folders should work with both X and Wayland as long as you follow the above.

1 Like
vmhgfs-fuse    /mnt/hgfs    fuse    defaults,allow_other    0    0 ==> done

Can you help me with the above?

I remember that in other installations, there always be enabled the copy-paste end drag-n-drop in the vm.

It isn’t likely that Linux Mint is running Wayland unless you specifically enabled as I think that Wayland is still considered experimental in Mint.

From your inxi, it looks like you are also running X on the host.

On mint you need to install open-vm-tools-desktop

It is installed.
Cannot copy-paste in any direction.

Only I can drag-n-drop from host to vm, but not copy paste. From vm to host, nothing.

Run vmware-user and then test again. If it works, add it to whatever you use for automatically starting processes when you log in.

siegfried@siegfried-virtual-machine:~$ vmware-user
siegfried@siegfried-virtual-machine:~$ 
(vmware-user:1803): Gtk-WARNING **: 20:06:56.801: gtk_disable_setlocale() must be called before gtk_init()

Can copy text from vm to host, but not files.

That utility is just for clipboard sharing. For drag & drop functionality between host and guest through FUSE, use the vmware-vmblock-fuse utility.

You can read about these utilities, as well as the rest of the available utilities, here: https://wiki.archlinux.org/title/VMware/Install_Arch_Linux_as_a_guest#Utilities

From guest Linux Mint 21.3, it gives me this error to host Garuda-Cinnamnon:

image

vmware-vmblock-fuse enabled in guest.

Any help?

Did you start and enable the service?

sudo systemctl enable --now vmware-vmblock-fuse.service

This step is mentioned in the doc I linked right here: https://wiki.archlinux.org/title/VMware/Install_Arch_Linux_as_a_guest#Installation

siegfried@siegfried-virtual-machine:~$ sudo systemctl status vmware-vmblock-fuse.service
× vmware-vmblock-fuse.service - Open Virtual Machine Tools (vmware-vmblock-fuse)
     Loaded: loaded (/lib/systemd/system/vmware-vmblock-fuse.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2024-06-05 10:59:06 -04; 51s ago
    Process: 1802 ExecStart=/usr/bin/vmware-vmblock-fuse -d -f -o subtype=vmware-vmblock,default_permissions,allow_other /run/vmblock-fuse (code=exited, statu>
   Main PID: 1802 (code=exited, status=233/RUNTIME_DIRECTORY)
        CPU: 2ms

Jun 05 10:59:06 siegfried-virtual-machine systemd[1802]: vmware-vmblock-fuse.service: Failed at step RUNTIME_DIRECTORY spawning /usr/bin/vmware-vmblock-fuse: >
Jun 05 10:59:06 siegfried-virtual-machine systemd[1]: Started Open Virtual Machine Tools (vmware-vmblock-fuse).
Jun 05 10:59:06 siegfried-virtual-machine systemd[1]: vmware-vmblock-fuse.service: Main process exited, code=exited, status=233/RUNTIME_DIRECTORY
Jun 05 10:59:06 siegfried-virtual-machine systemd[1]: vmware-vmblock-fuse.service: Failed with result 'exit-code'.
lines 1-11/11 (END)

That gives me in the guest. Guest is Linux Mint 21.3

It looks like you have identified the issue. :grinning:

What was your method for installing VMware Tools in the guest?

OK, but I don’t get it. How I enable this in guest vm Linux Mint?

What was your method for installing VMware Tools in the guest?

Always is open-vm-tools.

How specifically did you install VMware Tools? Did you use the package manager? Or did you use the utility built in to VMware, for example as described in this tutorial: https://web.tecgraf.puc-rio.br/~bkassar/openFOAM/Mint_VMware/

It seems like the tools are not working properly, so perhaps you should try installing them another way.

I installed open-vm-tools. Infact, by default is installed, but I removed it and reinstalled it.