Skip to content
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

Sysprep did not seem to work #43

Open
dbroeglin opened this issue Nov 7, 2015 · 0 comments
Open

Sysprep did not seem to work #43

dbroeglin opened this issue Nov 7, 2015 · 0 comments

Comments

@dbroeglin
Copy link
Contributor

I was trying to use boxcutter/windows to generate a windows 2012 vagrant base box. Everything worked fine and I had a working base box in no time. Nice work!

However, when I tried to use it as a base for a lab with a DC I ran into the issue that all machines had the same SID. I was able to make things work in the end but as I'm not, by far, an expert in this I though I would rather give you a report of what I did rather than a PR.

I found the GENERALIZE variable but was not able to use it as is:

GENERALIZE=true make virtualbox/eval-win2012r2-standard-ssh

It looks like sysprep could not be found, after some fiddling it looks like the executable path had to be in lowercase. Also, sysprep could not find A:/Autounattend.xml (it probably was not mounted anymore at that stage) so I moved the file to C:/Windows/Temp/Autounattend_sysprep.xml

Then, the file would not apply everything required to have a directly usable box in Vagrant. By merging some stuff from https://github.com/mwrock/packer-templates and other posts like box-cutter/windows-vm#5 I finally have an unattend file that works and generates a working windows box in vagrant. Nothing is asked at startup and all VMs are specialised as needed.

The changes I made are here dbroeglin@ef4464e

I would gladly create some pull request but I would need some guidance as to how this should be integrated in the boxcutter/windows repo as I focused solely on win2012r2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant