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

share folder don't work on mac m1 host , winxp x86 guest #3998

Open
fastfading opened this issue May 9, 2022 · 19 comments
Open

share folder don't work on mac m1 host , winxp x86 guest #3998

fastfading opened this issue May 9, 2022 · 19 comments

Comments

@fastfading
Copy link

#3625

winxp share folder don't work on mac m1

@fastfading
Copy link
Author

related to #311
this wiki https://github.com/utmapp/UTM/wiki/Useful-tips
is out of date

Open Services (run services.msc) and Stop & Disable the "Spice webdav proxy" service
Create a file called service.bat containing the following line and copy it to C:\Program Files\SPICE webdavd\ folder:
"C:\Program Files\SPICE webdavd\bin\spice-webdavd.exe" -p 80 --no-service
there is no "Spice webdav proxy" service
and there is no "C:\Program Files\SPICE webdavd\bin\spice-webdavd.exe"

@freebrowser1
Copy link

Weird.
On my VM it works flawlessly. (Windows 10 x64 Build 21H1, hosted on Mac M1) and these files do exist.
Are you sure you installed Spice tools ?
You should mount the spice tools image as a disk image so you can run it as a virtual CD on which the Spice installer exists.

@conath
Copy link
Contributor

conath commented May 9, 2022

@freebrowser1 This issue is about a Windows XP guest, not 10.

related to #311 this wiki https://github.com/utmapp/UTM/wiki/Useful-tips is out of date

Open Services (run services.msc) and Stop & Disable the "Spice webdav proxy" service Create a file called service.bat containing the following line and copy it to C:\Program Files\SPICE webdavd\ folder: "C:\Program Files\SPICE webdavd\bin\spice-webdavd.exe" -p 80 --no-service there is no "Spice webdav proxy" service and there is no "C:\Program Files\SPICE webdavd\bin\spice-webdavd.exe"

Should this be updated in the Wiki? @fastfading

@freebrowser1
Copy link

Maybe your XP is probably 32 bits and Spice tools is 64 bits ?

@viniavila
Copy link

related to #311 this wiki https://github.com/utmapp/UTM/wiki/Useful-tips is out of date

Open Services (run services.msc) and Stop & Disable the "Spice webdav proxy" service Create a file called service.bat containing the following line and copy it to C:\Program Files\SPICE webdavd\ folder: "C:\Program Files\SPICE webdavd\bin\spice-webdavd.exe" -p 80 --no-service there is no "Spice webdav proxy" service and there is no "C:\Program Files\SPICE webdavd\bin\spice-webdavd.exe"

In the FIRST STEP you must DOWNLOAD AND INSTALL SPICE WEBDAV PROXY.

Indeed, I did everything mentioned into this link and it doesn't worked to me =(

@gingerbeardman
Copy link

gingerbeardman commented Sep 7, 2022

I also did everything as I was supposed to but no joy.

  • spice webdavd 2.2 (the last version that will work on XP)
  • errors in the image below

Screen shot 2022-09-07 at 16 45 34

@brunocastello
Copy link

Same here with both XP and Windows 7. I cannot use WebDAV.

@gingerbeardman
Copy link

gingerbeardman commented Jan 22, 2023

I ended up using VMware Fusion: running latest ARM Windows due backwards compatibility (even Intel apps) and also remotely running some old VMs on a PC running ESXi.

@palmerj
Copy link

palmerj commented Apr 12, 2023

I can't even get networking going. Anyone else managed to get WInXP connected to the internet on Apple silicon. I'm using the WInXP_SP3 pro install disk and the UTM gallery VM template.

@gojsse
Copy link

gojsse commented Apr 14, 2023

I did this to get connected to network drive

  • Macbook Air m1 / Ventura 13.2.1
  • WinXP [en_windows_xp_professional_sp3_Nov_2013] with Spice [spice-guest-tools-0.164.3]

Mac

  • Go to System Settings > General
  • Turn File Sharing toggle On
  • Click the (!) icon next to the same toggle
  • Make a new shared folder for your macos using the + under Shared Folders on left. I used a single word for the name for simplicity.
  • Make sure your macos user has read/write access to said folder in the right column
  • Click the (options) button above right column
  • Enter a password that you'll need to enter in XP when connecting to this network folder
  • Hit ok
  • Now note the ip address on top of this panel (smb://192.168.1.121) you will need it to manually connect to your mac from xp.

UTM/XP

  • Open up your installed XP instance in UTM
  • I did this but not sure if I had to: top right of UTM window, click the shared folder icon and locate the new shared folder you created in the Mac steps
  • Go to My Computer
  • Go to Tools > Map Network Drive
  • Pick your favorite letter from the drive letter options
  • Enter \\192.168.1.121\your-shared-folder-name
  • Check box next to reconnect at login
  • Hit next
  • If all goes well it will ask you for the password you made in the Mac steps above
  • Enter your user of the mac (the one from Users/your-mac-name)
  • Enter that password you created from the Mac steps above
  • Hit finish or whatever the option is to be done
  • Hopefully it maps the drive into My Computer now

network-drive

@MrHDML
Copy link

MrHDML commented Jun 30, 2023

I can't even get networking going. Anyone else managed to get WInXP connected to the internet on Apple silicon. I'm using the WInXP_SP3 pro install disk and the UTM gallery VM template.

@palmerj I managed to get internet working on my M1 Max Mac Studio for Windows XP by having Network Mode set to Shared Network and choosing "virtio-net-pci" as the Emulated Network Card. After booting back into XP, I was prompted to install the drivers that were detected, now internet connection works fine.

@palmerj
Copy link

palmerj commented Jun 30, 2023

Cool thank you it seems to have worked. And I can now connect to the internet and browse the web (carefully!) with opera.

utm

Although I'm getting random crashes after the network card driver install.

In the system log I'm getting messages like Save Dump: The computer has rebooted from a bugcheck. The bugcheck was 0x00000d1.

@MrHDML do you also have the missing PCI device in the Device Manager?

@palmerj
Copy link

palmerj commented Jun 30, 2023

Would be really nice to get the spice tools going, at least for clipboard copy and paste functions between guest and host Has anyone got that working?

@konzentrat
Copy link

konzentrat commented Sep 17, 2023

I did this to get connected to network drive

  • Macbook Air m1 / Ventura 13.2.1
  • WinXP [en_windows_xp_professional_sp3_Nov_2013] with Spice [spice-guest-tools-0.164.3]

Mac

  • Go to System Settings > General
  • Turn File Sharing toggle On
  • Click the (!) icon next to the same toggle
  • Make a new shared folder for your macos using the + under Shared Folders on left. I used a single word for the name for simplicity.
  • Make sure your macos user has read/write access to said folder in the right column
  • Click the (options) button above right column
  • Enter a password that you'll need to enter in XP when connecting to this network folder
  • Hit ok
  • Now note the ip address on top of this panel (smb://192.168.1.121) you will need it to manually connect to your mac from xp.

UTM/XP

  • Open up your installed XP instance in UTM
  • I did this but not sure if I had to: top right of UTM window, click the shared folder icon and locate the new shared folder you created in the Mac steps
  • Go to My Computer
  • Go to Tools > Map Network Drive
  • Pick your favorite letter from the drive letter options
  • Enter \\192.168.1.121\your-shared-folder-name
  • Check box next to reconnect at login
  • Hit next
  • If all goes well it will ask you for the password you made in the Mac steps above
  • Enter your user of the mac (the one from Users/your-mac-name)
  • Enter that password you created from the Mac steps above
  • Hit finish or whatever the option is to be done
  • Hopefully it maps the drive into My Computer now

network-drive

This worked but in a different way.

I had to create an additional user on MacOS (Standard User). There I picked a simple password. It wouldn't work with a more complex password (yes I trippled checked if I entered it correctly). Also: it was like I wasn't able to choose a password in the file sharing settings in MacOS but rather I need to use the users password.

@mihaitodor
Copy link

mihaitodor commented May 14, 2024

related to #311 this wiki https://github.com/utmapp/UTM/wiki/Useful-tips is out of date

Open Services (run services.msc) and Stop & Disable the "Spice webdav proxy" service Create a file called service.bat containing the following line and copy it to C:\Program Files\SPICE webdavd\ folder: "C:\Program Files\SPICE webdavd\bin\spice-webdavd.exe" -p 80 --no-service there is no "Spice webdav proxy" service and there is no "C:\Program Files\SPICE webdavd\bin\spice-webdavd.exe"

There are some clues in this thread https://gitlab.gnome.org/GNOME/phodav/-/issues/19 but I'm really not sure how they managed to get past this error:

C:\Program Files\SPICE webdavd\bin>spice-webdavd.exe -p 80 --no-service

(spice-webdavd.exe:1780): phodav-?[1;31mERROR?[0m **: The system cannot find the file specified.

(spice-webdavd.exe:1780): phodav-?[1;33mWARNING?[0m **: map_drive error 67

I haven't messed around with Windows in a long time, but I guess there are ways to do something like strace to see which files it's trying to open.

@Added-Glue
Copy link

Added-Glue commented Jul 21, 2024

I wasn't able to get the Shared Folder to connect automatically in Windows XP, but after all the things I tried this easy solution worked:

All I had to do was to go to "My Network Places" and click on "Add a network place", then "Choose another network location". In the "Internet or network address field", I typed http://localhost:9843/
Bingo!

XP: spice-webdavd failed to start: "privileges to start system service"

@alcolmenar
Copy link

alcolmenar commented Sep 5, 2024

There are some clues in this thread https://gitlab.gnome.org/GNOME/phodav/-/issues/19 but I'm really not sure how they managed to get past this error:

C:\Program Files\SPICE webdavd\bin>spice-webdavd.exe -p 80 --no-service

(spice-webdavd.exe:1780): phodav-?[1;31mERROR?[0m **: The system cannot find the file specified.

(spice-webdavd.exe:1780): phodav-?[1;33mWARNING?[0m **: map_drive error 67

I haven't messed around with Windows in a long time, but I guess there are ways to do something like strace to see which files its trying to open.

To anyone who might stumble upon this, I was running into this error as well. I found that the template provided by UTM for a Windows XP VM under a Mac M1 had the architecture set as x86_64. When I changed this to i386 and reinstalled windows, I was able to share a directory through WebDAV correctly using UTM 4.5.4, its latest UTM tools, and spice-webdavd 2.2 (part of UTM tools).

Hopefully this helps anyone who might be struggling to figure what's going on

@juherr
Copy link

juherr commented Sep 30, 2024

I had the same issue but succeeded in solving it.

As specified previously, WinXP doesn't allow you to use a port different to 80.
Another source providing the XP limitations: https://www.webdavsystem.com/server/access/windows/map_drive/

First, the server must be set up with port 80 instead of 9843. Follow instruction from
https://gitlab.gnome.org/GNOME/phodav/-/issues/19#note_1434113%5D

Then replace the map-drive.bat by

net use * http://localhost/DavWWWRoot/

REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\##localhost#DavWWWRoot" /v  "_LabelFromReg" /t REG_SZ /d "Spice client"

@gingerbeardman
Copy link

gingerbeardman commented Oct 30, 2024

Another hint is that macOS ships with SMB1 disabled, so you need to:

  1. edit /etc/nsmb.conf eg. sudo nano /etc/nsmb.conf (password required to edit this file)
  2. make sure protocol_vers_map=7 for SMB1
  3. and comment out # port445=no_netbios also for SMB1

More info at: https://support.apple.com/en-us/HT211927

This was you can share a folder in XP and it will show up in macOS network browser.

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