windows icon indicating copy to clipboard operation
windows copied to clipboard

Unable to access shared folder "Windows cannot access \\host.lan\Data"

Open nigerninja opened this issue 1 year ago • 4 comments

Operating system

openSUSE Tumbleweed 6.9.7-1-default

Description

Thanks for the work on the project. Looking at using this with winapps, and currently stuck on getting access to the "\host.lan\data" shared directory.

I've looked at other similar issues close and open, enabled network discovery, disabled firewalls on both host and container to eliminate connectivity issues. I'm able to see the "data" folder in the "network" link, but fails to open.

I Would appreciate some help in getting this resolved. Thanks

Docker compose

name: "winapps" # Docker Compose Project Name.
volumes:
  data:
services:
  windows:
    image: dockurr/windows # https://hub.docker.com/r/dockurr/windows
    container_name: WinApps # Created Docker VM Name.
    environment:
      VERSION: "tiny10"
      RAM_SIZE: "3G" # RAM allocated to the Windows VM.
      CPU_CORES: "4" # CPU cores allocated to the Windows VM.
      DISK_SIZE: "64G" # Size of the primary hard disk.
      #DISK2_SIZE: "32G" # Uncomment to add an additional hard disk to the Windows VM. Ensure it is mounted as a volume below.
      USERNAME: "admin" # Uncomment to set a custom Windows username. The default is 'Docker'.
      PASSWORD: "admin" # Uncomment to set a password for the Windows user. There is no default password.
      HOME: "${HOME}/tiny" # Set path to Linux user home folder.
    privileged: true # Grant the Windows VM extended privileges.
    ports:
      - 8006:8006 # Map '8006' on Linux host to '8006' on Windows VM --> For VNC Web Interface @ http://127.0.0.1:8006.
      - 3389:3389/tcp # Map '3389' on Linux host to '3389' on Windows VM --> For Remote Desktop Protocol (RDP).
      - 3389:3389/udp # Map '3389' on Linux host to '3389' on Windows VM --> For Remote Desktop Protocol (RDP).
    stop_grace_period: 120s # Wait 120 seconds before sending SIGTERM when attempting to shut down the Windows VM.
    restart: on-failure # Restart the Windows VM if the exit code indicates an error.
    volumes:
      - data:/storage # Mount volume 'data' to use as Windows 'C:' drive.
      - ${HOME}/tiny:/shared # Mount Linux user home directory @ '\\host.lan\Data'.
      #- /path/to/second/hard/disk:/storage2 # Uncomment to mount the second hard disk within the Windows VM. Ensure 'DISK2_SIZE' is specified above.
      #- ./oem:/oem # Enables automatic post-install execution of 'oem/install.bat', applying Windows registry modifications contained within 'oem/RDPApps.reg'.
      #- /path/to/windows/install/media.iso:/custom.iso # Uncomment to use a custom Windows ISO. If specified, 'VERSION' (e.g. 'tiny11') will be ignored.
    devices:
      - /dev/kvm # Enable KVM.
      #- /dev/sdX:/disk1 # Uncomment to mount a disk directly within the Windows VM (Note: 'disk1' will be mounted as the main drive).
      #- /dev/sdY:/disk2 # Uncomment to mount a disk directly within the Windows VM (Note: 'disk2' and higher will be mounted as secondary drives).
    cap_add:
      - NET_ADMIN

Docker log

CONTAINER ID   IMAGE             COMMAND                  CREATED          STATUS         PORTS                                                                                                                             NAMES
c72eca5bcff0   dockurr/windows   "/usr/bin/tini -s /r…"   10 seconds ago   Up 9 seconds   0.0.0.0:3389->3389/tcp, :::3389->3389/tcp, 0.0.0.0:8006->8006/tcp, 0.0.0.0:3389->3389/udp, :::8006->8006/tcp, :::3389->3389/udp   WinApps
BdsDxe: loading Boot0004 "Windows Boot Manager" from HD(1,GPT,909847AD-485F-4597-9C7D-C7D1C3551EA3,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi
BdsDxe: loading Boot0004 "Windows Boot Manager" from HD(1,GPT,909847AD-485F-4597-9C7D-C7D1C3551EA3,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi
WinApps  | BdsDxe: starting Boot0004 "Windows Boot Manager" from HD(1,GPT,909847AD-485F-4597-9C7D-C7D1C3551EA3,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi
WinApps  | ❯ Windows started succesfully, visit http://localhost:8006/ to view the screen...

Screenshots (optional)

winapps1 winapps2 winapps3 winapps4

nigerninja avatar Jul 25 '24 10:07 nigerninja

  • ${HOME}/tiny:/storage/shared

lili121818 avatar Jul 27 '24 11:07 lili121818

  • ${HOME}/tiny:/storage/shared

Thanks for the response. Updated and retried, getting the same error and same situation.

nigerninja avatar Jul 29 '24 10:07 nigerninja

Any update on this? Having the same issue

themask888 avatar Aug 06 '24 13:08 themask888

i removed privileged: true , it works

JinDasheng avatar Aug 13 '24 03:08 JinDasheng