utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
26.51k stars 1.33k forks source link

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

Open fastfading opened 2 years ago

fastfading commented 2 years ago

https://github.com/utmapp/UTM/discussions/3625

winxp share folder don't work on mac m1

fastfading commented 2 years ago

related to https://github.com/utmapp/UTM/issues/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 commented 2 years ago

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 commented 2 years ago

@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 commented 2 years ago

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

viniavila commented 2 years ago

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 commented 2 years ago

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

Screen shot 2022-09-07 at 16 45 34

brunocastello commented 1 year ago

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

gingerbeardman commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

I did this to get connected to network drive

Mac

UTM/XP

network-drive

MrHDML commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 4 months ago

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 its trying to open.

Added-Glue commented 2 months ago

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 commented 1 month ago

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 commented 5 days ago

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"