Skip to content

Commit

Permalink
Merge pull request #38 from PatrickLang/insider-hyperv
Browse files Browse the repository at this point in the history
Updating Windows 10 insider scripts for Hyper-V
  • Loading branch information
StefanScherer authored Aug 28, 2017
2 parents 461521f + 51ecb23 commit ba4cd89
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vagrantfile-windows_10.template
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,10 @@ Vagrant.configure("2") do |config|
v.vmx["scsi0.virtualDev"] = "lsisas1068"
v.enable_vmrun_ip_lookup = false
end

config.vm.provider "hyperv" do |v|
v.cpus = 2
v.maxmemory = 2048
v.differencing_disk = true
end
end
30 changes: 30 additions & 0 deletions windows_10_insider.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,36 @@
"2"
]
]
},
{
"type": "hyperv-iso",
"communicator": "winrm",
"iso_url": "{{user `iso_url`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"boot_wait": "0s",
"guest_additions_mode":"disable",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "2h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"disk_size": "{{user `disk_size`}}",
"floppy_files": [
"{{user `autounattend`}}",
"./floppy/WindowsPowershell.lnk",
"./floppy/PinTo10.exe",
"./scripts/fixnetwork.ps1",
"./scripts/disable-screensaver.ps1",
"./scripts/disable-winrm.ps1",
"./scripts/enable-winrm.ps1",
"./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1"
],
"ram_size": 2048,
"cpu": 2,
"switch_name":"{{user `hyperv_switchname`}}",
"enable_secure_boot":true,
"enable_virtualization_extensions":true
}
],
"provisioners": [
Expand Down

0 comments on commit ba4cd89

Please sign in to comment.