Commit graph

17063 commits

Author SHA1 Message Date
Chris Roberts
318e3dd064
Extract hyperv guest ID from result if needed
Result from import may be received in an array. Detect if the result
is an array and extract the first result. Otherwise, if the result
is not a string, force an error.
2025-05-20 18:02:20 -07:00
Chris Roberts
cc16c60b43
Add basic oscdimg detection on Windows
Check for the oscdimg executable on both the PATH and known installation
location. When not found, provider a user friendly error message about
the missing executable and a helper link on where it can be found.
2025-05-20 17:52:39 -07:00
Chris Roberts
ab0a515f3b
Update CHANGELOG 2025-05-14 14:17:38 -07:00
Chris Roberts
f70952cac4
Merge pull request #13666 from chrisroberts/cloud-init-iso-attach
Update cloud-init behavior and iso generation
2025-05-14 14:10:41 -07:00
Chris Roberts
f4fc2c742a
Update cloud-init behavior and iso generation
This includes a couple modifications to the cloud-init behavior.
First, the cloud-init wait action will now write a sentinel file
after successfully waiting for cloud-init. This results in subsequent
boots of the machine to skip executing the cloud-init wait command
as cloud-init is only executed on the initial boot.

Second, the cloud-init setup action will check for the sentinel file
written by the cloud-init wait action, and if detected it will skip
the cloud-init setup. When creating the ISO for cloud-init, a second
sentinel file will be used to log the path of the generated ISO
file. If the file exists, the ISO generation process will be skipped.
2025-05-14 12:57:03 -07:00
Chris Roberts
9d25d2155e
Update CHANGELOG 2025-05-13 14:41:39 -07:00
Chris Roberts
189b6fcac1
Merge pull request #12653 from rubenk/vbox-allow-ipv6-link-local-on-hostonly-network
Allow link-local IPv6 address on host-only network
2025-05-13 14:39:53 -07:00
Chris Roberts
b216228bf0
Fix syntax in constant definition, add test coverage for ranges
Adds missing comma in the constant definition and add test coverage
for when no configuration file is available to validate acceptable
addresses within defined constant values.
2025-05-13 09:35:57 -07:00
Ruben Kerkhof
75adce64ba
Allow link-local IPv6 address on host-only network
Since VirtualBox 6.1.28, if you want to create a host-only network,
virtualbox checks if the ip is in a certain range.

According to the manual (https://www.virtualbox.org/manual/ch06.html),
ipv6 link-local addresses are allowed so add the IPv6 link-local range.
2025-05-13 09:05:27 -07:00
Chris Roberts
d466e50f48
Update CHANGELOG 2025-05-01 07:58:36 -07:00
Chris Roberts
97806ac04a
Merge pull request #13660 from hashicorp/box-constraint-error
Make box add failure messages more helpful
2025-05-01 07:57:33 -07:00
Chris Roberts
497e2daeca
Make box add failure messages more helpful
This adjusts the failure detection and errors raised when a box
cannot be added. New errors are added for when a requested provider
on a box does not support an architecture, and for when the no
providers on a box support an architecture. When box supports
an architecture but not with the requested provider, a list of
supported providers will be returned in the error message. If
a version constraint is requested and cannot be satisfied due
to provider and architecture filtering, the list of valid versions
will be provided.

Small change to the version list in the error output: the list
has been reversed so the most recent versions are listed first.
2025-04-30 17:50:27 -07:00
Chris Roberts
1f988362ba
Update CHANGELOG 2025-04-30 13:59:02 -07:00
Chris Roberts
764fe0eeab
Merge pull request #13659 from chrisroberts/vbox-priv-nets
Fix VirtualBox private network setup
2025-04-30 13:58:11 -07:00
Chris Roberts
f93ce5267a
Update CHANGELOG 2025-04-30 13:56:18 -07:00
Chris Roberts
91076c9bfc
Merge pull request #13657 from chrisroberts/remove-server-mode-check
Remove server mode checks
2025-04-30 13:55:06 -07:00
Chris Roberts
89a5bb2086
Fix VirtualBox private network setup
Include network display name within the output of the
`#read_host_only_interfaces` driver method. When matching
the private network name, use the `#read_host_only_interfaces`
method and not the `#read_host_only_networks` method which
is darwin specific. Backport the `display_name` inclusion
to old driver versions for consistent behavior.

Fixes #13655
2025-04-28 10:08:43 -07:00
Chris Roberts
5543415424
Remove server mode checks
Remove service mode checks from command roots.
2025-04-24 13:04:07 -07:00
vagrant-bot
ee5cd541f8 Update files for new development 2.4.6.dev 2025-04-23 19:55:33 +00:00
vagrant-bot
551b351614 Release 2.4.5 2025-04-23 19:55:32 +00:00
Chris Roberts
22355d4ce2
Clean CHANGELOG 2025-04-23 12:53:03 -07:00
Chris Roberts
4a1777e5b7
Update CHANGELOG 2025-04-22 16:25:19 -07:00
Chris Roberts
6f615e0c61
Merge pull request #13651 from chrisroberts/disabled-communicator
Add a `:none` communicator
2025-04-22 16:24:09 -07:00
Chris Roberts
d2e4da46cc
Merge pull request #13654 from hashicorp/dep-removals
Remove library dependencies
2025-04-22 16:03:55 -07:00
Chris Roberts
2afcf5dd1a
Remove library dependencies
Remove dependencies from the gemspec for libraries that
are no longer in use.
2025-04-22 16:03:34 -07:00
Chris Roberts
2da31435e4
Update CHANGELOG 2025-04-22 16:01:40 -07:00
Chris Roberts
f5527f33a4
Merge pull request #13653 from hashicorp/handle-multi-system-specs
Properly handle multiple versions for internal specs
2025-04-22 16:00:11 -07:00
Chris Roberts
eee6fefd67
Add a :none communicator
Adds a communicator which does not provide communication to the
guest machine. All methods for the communicator are simply stubbed
with a successful result. This allows a guest to be configured
with the `:none` communicator and Vagrant to properly `up` it.

This currently lacks any user notification or guards within
configuration to verify guest configuration does not rely on
the communicator. It is wrapped as experimental to allow early
access to the basic functionality without making it generally
available.
2025-04-22 15:50:36 -07:00
Chris Roberts
2f89b0537f
Properly handle multiple versions for internal specs
When building the internal specs collection, multiple specifications
may exist due to default gems. When building the collection, always
set the specification with the greater version. This change prevents
multiple versions of the same gem attempting to be activated.
2025-04-22 14:51:48 -07:00
Chris Roberts
ffe76cb6d7
Merge pull request #13650 from hashicorp/misc-cleanup
Small cleanups
2025-04-21 15:08:33 -07:00
Chris Roberts
d78f3fb74a
Add proper names to workflows 2025-04-21 15:06:51 -07:00
Chris Roberts
0bb2db6000
Remove the VARGANT-GO entry from changelog 2025-04-21 15:06:31 -07:00
vagrant-bot
f630df1869 Update files for new development 2.4.5.dev 2025-04-21 15:56:16 +00:00
vagrant-bot
b2f4968b44 Release 2.4.4 2025-04-21 15:56:16 +00:00
Chris Roberts
b1bc422ff9
Update CHANGELOG 2025-04-15 14:57:03 -07:00
Chris Roberts
387f5ba87d
Merge pull request #13648 from chrisroberts/pwsh-selection
Prefer pwsh executable over powershell excutable
2025-04-15 14:55:58 -07:00
Chris Roberts
12af53a6a3
Prefer pwsh executable over powershell excutable
Prefer to use the pwsh executable over the powershell executable
as the pwsh exectuable will be faster loading than the powershell
executable. If the pwsh executable is not found, the powershell
executable will be used instead. The preference can be overridden
using the VAGRANT_PREFERRED_POWERSHELL environment variable.
2025-04-15 14:15:56 -07:00
Chris Roberts
f308f79f67
Update CHANGELOG 2025-04-09 16:51:53 -07:00
Chris Roberts
d53af46eb5
Merge pull request #13647 from chrisroberts/box-add-arch
Fix box add action to include architecture
2025-04-09 16:43:45 -07:00
Chris Roberts
cc355dd0ef
Fix box add action to include architecture
If only one provider is available for the architecture, it is
selected, but when actually selecting it the architecture
constraint was not included. Depending on the order of the provider
list, the wrong value would be chosen.
2025-04-09 14:43:07 -07:00
Chris Roberts
87dd75a47c
Update CHANGELOG 2025-04-08 17:22:27 -07:00
Chris Roberts
93534c172c
Merge pull request #13645 from hashicorp/smb-mount-fail
Remove nofail option from smb synced folder mount options
2025-04-08 17:21:31 -07:00
Chris Roberts
60e4834113
Update CHANGELOG 2025-04-08 17:21:11 -07:00
Chris Roberts
a3f10873c5
Merge pull request #13644 from chrisroberts/vbox-hostonly-iface
Use interface name for hostonly network configuration
2025-04-08 17:20:25 -07:00
Chris Roberts
40c019f8aa
Update CHANGELOG 2025-04-08 17:20:07 -07:00
Chris Roberts
d9186eaca0
Merge pull request #13643 from chrisroberts/hyperv-primary
Update primary disk detection in hyperv
2025-04-08 17:19:30 -07:00
Chris Roberts
1b44b8b71a
Merge pull request #13641 from chrisroberts/debug-log-additions
Add some helpful debug logs for more context
2025-04-08 17:19:07 -07:00
Chris Roberts
d86a0ed31f
Update CHANGELOG 2025-04-08 17:18:40 -07:00
Chris Roberts
b37a04534f
Merge pull request #13640 from chrisroberts/arch-networking
Fix arch guest networking setup
2025-04-08 17:17:51 -07:00
Chris Roberts
d67398e89b
Remove nofail option from smb synced folder mount options
The `nofail` option results in failures being improperly suppressed
resulting in a successful run with a failed mount. Removing this
option so mounting failures will properly fail the process.
2025-04-08 15:46:01 -07:00