You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
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: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 toC:/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.
The text was updated successfully, but these errors were encountered: