Tested on a Windows 11 ARM VM with VMWare on MacOS host, similar to https://github.com/hn-88/python-interactive-hdd-restore/blob/main/test-setup-on-mac.md
Clone the VM and decrypt the clone. Shut down the Windows VM, go to Virtual Machine → Create Full Clone, then turn off encryption on the clone.
Look in Keychain Access (Spotlight → “Keychain Access”). Search for “VMware”, “Fusion”, or the VM’s name. Look for an entry that appears to belong to the VM. Double-click it, tick Show password, and authenticate with your Mac login password. Paste that into the clone’s prompt.
With the Windows VM running, go to Virtual Machine → USB & Bluetooth in the Fusion menu bar. Pick your drive from the list and choose Connect.
Using Z: mapped to the host did not work initially, because the mapping was not carried over to the Administrator shell. Moreover, that would be slower. Hence, the direct USB mapping above was the way chosen.
Z: is most likely a VMware shared folder or a mapped network drive. Windows keeps drive mappings per logon session, and an elevated (Administrator) terminal is a different session from your normal one. So Explorer can see Z:, but the admin terminal can’t, and Python reports “No such file or directory”. Either re-map the drive inside the admin terminal:
net use Z: "\\vmware-host\Shared Folders\MyShare"
or use the UNC path,
python diskimage.py backup 1 "\\vmware-host\Shared Folders\MyShare\linuxim.gz"
No comments:
Post a Comment