vagrant-parallels 2.2.4 → 2.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/vagrant-parallels/driver/base.rb +4 -2
- data/lib/vagrant-parallels/guest_cap/darwin/install_parallels_tools.rb +4 -1
- data/lib/vagrant-parallels/guest_cap/linux/install_parallels_tools.rb +6 -1
- data/lib/vagrant-parallels/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ede8c43d4ad31a4ad5cec8ecf94158e93a825ea959bf4a2cbf5da1b1428108ad
|
4
|
+
data.tar.gz: 0e56a44dcbd181577e69ef04525be3278a86fd6c0ccb41139635a19176d3768e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a283f0ebedc0074f277fd902725d6724b1db7a7c822621885f5df8bba6197abe9e3e6a914a5cfc8146c4abd187c04a81c59ff02f364c058ffa3fbe7f7fc634be
|
7
|
+
data.tar.gz: 8af828330dc40be03eefcd34834e2eb1d7490ba7ed7331d01dbec224f148ca9743d961cc2510c889d97112f50bc3f7d0db0047c0c3cb5cc03316ed256ed665a3
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## 2.2.5 (February 22, 2022)
|
2
|
+
BUG FIXES:
|
3
|
+
- Fixed Parallels Tool installation on M1 hosts with arm64
|
4
|
+
[[GH-416](https://github.com/Parallels/vagrant-parallels/pull/416)]
|
5
|
+
|
1
6
|
## 2.2.4 (August 18, 2021)
|
2
7
|
BUG FIXES:
|
3
8
|
- Fixed running the provisioner on "vagrant up --provision"
|
@@ -434,11 +434,13 @@ module VagrantPlugins
|
|
434
434
|
#
|
435
435
|
# @param [String] guest_os Guest os type: "linux", "darwin" or "windows"
|
436
436
|
# @return [String] Path to the ISO.
|
437
|
-
def read_guest_tools_iso_path(guest_os)
|
438
|
-
guest_os = guest_os.to_sym
|
437
|
+
def read_guest_tools_iso_path(guest_os, arch=nil)
|
438
|
+
guest_os = (guest_os + (['arm', 'arm64', 'aarch64'].include?(arch.to_s.strip) ? '_arm' : '')).to_sym
|
439
439
|
iso_name = {
|
440
440
|
linux: 'prl-tools-lin.iso',
|
441
|
+
linux_arm: 'prl-tools-lin-arm.iso',
|
441
442
|
darwin: 'prl-tools-mac.iso',
|
443
|
+
darwin_arm: 'prl-tools-mac-arm.iso',
|
442
444
|
windows: 'PTIAgent.exe'
|
443
445
|
}
|
444
446
|
return nil unless iso_name[guest_os]
|
@@ -5,8 +5,11 @@ module VagrantPlugins
|
|
5
5
|
|
6
6
|
def self.install_parallels_tools(machine)
|
7
7
|
machine.communicate.tap do |comm|
|
8
|
+
arch = ''
|
9
|
+
comm.execute("uname -p") { |type, data| arch << data if type == :stdout }
|
10
|
+
|
8
11
|
tools_iso_path = File.expand_path(
|
9
|
-
machine.provider.driver.read_guest_tools_iso_path(
|
12
|
+
machine.provider.driver.read_guest_tools_iso_path("darwin", arch),
|
10
13
|
machine.env.root_path
|
11
14
|
)
|
12
15
|
remote_file = '/tmp/prl-tools-mac.iso'
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'log4r'
|
2
|
+
|
1
3
|
module VagrantPlugins
|
2
4
|
module Parallels
|
3
5
|
module GuestLinuxCap
|
@@ -8,8 +10,11 @@ module VagrantPlugins
|
|
8
10
|
machine.communicate.sudo('ptiagent-cmd --install')
|
9
11
|
else
|
10
12
|
machine.communicate.tap do |comm|
|
13
|
+
arch = ''
|
14
|
+
comm.execute("uname -p") { |type, data| arch << data if type == :stdout }
|
15
|
+
|
11
16
|
tools_iso_path = File.expand_path(
|
12
|
-
machine.provider.driver.read_guest_tools_iso_path(
|
17
|
+
machine.provider.driver.read_guest_tools_iso_path("linux", arch),
|
13
18
|
machine.env.root_path
|
14
19
|
)
|
15
20
|
remote_file = '/tmp/prl-tools-lin.iso'
|
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.2.
|
4
|
+
version: 2.2.5
|
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:
|
12
|
+
date: 2022-02-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|