-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Hyper-V builder #2576
Add Hyper-V builder #2576
Commits on Dec 12, 2016
-
Port of https://github.com/pbolduc/packer-hyperv/
Remove steps that are windows specific
Configuration menu - View commit details
-
Copy full SHA for 1fe4c50 - Browse repository at this point
Copy the full SHA 1fe4c50View commit details -
Use the same configuration style as existing builders
Move builder into correctly named folder
Configuration menu - View commit details
-
Copy full SHA for ca16f33 - Browse repository at this point
Copy the full SHA ca16f33View commit details -
Configuration menu - View commit details
-
Copy full SHA for a422159 - Browse repository at this point
Copy the full SHA a422159View commit details -
Configuration menu - View commit details
-
Copy full SHA for 469415f - Browse repository at this point
Copy the full SHA 469415fView commit details -
Use the convention for default vmname
Use the convention for default hdd size Tests added for builder
Configuration menu - View commit details
-
Copy full SHA for 79a5f90 - Browse repository at this point
Copy the full SHA 79a5f90View commit details -
Wait until WinRM is available, before continuing with install. This i…
…s how other system like VeeWee do it. Add support for number of cpus to use for vm Add support for vm generation
Configuration menu - View commit details
-
Copy full SHA for 87b3dec - Browse repository at this point
Copy the full SHA 87b3decView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d7cfcd - Browse repository at this point
Copy the full SHA 2d7cfcdView commit details -
Remove devices after it has been shut down
Attempt to stop vm, before deleting it
Configuration menu - View commit details
-
Copy full SHA for 03b0698 - Browse repository at this point
Copy the full SHA 03b0698View commit details -
Setup local http server Add compaction of hard drive GetHostAdapterIpAddress function added for hyperv renamed step step_start_vm to step_run to fall in ine with naming conventions of other builders
Configuration menu - View commit details
-
Copy full SHA for aa1f1da - Browse repository at this point
Copy the full SHA aa1f1daView commit details -
With generation 2 machine by default a dvd drive is not created. So c…
…reate a dvd drive for os if it does not exist. Allow secure boot mode to be configured from config.
Configuration menu - View commit details
-
Copy full SHA for 02db768 - Browse repository at this point
Copy the full SHA 02db768View commit details -
Configuration menu - View commit details
-
Copy full SHA for f3cc413 - Browse repository at this point
Copy the full SHA f3cc413View commit details -
When redirecting local ports to hyper visor ports we need to configur…
…e WinRM ports as well as SSH ports.
Configuration menu - View commit details
-
Copy full SHA for bd0b119 - Browse repository at this point
Copy the full SHA bd0b119View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c3030c - Browse repository at this point
Copy the full SHA 6c3030cView commit details -
Quote powershell so that it does not try to interpret command to be run
Get VName out of state. This allows template replacement to be run on vmname
Configuration menu - View commit details
-
Copy full SHA for 3051ea6 - Browse repository at this point
Copy the full SHA 3051ea6View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef507c7 - Browse repository at this point
Copy the full SHA ef507c7View commit details -
Hyperv generation 2 machines use scsi for dvd drives. Allow gen 1 mac…
…hines to have at least 1 iso image attached
Configuration menu - View commit details
-
Copy full SHA for e18594f - Browse repository at this point
Copy the full SHA e18594fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e8074d - Browse repository at this point
Copy the full SHA 4e8074dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 837f9ad - Browse repository at this point
Copy the full SHA 837f9adView commit details -
No need to remove floppy controller for 2nd generation vms
Don't want to be prompted for confirmation from powershell commandlets
Configuration menu - View commit details
-
Copy full SHA for 5f2c123 - Browse repository at this point
Copy the full SHA 5f2c123View commit details -
Configuration menu - View commit details
-
Copy full SHA for efafed4 - Browse repository at this point
Copy the full SHA efafed4View commit details -
Configuration menu - View commit details
-
Copy full SHA for c24c882 - Browse repository at this point
Copy the full SHA c24c882View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e18baf - Browse repository at this point
Copy the full SHA 8e18bafView commit details -
Configuration menu - View commit details
-
Copy full SHA for d57517d - Browse repository at this point
Copy the full SHA d57517dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5473332 - Browse repository at this point
Copy the full SHA 5473332View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f94834 - Browse repository at this point
Copy the full SHA 9f94834View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5285a81 - Browse repository at this point
Copy the full SHA 5285a81View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1513731 - Browse repository at this point
Copy the full SHA 1513731View commit details -
Default minimum and maximum sizes were geared towards spinning up windows server instances. Linux instances are far more efficient and make do with lower requirements. Set the minimum sizes to match this.
Configuration menu - View commit details
-
Copy full SHA for 730c621 - Browse repository at this point
Copy the full SHA 730c621View commit details -
If there is only one ip address on a card we need to force it to be a…
…n array. Otherwise powershell may treat it as a property. Stop-Vm with force parameter to ensure that powershell prompts will not appear
Configuration menu - View commit details
-
Copy full SHA for 9cf8b18 - Browse repository at this point
Copy the full SHA 9cf8b18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 25baa26 - Browse repository at this point
Copy the full SHA 25baa26View commit details -
Configuration menu - View commit details
-
Copy full SHA for ccf506e - Browse repository at this point
Copy the full SHA ccf506eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9fd6357 - Browse repository at this point
Copy the full SHA 9fd6357View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd6213e - Browse repository at this point
Copy the full SHA cd6213eView commit details -
Make use of driver instead of directly referencing hyper
Move inline powershell to hyperv
Configuration menu - View commit details
-
Copy full SHA for 422efee - Browse repository at this point
Copy the full SHA 422efeeView commit details -
GuestAdditionsMode and GuestAdditionsPath can be set in config. If Gu…
…estAdditionsMode == "attach" it will mount the HyperV Integration Services ISO. If GuestAdditionsPath is set, then it will be used as an alternative to where the HyperV Integration Service ISO is. Included the build step to download ISO, so iso_urls works properly now. Online activation should be done via provisioner Installation of integration services should be done via provisioner Cleaned up the way dvd drives are mounted and unmounted (still need to implement feature to find unused drives before adding a new one) Cleaned up the way floppies are mounted and unmounted
Configuration menu - View commit details
-
Copy full SHA for 010d171 - Browse repository at this point
Copy the full SHA 010d171View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50a8d1b - Browse repository at this point
Copy the full SHA 50a8d1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for aaf9007 - Browse repository at this point
Copy the full SHA aaf9007View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b6ce3d - Browse repository at this point
Copy the full SHA 4b6ce3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 31ac1da - Browse repository at this point
Copy the full SHA 31ac1daView commit details -
Get rid of mount and unmount that does not specify controller locatio…
…n exactly Handle cleanup if unmount step has not already done so
Configuration menu - View commit details
-
Copy full SHA for 3cb621f - Browse repository at this point
Copy the full SHA 3cb621fView commit details -
If we are not getting the exit code assigned then default to it being…
… successful Useful to know what the exit code is if there is an error
Configuration menu - View commit details
-
Copy full SHA for fe8d99f - Browse repository at this point
Copy the full SHA fe8d99fView commit details -
Using Write-Output instead of Write-Host since PS v5 now leaks the ho…
…st stream to stderr
Configuration menu - View commit details
-
Copy full SHA for c42cb88 - Browse repository at this point
Copy the full SHA c42cb88View commit details -
Write output will put ouput from function, so we don't want to be get…
…ting line from output of function Fix unit tests for not showing progress stream when using powershell Ensure that progress stream does not get leaked into stdout Using Write-Output instead of Write-Host since PS v5 now leaks the host stream to stderr
Configuration menu - View commit details
-
Copy full SHA for 4b394c8 - Browse repository at this point
Copy the full SHA 4b394c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8c2b49 - Browse repository at this point
Copy the full SHA e8c2b49View commit details -
If exit code = 1 and the length of the stderr is 0, then we can assum…
…e that the exit code was not set, so assume success
Configuration menu - View commit details
-
Copy full SHA for e0c10de - Browse repository at this point
Copy the full SHA e0c10deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8477a0b - Browse repository at this point
Copy the full SHA 8477a0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 07764c6 - Browse repository at this point
Copy the full SHA 07764c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 93a2615 - Browse repository at this point
Copy the full SHA 93a2615View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18241e5 - Browse repository at this point
Copy the full SHA 18241e5View commit details -
By default a gen 1 vm get a dvd drive. Remove it on creation so that …
…it behaves the same as gen 2.
Configuration menu - View commit details
-
Copy full SHA for f8e3970 - Browse repository at this point
Copy the full SHA f8e3970View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1961b7 - Browse repository at this point
Copy the full SHA d1961b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for bda2468 - Browse repository at this point
Copy the full SHA bda2468View commit details -
Configuration menu - View commit details
-
Copy full SHA for 199bee6 - Browse repository at this point
Copy the full SHA 199bee6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8734c5b - Browse repository at this point
Copy the full SHA 8734c5bView commit details -
Do not try to type scancodes if there are none. We haven't figured ou…
…t how to do this on Windows 10 or Windows 7 and below. This will at least allow other types of VMs to be built.
Configuration menu - View commit details
-
Copy full SHA for 056fc59 - Browse repository at this point
Copy the full SHA 056fc59View commit details -
try to get the virtual keyboard a number of different ways. This shou…
…ld hopefully work for Windows 7, Window 10 and Windows Server 2016
Configuration menu - View commit details
-
Copy full SHA for 4ab2e8b - Browse repository at this point
Copy the full SHA 4ab2e8bView commit details -
A workaround for bug in Windows 10 and Windows 2016 where you have to…
… specify a path when creating a dvd drive
Configuration menu - View commit details
-
Copy full SHA for d878f4d - Browse repository at this point
Copy the full SHA d878f4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 872fc55 - Browse repository at this point
Copy the full SHA 872fc55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 181132f - Browse repository at this point
Copy the full SHA 181132fView commit details -
Configuration menu - View commit details
-
Copy full SHA for de44777 - Browse repository at this point
Copy the full SHA de44777View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb098fc - Browse repository at this point
Copy the full SHA fb098fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c754bf - Browse repository at this point
Copy the full SHA 7c754bfView commit details -
1
Configuration menu - View commit details
-
Copy full SHA for 5d5809b - Browse repository at this point
Copy the full SHA 5d5809bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d22bd1 - Browse repository at this point
Copy the full SHA 4d22bd1View commit details -
On windows a lot of git clients will convert LF to CRLF. This would b…
…e a problem where file contents are compared exactly
Configuration menu - View commit details
-
Copy full SHA for 807d7ea - Browse repository at this point
Copy the full SHA 807d7eaView commit details -
Added file with correct line endings
When dealing with windows the file url format is file:///c:/ On windows a lot of git clients will convert LF to CRLF. This would be a problem where file contents are compared exactly
Configuration menu - View commit details
-
Copy full SHA for e551087 - Browse repository at this point
Copy the full SHA e551087View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4721327 - Browse repository at this point
Copy the full SHA 4721327View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c32397 - Browse repository at this point
Copy the full SHA 8c32397View commit details -
Test should run and pass even when run on an environment that does no…
…t have Powershel.
Configuration menu - View commit details
-
Copy full SHA for 52c6cd5 - Browse repository at this point
Copy the full SHA 52c6cd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17597b4 - Browse repository at this point
Copy the full SHA 17597b4View commit details -
Fix a bug in the size of string that was returned when decoding a base64 string Added tests around encoding and decoding powershell scripts. Used [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes('powershell commands')) | clip to generate what base 64 strings should look like
Configuration menu - View commit details
-
Copy full SHA for d61513b - Browse repository at this point
Copy the full SHA d61513bView commit details -
Pattern for infrastructure changed to quote filename and execute file…
… with ampersand as everything is run in powershell now Handle powershell commands by specifying any extra infrastructure around running scripts inside of ExecuteCommand and ElevatedExecuteCommand
Configuration menu - View commit details
-
Copy full SHA for e36051d - Browse repository at this point
Copy the full SHA e36051dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f38d787 - Browse repository at this point
Copy the full SHA f38d787View commit details -
Builds in AppVeyor are failing as they do not have enough free memory…
…. Drop the thresh hold a little more.
Configuration menu - View commit details
-
Copy full SHA for c1538c5 - Browse repository at this point
Copy the full SHA c1538c5View commit details -
Add type scan support for ctrl, shift, alt.
<leftAlt> <leftCtrl> <leftShift> <rightAlt> <rightCtrl> <rightShift> Add type support for combinations of ctr, alt, shift with (only use lower case characters with this): <leftAltOn> <leftCtrlOn> <leftShiftOn> <leftAltOff> <leftCtrlOff> <leftShiftOff> <rightAltOn> <rightCtrlOn> <rightShiftOn> <rightAltOff> <rightCtrlOff> <rightShiftOff>
Configuration menu - View commit details
-
Copy full SHA for 5f7290c - Browse repository at this point
Copy the full SHA 5f7290cView commit details -
Dvd drive creation will auto select the controller number and control…
…ler location. This fixes the bug of first generation machines not being able to add more then 1 dvd drive.
Configuration menu - View commit details
-
Copy full SHA for e636c3d - Browse repository at this point
Copy the full SHA e636c3dView commit details -
Add special key modifiers to log output when used.
Update documentation to include new key modifiers.
Configuration menu - View commit details
-
Copy full SHA for 9c53df1 - Browse repository at this point
Copy the full SHA 9c53df1View commit details -
Enable-VMIntegrationService cmdlet has a language dependent value for…
… -Name option. So avoid using it, as it will break on machines with different languages.
Configuration menu - View commit details
-
Copy full SHA for 7ce9203 - Browse repository at this point
Copy the full SHA 7ce9203View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6342e15 - Browse repository at this point
Copy the full SHA 6342e15View commit details -
Configuration menu - View commit details
-
Copy full SHA for f94c2cd - Browse repository at this point
Copy the full SHA f94c2cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d391fc - Browse repository at this point
Copy the full SHA 6d391fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1277a25 - Browse repository at this point
Copy the full SHA 1277a25View commit details -
Add support for mac spoofing and dynamic memory.
To enable nested virtualization, mac spoofing, no dynamic memory and at least 4gb of ram should be set for the vm. Set warning if this has not been done. Detected Virtualization Extensions are supported by the machine your are running on, as it only works for Windows 10 and Windows Server 2016 onwards.
Configuration menu - View commit details
-
Copy full SHA for 9fbd1e4 - Browse repository at this point
Copy the full SHA 9fbd1e4View commit details -
Add documentation for: enable_mac_spoofing, enable_dynamic_memory and…
… enable_virtualization_extensions
Configuration menu - View commit details
-
Copy full SHA for b8554da - Browse repository at this point
Copy the full SHA b8554daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 48b6cc0 - Browse repository at this point
Copy the full SHA 48b6cc0View commit details -
Added the ability to independently configure switch vlan. This will p…
…eople to leave the switch in trunk mode and set a vlan for the vm.
Configuration menu - View commit details
-
Copy full SHA for c2d1f6b - Browse repository at this point
Copy the full SHA c2d1f6bView commit details -
govendor fetch golang.org/x/text/encoding/unicode
Configuration menu - View commit details
-
Copy full SHA for d56d683 - Browse repository at this point
Copy the full SHA d56d683View commit details -
Configuration menu - View commit details
-
Copy full SHA for ffc7f3f - Browse repository at this point
Copy the full SHA ffc7f3fView commit details -
Fix code type for formatting Remove empty space
Configuration menu - View commit details
-
Copy full SHA for 55353fa - Browse repository at this point
Copy the full SHA 55353faView commit details -
Configuration menu - View commit details
-
Copy full SHA for c88a2ef - Browse repository at this point
Copy the full SHA c88a2efView commit details -
SSHKeyPath and SSHWaitTimeout have been deprecated in favor of commun…
…icator configuration
Configuration menu - View commit details
-
Copy full SHA for 501845c - Browse repository at this point
Copy the full SHA 501845cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a27d75f - Browse repository at this point
Copy the full SHA a27d75fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d711756 - Browse repository at this point
Copy the full SHA d711756View commit details -
Configuration menu - View commit details
-
Copy full SHA for 20643e3 - Browse repository at this point
Copy the full SHA 20643e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0515487 - Browse repository at this point
Copy the full SHA 0515487View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c1df5a - Browse repository at this point
Copy the full SHA 3c1df5aView commit details -
Add missing configuration elements.
Remove configuration elements that are no longer used.
Configuration menu - View commit details
-
Copy full SHA for 7add6d3 - Browse repository at this point
Copy the full SHA 7add6d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f0835a - Browse repository at this point
Copy the full SHA 3f0835aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 04a6880 - Browse repository at this point
Copy the full SHA 04a6880View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb192ce - Browse repository at this point
Copy the full SHA fb192ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 44f73fa - Browse repository at this point
Copy the full SHA 44f73faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3356154 - Browse repository at this point
Copy the full SHA 3356154View commit details -
Configuration menu - View commit details
-
Copy full SHA for 602c207 - Browse repository at this point
Copy the full SHA 602c207View commit details -
Configuration menu - View commit details
-
Copy full SHA for 24e9810 - Browse repository at this point
Copy the full SHA 24e9810View commit details -
Configuration menu - View commit details
-
Copy full SHA for 143ac30 - Browse repository at this point
Copy the full SHA 143ac30View commit details -
Be smarter about loading guest additions iso. Windows 10 and Windows …
…Server 2016 no longer come with iso. So default to not loading guest additions when the iso is missing
Configuration menu - View commit details
-
Copy full SHA for 74255c5 - Browse repository at this point
Copy the full SHA 74255c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for e357c56 - Browse repository at this point
Copy the full SHA e357c56View commit details -
Porting over paulmey changes to license and copyright headers. Good g…
…uy Microsoft have changed the licensing to MPL2 and removed the copyright headers so that we can include it in the official Packer release. microsoft/packer-hyperv@1ce6ba9?diff=unified#diff-5d60887f0940c9f8d6724e59843ac1fb
Configuration menu - View commit details
-
Copy full SHA for e50fe9f - Browse repository at this point
Copy the full SHA e50fe9fView commit details