vagrant-parallels 2.4.2 → 2.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b5666de284879e9b3ea20a38dc3a132ad280a89dd6ec516ce21bbf8ff839a5c
4
- data.tar.gz: d1828f81d1ebcb19c8d0054372db475082a83b25ad23c7c0dba1fb07e74aa019
3
+ metadata.gz: 062102d2b68456eb430188395559c723101126db2e54bd6562ecfc6506141e59
4
+ data.tar.gz: 6363965855b78b1ac4c579c0073a5c9fae70a80c57ad20648c40f1ef8103f6c9
5
5
  SHA512:
6
- metadata.gz: 3d1f742e64b4fe8283cf110b4b9636291db21fca1686d92c38cc2376fe6b03cfa7a2e5c54a87ac16dab48052cf66e96f602dd920d860eb2886b83f21d52ff367
7
- data.tar.gz: 7b2c507dfc64f46a168b7ee32c26e9db23e74306be8f5ec733166c669a363a45dd2119fca1c953a2f7e938fbeef303e1cc0bb691c51d0043a0344fa6f8a3662e
6
+ metadata.gz: 716010b5a148531300d01c54b60839bc6ab87ece5e8bb38958c7efa82d2fdf1a56c9104ac7fb2adc3fbb8ca2e26c3927f558f371ac7c91aa938eaa4825e521df
7
+ data.tar.gz: 0fc64cb6ddfade425910f3992b90c3868caa3690c791fa4e5f54f2d2e54177d79e0e02e83df23ec00c8103eb3cf2331b482cb1720ad4f0b3bb46ae8d876c7114
data/CHANGELOG.md CHANGED
@@ -1,273 +1,344 @@
1
+
2
+ ## 2.4.4 (Feb 27, 2025)
3
+
4
+ IMPROVEMENTS:
5
+
6
+ - Add a check for prl_fsd and use that to mount if it exists.
7
+ [[GH-487](https://github.com/Parallels/vagrant-parallels/pull/487)]
8
+ - Updated the documentation to reflect the new version of the provider.
9
+ [[GH-488](https://github.com/Parallels/vagrant-parallels/pull/488)]
10
+
11
+ ## 2.4.3 (Feb 26, 2025)
12
+
13
+ IMPROVEMENTS:
14
+
15
+ - Add 'enterprise' edition support for Parallels CLI functionality check
16
+
1
17
  ## 2.4.2 (Feb 5, 2024)
2
18
 
3
19
  BUG FIXES:
4
- - Revert "use clonefile copy for macvm boxes"
20
+
21
+ - Revert "use clonefile copy for macvm boxes"
5
22
  [[GH-464](https://github.com/Parallels/vagrant-parallels/pull/464)]
23
+
6
24
  ## 2.4.1 (Oct 16, 2023)
25
+
7
26
  IMPROVEMENTS:
8
- - use clonefile copy for macvm boxes
27
+
28
+ - use clonefile copy for macvm boxes
9
29
  [[GH-459](https://github.com/Parallels/vagrant-parallels/pull/459)]
10
30
 
11
31
  BUG FIXES:
12
- - Bump activesupport from 6.1.7.3 to 6.1.7.5
32
+
33
+ - Bump activesupport from 6.1.7.3 to 6.1.7.5
13
34
  [[GH-457](https://github.com/Parallels/vagrant-parallels/pull/457)]
14
- - Don't try to call methdods on Nil
35
+ - Don't try to call methdods on Nil
15
36
  [[GH-456](https://github.com/Parallels/vagrant-parallels/pull/456)]
16
- - Add a doc note for releasing a new provider version
37
+ - Add a doc note for releasing a new provider version
17
38
  [[GH-452](https://github.com/Parallels/vagrant-parallels/pull/452)]
18
- - website: Remove unused images
39
+ - website: Remove unused images
19
40
  [[GH-450](https://github.com/Parallels/vagrant-parallels/pull/450)]
20
- - adding macos
41
+ - adding macos
21
42
  [[GH-447](https://github.com/Parallels/vagrant-parallels/pull/447)]
22
43
 
23
44
  ## 2.4.0 (May 22, 2023)
45
+
24
46
  IMPROVEMENTS:
25
- - Implement shared folder support for `.macvm` VMs
47
+
48
+ - Implement shared folder support for `.macvm` VMs
26
49
  [[GH-448](https://github.com/Parallels/vagrant-parallels/pull/448)]
27
50
 
28
51
  BUG FIXES:
29
- - Fix shared folder mount error on `.macvm` VMs
52
+
53
+ - Fix shared folder mount error on `.macvm` VMs
30
54
  [[GH-445](https://github.com/Parallels/vagrant-parallels/pull/445)]
31
55
 
32
56
  ## 2.3.1 (March 23, 2023)
57
+
33
58
  BUG FIXES:
34
- - Fix the detection of VM IP. Wait for the IP to become available to
59
+
60
+ - Fix the detection of VM IP. Wait for the IP to become available to
35
61
  avoid connection issues and Vagrant warnings.
36
62
  [[GH-440](https://github.com/Parallels/vagrant-parallels/issues/440)]
37
63
 
38
64
  ## 2.3.0 (March 22, 2023)
65
+
39
66
  IMPROVEMENTS:
40
- - Support fetching the VM IP using prlctl
67
+
68
+ - Support fetching the VM IP using prlctl
41
69
  [[GH-434](https://github.com/Parallels/vagrant-parallels/pull/434)].
42
- - Update gem dependensies and support Ruby 3.0
70
+ - Update gem dependensies and support Ruby 3.0
43
71
  [[GH-437](https://github.com/Parallels/vagrant-parallels/pull/437)],
44
72
  [[GH-439](https://github.com/Parallels/vagrant-parallels/pull/439)].
45
73
 
46
74
  BUG FIXES:
47
- - Fixes SSH access to `.macvm` VMs on Macs with Apple M-series chip
75
+
76
+ - Fixes SSH access to `.macvm` VMs on Macs with Apple M-series chip
48
77
  [[GH-435](https://github.com/Parallels/vagrant-parallels/issues/435)]
49
78
 
50
79
  ## 2.2.6 (December 19, 2022)
80
+
51
81
  BUG FIXES:
52
- - Fix the macOS VMs support on ARM-based Mac
82
+
83
+ - Fix the macOS VMs support on ARM-based Mac
53
84
  [[GH-429](https://github.com/Parallels/vagrant-parallels/pull/429)]
54
85
 
55
86
  ## 2.2.5 (February 22, 2022)
87
+
56
88
  BUG FIXES:
57
- - Fixed Parallels Tool installation on M1 hosts with arm64
89
+
90
+ - Fixed Parallels Tool installation on M1 hosts with arm64
58
91
  [[GH-416](https://github.com/Parallels/vagrant-parallels/pull/416)]
59
92
 
60
93
  ## 2.2.4 (August 18, 2021)
94
+
61
95
  BUG FIXES:
62
- - Fixed running the provisioner on "vagrant up --provision"
96
+
97
+ - Fixed running the provisioner on "vagrant up --provision"
63
98
  [[GH-402](https://github.com/Parallels/vagrant-parallels/pull/402)]
64
99
 
65
100
  ## 2.2.3 (July 14, 2021)
101
+
66
102
  BUG FIXES:
67
- - Fixed the compatibility with Vagrant 2.2.17
103
+
104
+ - Fixed the compatibility with Vagrant 2.2.17
68
105
  [[GH-399](https://github.com/Parallels/vagrant-parallels/pull/399)]
69
106
 
70
107
  ## 2.2.2 (June 23, 2021)
108
+
71
109
  BUG FIXES:
72
- - Fixed shared folder mount on the VM reboot
110
+
111
+ - Fixed shared folder mount on the VM reboot
73
112
  [[GH-391](https://github.com/Parallels/vagrant-parallels/pull/391)]
74
113
 
75
114
  ## 2.2.1 (April 14, 2021)
115
+
76
116
  BUG FIXES:
77
- - Fixed the compatibility with Vagrant 2.2.15
117
+
118
+ - Fixed the compatibility with Vagrant 2.2.15
78
119
  [[GH-386](https://github.com/Parallels/vagrant-parallels/pull/386)]
79
120
 
80
121
  ## 2.2.0 (March 3, 2021)
122
+
81
123
  IMPROVEMENTS:
82
- - Mount shared folders after manual VM reboot
124
+
125
+ - Mount shared folders after manual VM reboot
83
126
  [[GH-377](https://github.com/Parallels/vagrant-parallels/pull/377)]
84
127
 
85
128
  BUG FIXES:
86
- - Fixed mount of shared folders with non-ASCII symbols in the name
129
+
130
+ - Fixed mount of shared folders with non-ASCII symbols in the name
87
131
  [[GH-290](https://github.com/Parallels/vagrant-parallels/issues/290)]
88
132
 
89
133
  ## 2.1.0 (November 25, 2020)
134
+
90
135
  BUG FIXES:
91
- - Fixed the private network adapter workflow on macOS 11.0 Big Sur
136
+
137
+ - Fixed the private network adapter workflow on macOS 11.0 Big Sur
92
138
  [[GH-371](https://github.com/Parallels/vagrant-parallels/pull/371)]
93
- - Fixed the concurrency issue with box unregister in multi-vm environment
139
+ - Fixed the concurrency issue with box unregister in multi-vm environment
94
140
  [[GH-370](https://github.com/Parallels/vagrant-parallels/pull/370)]
95
- - Fixed the `vagrant package` with custom `Vagrantfile`
141
+ - Fixed the `vagrant package` with custom `Vagrantfile`
96
142
  [[GH-368](https://github.com/Parallels/vagrant-parallels/pull/368)]
97
143
 
98
144
  ## 2.0.1 (April 23, 2019)
145
+
99
146
  BUG FIXES:
100
- - Fixed the error message for host-only network collision
147
+
148
+ - Fixed the error message for host-only network collision
101
149
  [[GH-340](https://github.com/Parallels/vagrant-parallels/issues/340)]
102
150
 
103
151
  ## 2.0.0 (November 19, 2018)
152
+
104
153
  BREAKING CHANGES:
105
- - **Linked Clone feature is enabled by default.**
154
+
155
+ - **Linked Clone feature is enabled by default.**
106
156
  Now each time when you create a new virtual machine with `vagrant up` it is
107
157
  created as a linked clone of the box image (instead of the full clone, as it
108
158
  was before). Read more about it:
109
159
  [Full Clone vs Linked Clone](https://parallels.github.io/vagrant-parallels/docs/configuration.html#linked_clone).
110
- - **Dropped support of Parallels Desktop 10**. It reached
160
+ - **Dropped support of Parallels Desktop 10**. It reached
111
161
  [End-of-Life and End-of-Support](https://kb.parallels.com/eu/122533).
112
162
 
113
163
  ## 1.7.8 (November 18, 2017)
164
+
114
165
  BUG FIXES:
115
- - Fixed warning messages with Vagrant v2.0.1
166
+
167
+ - Fixed warning messages with Vagrant v2.0.1
116
168
  [[GH-311](https://github.com/Parallels/vagrant-parallels/issues/311)]
117
169
 
118
170
  ## 1.7.7 (October 15, 2017)
171
+
119
172
  BUG FIXES:
120
- - Fixed synced folder mounting on guests with Upstart (Ubuntu 14.*)
121
- [[GH-307](https://github.com/Parallels/vagrant-parallels/issues/307)]
122
173
 
174
+ - Fixed synced folder mounting on guests with Upstart (Ubuntu 14.*)
175
+ [[GH-307](https://github.com/Parallels/vagrant-parallels/issues/307)]
123
176
 
124
177
  ## 1.7.6 (July 31, 2017)
178
+
125
179
  BUG FIXES:
126
- - Fixed `vagrant up` failure if the box image was automatically renamed due
180
+
181
+ - Fixed `vagrant up` failure if the box image was automatically renamed due
127
182
  to the name conflict.
128
183
  [[GH-303](https://github.com/Parallels/vagrant-parallels/issues/303)]
129
184
 
130
-
131
185
  ## 1.7.5 (May 27, 2017)
186
+
132
187
  BUG FIXES:
133
- - Fixed compatibility with Vagrant v1.9.5+. `nokogiri` gem is defined as
188
+
189
+ - Fixed compatibility with Vagrant v1.9.5+. `nokogiri` gem is defined as
134
190
  a plugin runtime dependency.
135
191
  [[GH-297](https://github.com/Parallels/vagrant-parallels/issues/297)],
136
192
  [[GH-298](https://github.com/Parallels/vagrant-parallels/pull/298)]
137
193
 
138
194
  **NB!** To use the plugin with Vagrant v1.9.5 you should (re)install it with
139
195
  `NOKOGIRI_USE_SYSTEM_LIBRARIES` enabled:
196
+
140
197
  ```bash
141
- $ vagrant plugin uninstall vagrant-parallels
142
- $ NOKOGIRI_USE_SYSTEM_LIBRARIES=true vagrant plugin install vagrant-parallels
198
+ vagrant plugin uninstall vagrant-parallels
199
+ NOKOGIRI_USE_SYSTEM_LIBRARIES=true vagrant plugin install vagrant-parallels
143
200
  ```
144
201
 
145
-
146
202
  ## 1.7.4 (April 20, 2017)
203
+
147
204
  IMPROVEMENTS:
148
- - Make start action (`"vagrant up"`) run provisioners if VM is running.
205
+
206
+ - Make start action (`"vagrant up"`) run provisioners if VM is running.
149
207
  [[GH-294](https://github.com/Parallels/vagrant-parallels/pull/294)]
150
208
 
151
209
  BUG FIXES:
152
- - Properly handle `"paused"` VM state for up and halt actions.
210
+
211
+ - Properly handle `"paused"` VM state for up and halt actions.
153
212
  [[GH-295](https://github.com/Parallels/vagrant-parallels/pull/295)]
154
- - synced_folder: Escape special characters in Windows-specific guest paths.
213
+ - synced_folder: Escape special characters in Windows-specific guest paths.
155
214
  [[GH-296](https://github.com/Parallels/vagrant-parallels/pull/296)]
156
215
 
157
-
158
216
  ## 1.7.3 (February 28, 2017)
217
+
159
218
  BUG FIXES:
160
- - Fix exceptions related to `nokogiri` gem.
219
+
220
+ - Fix exceptions related to `nokogiri` gem.
161
221
  [[GH-291](https://github.com/Parallels/vagrant-parallels/issues/291)],
162
222
  [[GH-292](https://github.com/Parallels/vagrant-parallels/issues/292)]
163
223
 
164
-
165
224
  ## 1.7.2 (December 16, 2016)
225
+
166
226
  BUG FIXES:
167
- - Fix Parallels Tools update in Linux guests. Call `ptiagent-cmd` with `--install`,
168
- not `--info`. [[GH-286](https://github.com/Parallels/vagrant-parallels/pull/286)]
169
227
 
228
+ - Fix Parallels Tools update in Linux guests. Call `ptiagent-cmd` with `--install`,
229
+ not `--info`. [[GH-286](https://github.com/Parallels/vagrant-parallels/pull/286)]
170
230
 
171
231
  ## 1.7.1 (December 7, 2016)
232
+
172
233
  FEATURES:
173
- - **Guest capability for installing Parallels Tools in Windows.** Now it is
234
+
235
+ - **Guest capability for installing Parallels Tools in Windows.** Now it is
174
236
  possible to install/upgrade Parallels Tools in Windows guests using
175
237
  the provider option `update_guest_tools`. [[GH-284](https://github.com/Parallels/vagrant-parallels/pull/284)]
176
238
 
177
239
  BUG FIXES:
178
- - Fix issues of auto-updating Parallels Tools in Linux guests with Parallels Desktop 12+.
240
+
241
+ - Fix issues of auto-updating Parallels Tools in Linux guests with Parallels Desktop 12+.
179
242
  [[GH-283](https://github.com/Parallels/vagrant-parallels/pull/283)],
180
243
  [[GH-282](https://github.com/Parallels/vagrant-parallels/pull/282)],
181
244
  [[GH-281](https://github.com/Parallels/vagrant-parallels/pull/281)]
182
245
 
183
-
184
246
  ## 1.7.0 (November 15, 2016)
247
+
185
248
  BREAKING CHANGES:
186
- - **Dropped support of Parallels Desktop 8 and 9**. These versions have
249
+
250
+ - **Dropped support of Parallels Desktop 8 and 9**. These versions have
187
251
  reached their [End-of-Life and End-of-Support](https://kb.parallels.com/eu/122533).
188
- - **Removed customization options, which were previously deprecated:** [[GH-271](https://github.com/Parallels/vagrant-parallels/pull/271)]
189
- - "use_linked_clone" - use `linked_clone` instead.
190
- - "regen_box_uuid" - use `regen_src_uuid` instead.
191
- - "optimize_power_consumption".
252
+ - **Removed customization options, which were previously deprecated:** [[GH-271](https://github.com/Parallels/vagrant-parallels/pull/271)]
253
+ - "use_linked_clone" - use `linked_clone` instead.
254
+ - "regen_box_uuid" - use `regen_src_uuid` instead.
255
+ - "optimize_power_consumption".
192
256
 
193
257
  FEATURES:
194
- - **IPv6 Private Networks:** Private networking now supports IPv6.
258
+
259
+ - **IPv6 Private Networks:** Private networking now supports IPv6.
195
260
  This only works with Parallels Desktop 12 and higher.
196
261
  [[GH-273](https://github.com/Parallels/vagrant-parallels/pull/273)]
197
262
 
198
-
199
263
  ## 1.6.3 (July 11, 2016)
264
+
200
265
  DEPRECATIONS:
201
- - The following provider options were renamed:
202
- - `regen_box_uuid` was renamed to `regen_src_uuid`
203
- - `use_linked_clone` was renamed to `linked clone`
266
+
267
+ - The following provider options were renamed:
268
+ - `regen_box_uuid` was renamed to `regen_src_uuid`
269
+ - `use_linked_clone` was renamed to `linked clone`
204
270
 
205
271
  Old names are still supported, but will be removed in `vagrant-parallels` v1.7.0.
206
272
  [[GH-260](https://github.com/Parallels/vagrant-parallels/pull/260)]
207
273
 
208
274
  IMPROVEMENTS:
209
- - Allow to package linked clones with `vagrant package`. External disk images
275
+
276
+ - Allow to package linked clones with `vagrant package`. External disk images
210
277
  will be automatically copied, so the resulted box become a full-sized
211
278
  standalone VM. [[GH-262](https://github.com/Parallels/vagrant-parallels/pull/262)]
212
- - Handle the situation when host machine is not connected to Shared network.
279
+ - Handle the situation when host machine is not connected to Shared network.
213
280
  With Parallels Desktop 11.2.1+ Vagrant will connect it automatically. With earlier
214
281
  versions, the human-readable error message will be displayed.
215
282
  [[GH-266](https://github.com/Parallels/vagrant-parallels/pull/266)]
216
- - Disable home folder sharing by default (Parallels Desktop 11+).
283
+ - Disable home folder sharing by default (Parallels Desktop 11+).
217
284
  [[GH-257](https://github.com/Parallels/vagrant-parallels/pull/257)]
218
285
 
219
286
  BUG FIXES:
220
- - action/box_unregister: Fix `#recover` method for layered environments.
287
+
288
+ - action/box_unregister: Fix `#recover` method for layered environments.
221
289
  [[GH-261](https://github.com/Parallels/vagrant-parallels/pull/261)]
222
- - action/network: Fix an exception when option "Connect Mac to
290
+ - action/network: Fix an exception when option "Connect Mac to
223
291
  this network" is disabled. [[GH-268](https://github.com/Parallels/vagrant-parallels/pull/268)]
224
- - commands/snapshot: Add retries for snapshot commands to avoid `prlctl`
292
+ - commands/snapshot: Add retries for snapshot commands to avoid `prlctl`
225
293
  failures. [[GH-259](https://github.com/Parallels/vagrant-parallels/pull/259)]
226
294
 
227
-
228
295
  ## 1.6.2 (March 23, 2016)
296
+
229
297
  BUG FIXES:
230
- - Fix unsupported action error for `vagrant snapshot` commands [[GH-254](https://github.com/Parallels/vagrant-parallels/pull/254)]
298
+
299
+ - Fix unsupported action error for `vagrant snapshot` commands [[GH-254](https://github.com/Parallels/vagrant-parallels/pull/254)]
231
300
 
232
301
  IMPROVEMENTS:
233
- - action/destroy: Destroy suspended VMs without resuming
302
+
303
+ - action/destroy: Destroy suspended VMs without resuming
234
304
 
235
305
  ## 1.6.1 (January 13, 2016)
236
306
 
237
307
  BUG FIXES:
238
- - action/import: Fix `regenerate_src_uuid` option behavior in parallel run
308
+
309
+ - action/import: Fix `regenerate_src_uuid` option behavior in parallel run
239
310
  [[GH-241](https://github.com/Parallels/vagrant-parallels/pull/241)]
240
- - action/box_unregister: Use temporary lock file to prevent early unregister
311
+ - action/box_unregister: Use temporary lock file to prevent early unregister
241
312
  in parallel run [[GH-244](https://github.com/Parallels/vagrant-parallels/pull/244)]
242
- - action/network: Fix detection of the next virtual network ID [[GH-245](https://github.com/Parallels/vagrant-parallels/pull/245)]
243
-
313
+ - action/network: Fix detection of the next virtual network ID [[GH-245](https://github.com/Parallels/vagrant-parallels/pull/245)]
244
314
 
245
315
  ## 1.6.0 (December 24, 2015)
316
+
246
317
  BREAKING CHANGES:
247
318
 
248
- - The required Vagrant version is **1.8** or higher. It is caused by changes
319
+ - The required Vagrant version is **1.8** or higher. It is caused by changes
249
320
  in Vagrant plugin model.
250
321
 
251
322
  SUPPORT FOR VAGRANT FEATURES:
252
323
 
253
- - `vagrant port`: This command displays the list of forwarded ports from the
324
+ - `vagrant port`: This command displays the list of forwarded ports from the
254
325
  guest to the host
255
- - `vagrant snapshot`: This command can be used to checkpoint and restore
326
+ - `vagrant snapshot`: This command can be used to checkpoint and restore
256
327
  point-in-time snapshots [[GH-228](https://github.com/Parallels/vagrant-parallels/pull/228)]
257
328
 
258
329
  IMPROVEMENTS:
259
330
 
260
- - action/network: Handle a list of bridged NICs [[GH-233](https://github.com/Parallels/vagrant-parallels/pull/233)]
261
- - action/package: Package machines as plain VMs, not templates [[GH-227](https://github.com/Parallels/vagrant-parallels/pull/227)]
262
- - action/resume: Provisioners are run on VM resume
263
- - config: Rename option `use_linked_clone` to `linked_clone`
264
- - driver: Cache Parallels Desktop version lookup [[GH-234](https://github.com/Parallels/vagrant-parallels/pull/234)]
265
- - guest_cap/darwin: Parallels Tools auto-update is available for OS X (Darwin)
331
+ - action/network: Handle a list of bridged NICs [[GH-233](https://github.com/Parallels/vagrant-parallels/pull/233)]
332
+ - action/package: Package machines as plain VMs, not templates [[GH-227](https://github.com/Parallels/vagrant-parallels/pull/227)]
333
+ - action/resume: Provisioners are run on VM resume
334
+ - config: Rename option `use_linked_clone` to `linked_clone`
335
+ - driver: Cache Parallels Desktop version lookup [[GH-234](https://github.com/Parallels/vagrant-parallels/pull/234)]
336
+ - guest_cap/darwin: Parallels Tools auto-update is available for OS X (Darwin)
266
337
  guests [[GH-235](https://github.com/Parallels/vagrant-parallels/pull/235)]
267
338
 
268
339
  BUG FIXES:
269
340
 
270
- - action/forward_ports: Add parallel-safe lock to avoid collisions of
341
+ - action/forward_ports: Add parallel-safe lock to avoid collisions of
271
342
  forwarded ports in multi-machine env [[GH-226](https://github.com/Parallels/vagrant-parallels/pull/226)]
272
343
 
273
344
  ## Previous Versions
@@ -453,7 +453,8 @@ module VagrantPlugins
453
453
  linux_arm: 'prl-tools-lin-arm.iso',
454
454
  darwin: 'prl-tools-mac.iso',
455
455
  darwin_arm: 'prl-tools-mac-arm.iso',
456
- windows: 'PTIAgent.exe'
456
+ windows: 'prl-tools-win.iso',
457
+ windows_arm: 'prl-tools-win-arm.iso',
457
458
  }
458
459
  return nil unless iso_name[guest_os]
459
460
 
@@ -462,7 +463,14 @@ module VagrantPlugins
462
463
  iso_path = File.expand_path("./Contents/Resources/Tools/#{iso_name[guest_os]}",
463
464
  bundle_path.split("\n")[0])
464
465
 
465
- raise Errors::ParallelsToolsIsoNotFound, iso_path: iso_path unless File.exist?(iso_path)
466
+ unless File.exist?(iso_path)
467
+ if guest_os == :windows
468
+ # Fallback to exe tools package for older versions of Paralles
469
+ iso_path = File.expand_path("./Contents/Resources/Tools/PTIAgent.exe", bundle_path.split("\n")[0])
470
+ end
471
+
472
+ raise Errors::ParallelsToolsIsoNotFound, iso_path: iso_path unless File.exist?(iso_path)
473
+ end
466
474
 
467
475
  iso_path
468
476
  end
@@ -52,7 +52,7 @@ module VagrantPlugins
52
52
  # Starting since PD 11 only Pro and Business editions have CLI
53
53
  # functionality and can be used with Vagrant.
54
54
  edition = read_edition
55
- if !edition || !%w(any pro business).include?(edition)
55
+ if !edition || !%w(any pro business enterprise).include?(edition)
56
56
  raise Errors::ParallelsUnsupportedEdition
57
57
  end
58
58
 
@@ -33,7 +33,17 @@ module VagrantPlugins
33
33
  @@logger.debug("Mounting #{name} (#{options[:hostpath]} to #{guestpath})")
34
34
 
35
35
  mount_options, mount_uid, mount_gid = options[:plugin].capability(:mount_options, name, guest_path, options)
36
- mount_command = "mount -t #{mount_type} -o #{mount_options} #{name} #{guest_path}"
36
+ # mount_command = "mount -t #{mount_type} -o #{mount_options} #{name} #{guest_path}"
37
+ # In Parallels 20.2.0, prl_fs is removed and shares stop working with the
38
+ # `mount` command. Using prl_fsd fixes this, although there may be additional
39
+ # issues related to the removal of prl_fs.
40
+ mount_command = <<-CMD
41
+ if [ -f /usr/bin/prl_fsd ]; then
42
+ prl_fsd #{guest_path} -o nosuid,nodev,noatime,big_writes,fsname=#{name},subtype=prl_fsd --share --sf=#{name}
43
+ else
44
+ mount -t #{mount_type} -o #{mount_options} #{name} #{guest_path}
45
+ fi
46
+ CMD
37
47
 
38
48
  # Create the guest path if it doesn't exist
39
49
  machine.communicate.sudo("mkdir -p #{guest_path}")
@@ -4,16 +4,26 @@ module VagrantPlugins
4
4
  class InstallParallelsTools
5
5
  def self.install_parallels_tools(machine)
6
6
  machine.communicate.tap do |comm|
7
+ # Get the host arch. This is safe even if an older x86-only Vagrant version is used.
8
+ arch = `arch -64 uname -m`.chomp
9
+
7
10
  pti_agent_path = File.expand_path(
8
- machine.provider.driver.read_guest_tools_iso_path('windows'),
11
+ machine.provider.driver.read_guest_tools_iso_path('windows', arch),
9
12
  machine.env.root_path
10
13
  )
11
14
 
12
- remote_file = '$env:TEMP\PTIAgent.exe'
15
+ # Older versions of Parallels provided an executable file instead of an ISO image.
16
+ agent_path_is_exe = pti_agent_path.end_with?('.exe')
17
+
18
+ remote_file = "C:\\Windows\\Temp\\parallels-tools-win.#{agent_path_is_exe ? 'exe' : 'iso'}"
13
19
  comm.upload(pti_agent_path, remote_file)
14
20
 
15
21
  install_script = <<-EOH
16
- Start-Process -FilePath #{remote_file} `
22
+ $MountedISOs=Mount-DiskImage -PassThru #{remote_file}
23
+ $Volume=$MountedISOs | Get-Volume
24
+ $DriveLetter=$Volume.DriveLetter
25
+
26
+ Start-Process -FilePath ($DriveLetter + ":/PTAgent.exe") `
17
27
  -ArgumentList "/install_silent" `
18
28
  -Verb RunAs `
19
29
  -Wait
@@ -25,6 +35,17 @@ module VagrantPlugins
25
35
  }
26
36
  EOH
27
37
 
38
+ if agent_path_is_exe
39
+ install_script = <<-EOH
40
+ Start-Process -FilePath #{remote_file} `
41
+ -ArgumentList "/install_silent" `
42
+ -Verb RunAs `
43
+ -Wait
44
+ EOH
45
+ else
46
+ cleanup_script = "Dismount-DiskImage -ImagePath #{remote_file}\n" + cleanup_script
47
+ end
48
+
28
49
  comm.execute(install_script)
29
50
  comm.execute(cleanup_script)
30
51
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Parallels
3
- VERSION = '2.4.2'
3
+ VERSION = '2.4.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-parallels
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.2
4
+ version: 2.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikhail Zholobov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-02-05 00:00:00.000000000 Z
12
+ date: 2025-02-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -59,28 +59,28 @@ dependencies:
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: 1.3.0
62
+ version: 2.0.0
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: 1.3.0
69
+ version: 2.0.0
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: webrick
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: 1.8.0
76
+ version: 1.9.0
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: 1.8.0
83
+ version: 1.9.0
84
84
  description: Enables Vagrant to manage Parallels virtual machines.
85
85
  email:
86
86
  - legal90@gmail.com
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  - !ruby/object:Gem::Version
168
168
  version: 1.3.6
169
169
  requirements: []
170
- rubygems_version: 3.4.10
170
+ rubygems_version: 3.5.3
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Parallels provider for Vagrant.