Commit graph

5602 commits

Author SHA1 Message Date
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
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
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
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
Chris Roberts
7e283bd185
Use interface name for hostonly network configuration
When provided a name for the hostonly network in the VirtualBox
provider, always use the interface name in the final configuration.
2025-04-08 14:54:55 -07:00
Chris Roberts
a8e61a3daf
Update primary disk detection in hyperv
Select the first disk as the primary disk when locating the
primary disk within the hyperv provider.
2025-04-08 13:27:55 -07:00
Chris Roberts
f4d9f75878
Fix arch guest networking setup
Updates network configuration capability in Arch Linux guest to
properly handle NetworkManager. Extracts NetworkManager setup
into reusable module.
2025-04-08 08:56:26 -07:00
Chris Roberts
75e45505f5
Add some helpful debug logs for more context 2025-04-07 16:05:10 -07:00
Chris Roberts
e4dc350ace
Add dvd disk support to Hyper-V provider 2025-04-07 15:56:02 -07:00
Chris Roberts
ea25996b21
Update Vagrant behavior outside of installers
Remove customized require behaviors and modify the bin executable
to check for missing tools that Vagrant expects to exist when
running outside of an installer.
2025-04-02 11:40:17 -07:00
Chris Roberts
4f79fe59c6
Provide configurable retries for connect on SSH communicator
Adds two new options to the SSH connect configuration: `connect_retries`
and `connect_retry_delay`. Provides user configurable values used when
establishing the SSH connection. Previous behavior would retry generally
by the default value without a pause between attempts. Updated behavior
will retry the number of times set within the config (unless value is
provided directly to connect call) and each retry will pause based on
the delay value set in the config (unless value is provided directly
to the connect call).
2025-03-20 17:44:47 -07:00
Chris Roberts
78ec3f2ea9
Update amazonlinux guest network configuration
Adds suppport for configuring networking on amazonlinux when
network devices are handled by networkd. When not handled by
networkd, falls back to using the redhat capability.
2025-03-20 14:20:34 -07:00
Chris Roberts
e7b5c443f8
Merge pull request #13625 from chrisroberts/rhel-networks
Update RHEL guest networking
2025-03-20 09:07:30 -07:00
Chris Roberts
8bff35cbc3
Merge pull request #13561 from eszense/darwin-iso-patch
Use ISO 9660 format in create_iso under darwin
2025-03-20 08:21:02 -07:00
Chris Roberts
502644ea46
Merge pull request #13587 from betalb/vbox-virtio-scsi-controller
Add VirtioSCSI to the list of supported storage controllers for VirtualBox
2025-03-20 08:17:02 -07:00
Chris Roberts
75726b112a
Update RHEL guest networking
Recent versions of RHEL based guests have updated network configuration.
Detect the correct location of the network configuration files, and
configure the guest based on the detected location.

Fixes #13616
2025-03-19 17:42:11 -07:00
Chris Roberts
3fde423e96
Merge pull request #13622 from hashicorp/vagrant-go-rm
Remove vagrant-go implementation
2025-03-17 14:55:38 -07:00
Chris Roberts
e3a8d7f2cf
Remove vagrant-go implementation 2025-03-17 14:14:42 -07:00
Allison Larson
bc9f0b8c4c
Merge pull request #13564 from eszense/rmi-patch
docker/provider: handle variation in error text during image removal
2025-03-14 16:46:16 -07:00
Allison Larson
d1f699b76b
Merge pull request #13606 from allisonlarson/catch-io-timeout-error
Catch IO::Timeout when waiting for communicator
2025-03-13 10:18:52 -07:00
Allison Larson
b6c7a15581 Catch IO::Timeout when waiting for communicator
Ruby 3.2 introduced a new error, `IO:TimeoutError`, for blocking
operations. Formerly, this case would return `Errno::ETIMEDOUT`. Catch
the new error while waiting for the communicator so that the retries can
be correctly attempted.

https://bugs.ruby-lang.org/issues/18630
2025-03-12 16:21:06 -07:00
Allison Larson
11ca740311 Fix output message for box missing metadata 2025-03-03 14:58:45 -08:00
Allison Larson
5564b8a1fd Determine compatible version when checking outdated box
When a request to check an outdated box (or update a box), add explicit
architecture compatibility check in addition to ensuring the version is
newer than before.

The architecture compatibility checks allow boxes that were marked as an
"unknown" architecture to see new "unknown" architectures as viable
update options, if an architecture specific provider is not available.
In the scenario that the existing version/provider has an explicit
architecture defined, a new version/provider with an "unknown"
architecture is not considered compatible.

This architecture check can be bypassed by explicitly setting
`config.vm.box_architecture = nil` in the Vagrantfile.
2025-03-03 14:58:45 -08:00
Allison Larson
834e84fa6e Include arch constraint when checking global outdated boxes 2025-02-26 15:59:56 -08:00
Vitalii Ishchenko
28bb8ee1b5 Add VirtioSCSI to the list of supported storage controllers for VirtualBox 2025-01-29 23:18:08 +00:00
eszense
81d56a8af4
docker provider: Don't explode when removing an image if it is in use
Handles the slightly different error text when podman backend is used:
`Stderr: Error response from daemon: image xxx is in use: image used by yyy: image is in use by a container: consider listing external containers and force-removing image
`
2025-01-04 21:57:35 +08:00
eszense
be4ef73d31
Use ISO 9660 format in create_iso under darwin
Currently `create_iso` in darwin produces CD image with hybrid format HFS+ISO 9660
This is less interoperable than ISO 9660 alone. In particular, CD label is not readable by the udev and breaks some automated configuration system.
2024-12-29 23:49:30 +08:00
Chris Roberts
37b294680c
Update authentication handling with client wrapper 2024-11-11 15:49:42 -08:00
Chris Roberts
8b06640fcf
Use helper for require calls 2024-11-06 17:33:00 -08:00
Chris Roberts
366c525539
Merge pull request #13525 from chrisroberts/encoding-error
Force encoding on command output strings
2024-11-01 14:08:55 -07:00
Chris Roberts
b5d62e2d81
Merge pull request #13343 from tnaroska/docker_build_containerd_fix
Fix#13342 adapt docker provider build for containerd storage
2024-11-01 14:07:00 -07:00
Chris Roberts
6be63b92e2
Force encoding on command output strings
Incompatible encodings will result in an error when the exception
is translated. The outputs may not be UTF-8 encoded so force
the encoding when providing the values in the exception.
2024-11-01 13:43:24 -07:00
Chris Roberts
d43f154032
Merge pull request #13517 from max-arnold/fix-salt-bootstrap
Fix Salt bootstrap script URLs
2024-11-01 12:14:48 -07:00
Chris Roberts
ffe6457171
Merge pull request #13493 from robinmulder/fix-ansible-version-match
Fix double digits Ansible version match
2024-10-30 12:47:03 -07:00
Chris Roberts
5e83b54195
Merge pull request #13513 from chrisroberts/vbox-7_1
Add support for VirtualBox 7.1
2024-10-30 12:32:14 -07:00
Chris Roberts
adcbd81eea
Merge pull request #13494 from MatrixDJ96/network_ip_ends_in_one_fix
Fixed conditions in network_ip_ends_in_one
2024-10-30 12:10:41 -07:00
Chris Roberts
85d97f5383
Add support for VirtualBox 7.1 2024-10-30 12:06:29 -07:00
Max Arnold
fd281cffcd
Switch to salt-bootstrap Github releases URLs
See https://saltproject.io/blog/salt-bootstrap-breakage-part-2/ for the explanation
2024-10-30 07:09:51 +07:00
Max Arnold
c9ca8e7c88
Fix Salt bootstrap script URLs
See https://saltproject.io/blog/salt-bootstrap-breakage/ for more details
2024-10-26 10:21:55 +07:00
Allison Larson
f977161282
Merge pull request #13496 from allisonlarson/allison-virtualbox-state-update
Update provider/virtualbox to allow paused state when booting vm
2024-09-23 12:04:49 -07:00
Mattia Rombi
a030ec068f Fixed conditions in network_ip_ends_in_one
Solve error: undefined method `end_with?' for nil:NilClass (NoMethodError)
2024-08-27 00:38:50 +02:00
Allison Larson
c4fa5df4f7 Add :paused to valid Virtualbox boot state 2024-08-26 09:45:50 -07:00
Robin Mulder
b357829dcc
Fix double digits ansible version match 2024-08-26 16:20:30 +02:00
Allison Larson
380eccc3b9 bsd/nfs: Check the status of nfsd before update/restart 2024-08-21 13:55:48 -07:00
Allison Larson
282b46904b bsd/nfs: Use nfs_update_command instead of restart 2024-08-21 10:49:47 -07:00
Allison Larson
a00483deba Move nfs mounting message within block 2024-08-20 11:06:35 -07:00
Allison Larson
2cb8183fe7
Merge pull request #13489 from allisonlarson/allison-docker-full-id
Match docker image id on full output from list when building
2024-08-16 10:17:17 -07:00
Allison Larson
1056f76922 Match docker image id on full output from list when building 2024-08-15 14:35:20 -07:00