Megan Marsh
9c9826ee4b
Merge pull request #8714 from williamb1024/hyperv-gen1-boot-order
...
WIP: Add Hyper-V builder `first_boot_device` setting to allow the selection of the initial device or device class used for booting the VM.
2020-03-02 12:27:25 -08:00
Ben Brown
0936f8bc03
Fix Hyper-V compacted disk size comparison
...
Prior to this the code compares the length of the path, which of course
doesn't change.
2020-03-02 09:55:13 +00:00
William Brooks
7f38ce0686
test and correct gen2 SetFirstBootDeviceGen2 scripts
2020-02-21 11:09:49 -06:00
William Brooks
dd8f4370c6
initial support for gen2 and fix driver_mock
2020-02-21 01:30:59 -06:00
William Brooks
5e1e4ec701
fmt && generate
2020-02-21 01:07:58 -06:00
William Brooks
d7300f4635
Remove legacy_boot and replace with first_boot_device (initial)
2020-02-21 01:01:09 -06:00
William Brooks
31622b50ac
applied fmt
2020-02-09 15:22:36 -06:00
William Brooks
55ae803852
Add Hyper-V support for Gen-1 boot order with ISO
2020-02-09 13:08:22 -06:00
Megan Marsh
e5becfc854
Merge pull request #8248 from marcinbojko/master
...
hyper-v fix for compacting only .vhd|.vhdx files
2019-10-21 11:47:15 -07:00
Marcin Bojko
1b4ffe546f
hyper-v fix for compacting vhdx/vhd only
2019-10-19 12:46:34 +02:00
Vladimír
d6994df188
Select first adapter attached to host OS's switch
...
If more than one vNic is attached to vmSwitch, use the first one only.
2019-10-15 15:14:22 +02:00
Davor Kapsa
49e4a2d9ef
Add error check
2019-10-09 15:55:07 +02:00
Megan Marsh
843986c2d4
missing bracket
2019-10-04 10:41:12 -07:00
DanHam
2b6286c31c
Fix powershell formatting. Match style for conditionals
2019-09-09 23:05:40 +01:00
Marcin Bojko
d4ff29f6c5
hyper-v fix when management interface is not part of virtual switch
...
2
formatting fix
2019-08-22 07:54:50 +02:00
WilliamB
aef77771c0
Correct HTTPIP == FALSE on HyperV builder
2019-07-17 03:41:41 -05:00
Megan Marsh
2e821da84b
check to make sure a vm-name isn't already in use before trying to launch a vm with said name.
2019-06-13 14:09:45 -07:00
BobSilent
5b289f67fe
Update hyperv.go
...
maybe also a fix for issue #5023
at least I got same error like there, incl. VM response
==> hyperv-iso: Host IP for the HyperV machine: False
although #4947 is marked as duplicate but shows different error output
==> hyperv-iso: Error getting host adapter ip address: PowerShell error: Get-VMNetworkAdapter : No network adapter is found with the given input.
2019-04-09 07:36:52 +02:00
Megan Marsh
482ba644a8
quote variables in powershell script to account for spaces
2019-02-01 13:23:17 -08:00
Adrien Delorme
19cbb9cb24
Merge pull request #7136 from hashicorp/fix_5984
...
Add "version" option to hyperv calls
2019-01-09 10:06:49 +01:00
Megan Marsh
93053e0488
update comments
2019-01-08 15:15:00 -08:00
Megan Marsh
9557f3eea7
use script options struct rather than passing all the variables around an extra time
2019-01-08 11:29:38 -08:00
Megan Marsh
a1b3b63cb9
use golang templating logic
2019-01-08 11:17:19 -08:00
Ladar Levison
e6de727c25
Fix the Hyper-V gen 1 guest boot order.
2018-12-25 16:54:26 -06:00
Megan Marsh
f26051a7da
code comments yo
2018-12-20 13:09:32 -08:00
Megan Marsh
24d2cc34e5
tests
2018-12-20 12:03:14 -08:00
Megan Marsh
427a35fc7e
tests
2018-12-20 12:03:00 -08:00
Megan Marsh
d4de89e057
move powershell templating into separate script so we can test it
2018-12-19 16:35:02 -08:00
Megan Marsh
006682a09c
add version option and also refactor powershell script to use golang templates for ease of testing and variable passing.
2018-12-19 16:30:57 -08:00
Ladar Levison
348c267054
Updated support for legacy network adapters on Hyper-V.
2018-12-18 04:59:00 -06:00