vagrant-parallels 2.4.4 → 2.4.5

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: 062102d2b68456eb430188395559c723101126db2e54bd6562ecfc6506141e59
4
- data.tar.gz: 6363965855b78b1ac4c579c0073a5c9fae70a80c57ad20648c40f1ef8103f6c9
3
+ metadata.gz: 03f9114e1ce20849f5383be6f83986473948c69bd9a22d8584ed19d78b900e09
4
+ data.tar.gz: faafff74c3dc005eb111e7bffc99dd5f796e3135f93c4235bfecc6c29ab711fb
5
5
  SHA512:
6
- metadata.gz: 716010b5a148531300d01c54b60839bc6ab87ece5e8bb38958c7efa82d2fdf1a56c9104ac7fb2adc3fbb8ca2e26c3927f558f371ac7c91aa938eaa4825e521df
7
- data.tar.gz: 0fc64cb6ddfade425910f3992b90c3868caa3690c791fa4e5f54f2d2e54177d79e0e02e83df23ec00c8103eb3cf2331b482cb1720ad4f0b3bb46ae8d876c7114
6
+ metadata.gz: 48a5dc378ccfe4e4f4b3e726c6e2a31824d9753a0b788577d86738decbc72b221679fca127295e1cdc8733f82798420550ab5ef0641077188776675bd48bf0de
7
+ data.tar.gz: cafca624eaa6824208fb5293c06b215148f3ee2f540e2eb46d8c39111116505e62b9c9d4fe5738029864f44fa8b649cfeb7bb465e1556fff550bfda4c24c227c
@@ -22,8 +22,14 @@ module VagrantPlugins
22
22
  # Convert to full-sized VM, copy all external and linked disks (if any)
23
23
  convert_to_full(env)
24
24
 
25
- # Compact all virtual disks
26
- compact(env)
25
+ # Compact all virtual disks
26
+ # Note: The macvm (macOS VM on Apple Silicon Macs) only supports PLAIN virtual disks.
27
+ # As a result, these disks cannot be compacted. Therefore, the compacting step
28
+ # should be skipped for macvms.
29
+
30
+ if !Util::Common::is_macvm(env[:machine])
31
+ compact(env)
32
+ end
27
33
 
28
34
  # Preparations completed. Unregister before packaging
29
35
  unregister_vm(env)
@@ -44,7 +44,7 @@ module VagrantPlugins
44
44
  sh_app_guest_to_host: 'off',
45
45
  sh_app_host_to_guest: 'off',
46
46
  startup_view: 'headless',
47
- time_sync: 'on',
47
+ time_sync_smart_mode: 'on',
48
48
  disable_timezone_sync: 'on',
49
49
  shf_host_defined: 'off'
50
50
  }
@@ -33,13 +33,15 @@ 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}"
37
36
  # 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.
37
+ # `mount` command. Using prl_fsd fixes this issue.
38
+
39
+ # prl_fsd does not support the _netdev option, so we need to remove it from the mount options
40
+ # for supported mount_options check prl_fsd --help in guest machine after installing Parallels Tools
41
+ prl_fsd_mount_options = mount_options.split(',').reject { |opt| opt == '_netdev' }.join(',')
40
42
  mount_command = <<-CMD
41
43
  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}
44
+ prl_fsd #{guest_path} -o big_writes,#{prl_fsd_mount_options},fsname=#{name},subtype=prl_fsd --sf=#{name}
43
45
  else
44
46
  mount -t #{mount_type} -o #{mount_options} #{name} #{guest_path}
45
47
  fi
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Parallels
3
- VERSION = '2.4.4'
3
+ VERSION = '2.4.5'
4
4
  end
5
5
  end
data/locales/en.yml CHANGED
@@ -75,8 +75,10 @@ en:
75
75
  This is an internal error that should be reported as a bug.
76
76
  parallels_mount_failed: |-
77
77
  Vagrant was unable to mount Parallels Desktop shared folders. This is usually
78
- because the filesystem "prl_fs" is not available. This filesystem is
79
- made available via the Parallels Tools and kernel module.
78
+ because the filesystem "prl_fs" is not available OR you are passing
79
+ unsupported mount options to prl_fsd daemon for supported options please refer
80
+ to the prl_fsd --help in VM.
81
+ "prl_fs"/"prl_fsd" are available via the Parallels Tools and kernel module.
80
82
  Please verify that these guest tools are properly installed in the
81
83
  guest. This is not a bug in Vagrant and is usually caused by a faulty
82
84
  Vagrant box. For context, the command attempted was:
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.4
4
+ version: 2.4.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: 2025-02-27 00:00:00.000000000 Z
12
+ date: 2025-03-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri