Skip to content

Commit

Permalink
Build Win10 1511
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanScherer committed Nov 27, 2015
1 parent 128f554 commit 45d2163
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
7 changes: 2 additions & 5 deletions build_windows_10.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/bin/bash
mkdir -p ./tmp/10/
echo "Inserting license ..."
sed -e "s/\<ProductKey\>/\<ProductKey\>\<Key\>$(pass windows_7_prof_license)\<\/Key\>/" ./answer_files/10/Autounattend.xml > ./tmp/10/Autounattend.xml
diff ./answer_files/10/Autounattend.xml ./tmp/10/Autounattend.xml
packer build --only=vmware-iso --var autounattend=./tmp/10/Autounattend.xml windows_10.json
#packer build --only=vmware-iso --var iso_url=~/packer_cache/Win10_1511_English_x64.iso --var iso_checksum=875ec108288b9f581e5d8099cf0edb79f0f3e483 --var autounattend=./tmp/10/Autounattend.xml --var product_key=$(pass windows_7_prof_license) windows_10.json
packer build --only=vmware-iso --var iso_url=~/packer_cache/Win10_1511_English_x64.iso --var iso_checksum=875ec108288b9f581e5d8099cf0edb79f0f3e483 --var autounattend=./tmp/10/Autounattend.xml windows_10.json
9 changes: 6 additions & 3 deletions windows_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"headless": false,
"boot_wait": "2m",
"boot_wait": "6m",
"boot_command": "{{user `product_key`}}<enter>",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "2h",
Expand Down Expand Up @@ -39,7 +40,8 @@
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"headless": false,
"boot_wait": "2m",
"boot_wait": "6m",
"boot_command": "<tab>{{user `product_key`}}<enter>",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "2h",
Expand Down Expand Up @@ -100,6 +102,7 @@
"iso_url": "http://iso.esd.microsoft.com/W10IP/BF15E0F8F8F6B6BFCD0F62892BFBA60756371D21/Windows10_InsiderPreview_x64_EN-US_10565.iso",
"iso_checksum_type": "sha1",
"iso_checksum": "EA37A740FD0744CAE856D1B12FB4167F6EE88B54",
"autounattend": "./answer_files/10/Autounattend.xml"
"autounattend": "./answer_files/10/Autounattend.xml",
"product_key": "<tab><tab>"
}
}

0 comments on commit 45d2163

Please sign in to comment.