Parallels / vagrant-parallels

Vagrant Parallels Provider
https://parallels.github.io/vagrant-parallels
MIT License
996 stars 87 forks source link

Support guest tools updates on Windows again (for ARM also) #468

Closed mattlqx closed 8 months ago

mattlqx commented 8 months ago

Looks like at some point PTIAgent.exe was removed from the Parallels Desktop app bundle and so this plugin updating tools on Windows no longer works.

The current tools distribution for Windows is via ISOs in the app bundle now just as Linux and Mac are. We can copy the ISO and mount it with Powershell, then execute the updater.

Tested this with Parallels 19 and Windows 11 22h2 image with an outdated tools from earlier 19.x releases.

==> win11-22h2-arm: Booting VM...
==> win11-22h2-arm: Waiting for machine to boot. This may take a few minutes...
    win11-22h2-arm: SSH address: fe80::db6b:6e69:542c:9439:22
    win11-22h2-arm: SSH username: vagrant
    win11-22h2-arm: SSH auth method: private key
    win11-22h2-arm: Warning: Host unreachable. Retrying...
    win11-22h2-arm: Warning: Connection refused. Retrying...
==> win11-22h2-arm: Machine booted and ready!
==> win11-22h2-arm: Checking for Parallels Tools installed on the VM...
==> win11-22h2-arm: Parallels Tools installed on this VM are outdated! In most cases
==> win11-22h2-arm: this is fine but in rare cases it can cause things such as shared
==> win11-22h2-arm: folders to not work properly. If you see shared folder errors,
==> win11-22h2-arm: please update Parallels Tools within the virtual machine and
==> win11-22h2-arm: reload your VM.
==> win11-22h2-arm: Installing the proper version of Parallels Tools. This may take a few minutes...
==> win11-22h2-arm: Parallels Tools have been installed. Rebooting the VM...
==> win11-22h2-arm: Attempting graceful shutdown of VM...
==> win11-22h2-arm: Running 'pre-boot' VM customizations...
==> win11-22h2-arm: Booting VM...
==> win11-22h2-arm: Waiting for machine to boot. This may take a few minutes...
==> win11-22h2-arm: Machine booted and ready!

And when it came back up, tools install was good.