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
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
8b06640fcf
Use helper for require calls
2024-11-06 17:33:00 -08: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
Chris Roberts
513be177d3
Remove experimental checks
...
Removes experimental checks on existing experimental features.
2023-09-08 14:15:34 -07:00
hashicorp-copywrite[bot]
36a312ee26
add missing license headers and update copyright file headers to BUS-1.1
2023-08-10 21:53:25 +01:00
sophia
2e7116cfc3
Log ignoring of EnhancedSessionTransportType for debugging
2023-02-14 15:49:47 -08:00
RudiMT
431d91593a
Output message in json
...
Would limit new console output to systems that do not already support EnhancedSessionTransportType. The vast majority of systems supports it and should not print additional messages.
2023-02-14 15:49:46 -08:00
RudiMT
ba562f273b
Add check if EnhancedSessionTransportType is supported by the current version of HyperV
2023-02-14 15:49:46 -08:00
RudiMT
e14aa1e430
Formatting as in main
2023-02-14 15:49:46 -08:00
RudiMT
0867fbd9d8
Add check if EnhancedSessionTransportType is supported by the current version of HyperV
2023-02-14 15:49:46 -08:00
Chris Roberts
2696c3d74d
Import the security module for access check
...
The 7.3.0 release of powershell cleaned up some stray things that
should require the import of the security module to be available.
It causes issues with pre-7.3 versions of powershell that attempt
to load the newer module so we run a check and restrict the module
version based on the powershell version.
2022-11-22 11:05:18 -08:00
Chris Roberts
a02b9b6b2f
Use detected device when iterating over available addresses
2021-07-27 08:07:39 -07:00
Chris Roberts
1148658a53
Remove loops since only single device is desired
2021-06-25 15:16:56 -07:00
Rui Lopes
cc9ddc084c
fix the hyperv guest ip detection by limiting the search to the vagrant management network interface (the first network interface of the vm)
2021-03-13 11:20:00 +00:00
sophia
583b3f5332
Persist smb mounts
2020-09-22 16:53:10 -05:00
sophia
e3223b67ff
Fix if statement to use '-and' syntax
...
Docs for powershell:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_logical_operators?view=powershell-7
2020-08-07 17:24:49 -05:00
cam
67fdc3855f
HyperV - Adding ability to disable Enhanced session transport type
2020-08-06 16:04:21 -07:00
Cameron Jack
41948a1ca9
Moving hyper-v enhanced session message to I18n
2020-08-06 16:04:21 -07:00
cam
f6875818dc
Hyperv: moving session transport type config from string to boolean for enhanced mode aka HvSocker
2020-08-06 16:04:17 -07:00
cam
3dd7c89bf0
hyper-v: Hyper-V: add support for EnhancedSessionTransportType. Addresses #9823
2020-08-06 16:02:26 -07:00
Chris Roberts
64490299c3
Include check for support of the SecureBootTemplate parameter
2020-07-28 15:10:57 -07:00
Stephan Wild
4ff1ff5bc0
Set secure boot template setting for hyperv
2020-07-10 20:38:32 +02:00
Brian Cain
0139d8f020
Simplify other select to detect instead
2020-06-30 14:23:34 -07:00
Brian Cain
39b5bb4beb
Simplify selecting disk from all_disks hash
2020-06-30 14:23:34 -07:00
Brian Cain
05d3045f3a
Add RDoc for list_hdds
2020-06-30 14:23:34 -07:00
Brian Cain
9c1338b335
Fix typo in logger message
2020-06-30 14:23:34 -07:00
Brian Cain
af20d4a426
Remove old comment
2020-06-30 14:23:34 -07:00
Brian Cain
b36db04b3d
Validate and get default disk extensions for provider
...
This commit updates the hyperv and virtualbox provider caps to validate
and also return the default disk extension.
2020-06-30 14:23:34 -07:00
Brian Cain
13c91d68a6
Only grab provider_config if provider key exists and config isn't empty
2020-06-30 14:23:34 -07:00
Brian Cain
1579ac9c3a
Update method docs to include expected opts keys
2020-06-30 14:23:34 -07:00
Brian Cain
69dff3a4c8
Use key? helper
2020-06-30 14:23:34 -07:00
Brian Cain
ae0fb6f857
Update check for provider_config availability
2020-06-30 14:23:34 -07:00
Brian Cain
a279f89d29
update how value is checked for execute in hyper-v driver
2020-06-30 14:23:34 -07:00
Brian Cain
71f6b97153
Delete old comments
2020-06-30 14:23:34 -07:00
Brian Cain
4130cfe497
Properly check for disk paths when cleaning up disks in hyper-v
2020-06-30 14:23:34 -07:00
Brian Cain
18b9ccd0a5
Remove unused local var
2020-06-30 14:23:34 -07:00
Brian Cain
38445935dd
Ensure params are UInt32 rather than string
2020-06-30 14:23:34 -07:00
Brian Cain
f8dfcadb70
Only convert BlockSizeBytes option for Hyper-V disk provider_config
2020-06-30 14:23:34 -07:00
Brian Cain
56645b7bc5
Finish up configure_disk_test unit tests
2020-06-30 14:23:34 -07:00
Brian Cain
43eaceef13
Update disk meta keys to be consistent with Hyper-V keys
2020-06-30 14:23:34 -07:00
Brian Cain
d07e6c5c6a
Rearrange hyperv disk driver methods
2020-06-30 14:23:34 -07:00
Brian Cain
be939fcb59
Remove extra comments
2020-06-30 14:22:41 -07:00