boxcutter / windows

Virtual machine templates for Windows written in legacy JSON and Batch Scripting/JScript
Apache License 2.0
756 stars 264 forks source link

GENERALIZE leads to error on first launch of box #50

Open dusek opened 8 years ago

dusek commented 8 years ago

Ran make virtualbox/eval-win7x64-enterprise with having GENERALIZE = true in my Makefile.local. The packer build completes fine, creating a box/virtualbox/eval-win7x64-enterprise-ssh-nocm-1.0.4.box file.

Then I try to use the box by vagrant up-ing the resulting box, but I get this during the first boot:

"Windows could not parse or process the unattend answer file for pass [specialize]. A component or non-list setting is specified more than once in the answer file."

"Windows could not parse or process the unattend answer file for pass [specialize]. A component or non-list setting is specified more than once in the answer file."

After hitting OK, the VM restarts. During the second start, it hits this:

"The computer restarted unexpectedly or encountered an unexpected error. Windows installation cannot proceed. To install Windows, click "OK" to restart the computer, and then restart the installation."

"The computer restarted unexpectedly or encountered an unexpected error. Windows installation cannot proceed. To install Windows, click "OK" to restart the computer, and then restart the installation."

After hitting OK, the VM restarts and gets to the same screen (and then again and again).

dusek commented 8 years ago

I found (in a comment by Bradley) this was due to SearchScopes in Autounattend.xml. If I remove the SearchScopes element, vagrant up boots fine (sets things up, restarts, then asks for country and keyboard, accept EULA, then finally shows desktop) - except for #51 (which is a separate issue).

I would say setting Google search for IE is not really necessary, it should be up to the user to customize search engines etc. (and even more when it gives such issues).