Commit graph

1253 commits

Author SHA1 Message Date
oss-core-libraries-dashboard[bot]
1a8c7eb042
[COMPLIANCE] Update Copyright and License Headers (Batch 4 of 7) (#13762)
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2025-12-22 16:46:54 +05:30
oss-core-libraries-dashboard[bot]
73228596f4
[COMPLIANCE] Update Copyright and License Headers (Batch 3 of 7) (#13763)
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2025-12-22 16:46:39 +05:30
BDoerrAnschuetz
bba4fbab5e
Add LSILogicSas to the list of supported storage controllers for VirtualBox (#13692)
Some checks failed
/ sync-acceptance (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.1 (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.2 (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.3 (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.4 (push) Has been cancelled
2025-12-12 20:21:04 +05:30
oss-core-libraries-dashboard[bot]
ea57f40b89
[COMPLIANCE] Update Copyright and License Headers (#13752)
Some checks failed
/ sync-acceptance (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.1 (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.2 (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.3 (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.4 (push) Has been cancelled
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2025-12-04 17:07:40 +05:30
Erich Fussi
803cb1d804
Retain 'primary' attribute when resizing the Hyper-V primary disk (#13748)
Some checks failed
/ sync-acceptance (push) Waiting to run
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.1 (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.2 (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.3 (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.4 (push) Has been cancelled
2025-11-25 23:31:00 +05:30
Sebastien Dionne
81e6dfa595
Merge pull request #13731 from survivant/main
Fix typos and linguistic errors in documentation / hacktoberfest
2025-11-21 10:52:25 +05:30
Corey Hemminger
4978fab045
Add Vbox 7.2 support (#13709)
* Add Vbox 7.2 support

Signed-off-by: Corey Hemminger <hemminger@hotmail.com>

* update comment for 7.2

Signed-off-by: Corey Hemminger <hemminger@hotmail.com>

---------

Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
2025-08-19 13:54:24 +05:30
g0tmi1k
d3a14babf1
Fix HyperV XML: System.Xml.XmlElement & The minimum amount (#13691)
* Fix HyperV XML: System.Xml.XmlElement & The minimum amount
2025-07-18 12:10:36 +05:30
Taru Garg
e08fbad643
fix(provider/docker): Ensure auto-assigned container name starts with valid characters (#13678)
* Ensure container name starts with valid characters when name is auto-assigned
2025-06-03 20:45:26 +05:30
Chris Roberts
0269a47f24
Add resource parameters for hyperv xml import
The generic import cmdlet passes all received arguments to
the specialized import cmdlets. The resource parameters for
providing memory and cpu values were added to the vmcx based
cmdlet but not the xml based cmdlet. This adds the to the
xml based cmdlet and includes configuration adjustment if set.
2025-05-22 15:33:43 -07:00
Chris Roberts
786d9c477b
Merge pull request #13671 from hashicorp/hyperv-cloud-init
Add cloud-init support to hyperv provider
2025-05-21 09:33:03 -07:00
Chris Roberts
849591beb7
Merge pull request #13670 from hashicorp/fix-hyperv-diff-import
Fix hyperv import failure due to lack of resources
2025-05-21 09:25:34 -07:00
Chris Roberts
d4002edb2e
Add cloud-init support to hyperv provider
Adds the required actions to support cloud-init when using
the hyperv provider.
2025-05-20 18:11:35 -07:00
Chris Roberts
6a0f875833
Fix hyperv import failure due to lack of resources
When importing a box that was built with more resources than is
available on the current system, import would fail. If the memory
and/or cpu values are set in the Vagrantfile configuration, provide
them when importing the guest. This allows the values to be modified
prior to registering the new guest preventing a resource unavailability
error.

Fixes #12180
2025-05-20 18:10:49 -07:00
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
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
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
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
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
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
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
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
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
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
85d97f5383
Add support for VirtualBox 7.1 2024-10-30 12:06:29 -07:00
Allison Larson
c4fa5df4f7 Add :paused to valid Virtualbox boot state 2024-08-26 09:45:50 -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
Allison Larson
72579915d0 Pass docker exec_options to executor as kwargs 2024-08-14 13:52:12 -07:00
Chris Roberts
015e050195
Merge pull request #13346 from camillo-toselli/main
Update configure_disks.rb
2024-07-10 17:53:07 -07:00
Chris Roberts
12df089810
Properly match container ID when trailing content exists 2024-07-10 16:56:32 -07:00
Chris Roberts
df5d8f11f5
Merge pull request #13373 from tomjn/patch-2
Check if the docker config is nil, fixes #13371
2024-07-10 16:42:12 -07:00
Chris Roberts
b71b9b5efc
Compact down config extraction 2024-07-10 16:07:26 -07:00
Chris Roberts
67599f89e2
Cast to string to prevent error if no match is found 2024-07-10 13:53:41 -07:00
Paul Cacheux
f67d4f75eb
virtualbox version detection: handle WARNING lines 2024-05-20 14:50:01 +02:00
Tom J Nowell
ad92256190
adjust the fix for #13371 to conform to code elsewhere in the file and check for IPAM 2024-03-28 16:20:52 +00:00
Tom J Nowell
5a191b388b
Check if the docker config is nil, fixes #13371
Sometimes the host network has a nil config, causing a crash on vagrant up when checking the docker networks
2024-03-28 16:15:00 +00:00
Camillo Toselli
716f76b2a6
Update configure_disks.rb
fixed configure_disks.rb in hyper-v capabilities provider to allow creation and removal of additional disks,
2024-01-30 11:18:40 +01:00
Timo Naroska
ce15776b32 Fix#13342 adapt docker provider build for containerd storage 2024-01-27 23:30:57 -08:00
Chris Roberts
c239e37b2f Force config value type and add test coverage
When extracting the config value from the data, force it to an Array
type for the size check. Include a test case that includes missing
configuration information to verify it does not produce an error.
2024-01-23 13:57:04 -08:00
Lars Tobias Skjong-Børsting
7d8b5e45fc Fix undefined method `size' for nil:NilClass in network_defined? 2024-01-20 12:59:47 +01:00
Chris Roberts
6db640fb14 Adjust vbox hostonly config for ipv6
Check the type when an ipv6 address is being used. If the type does not
have a `6` suffix, append it.
2023-09-11 17:48:02 -07:00
Chris Roberts
f4142705ab
Merge pull request #13241 from lordgurke/fix-vagrant-13226-wrong-filename
Remove duplicate appending of "6" to network type
2023-09-11 17:45:34 -07:00