Closed spuder closed 8 years ago
Looks like I might have missed the hard coded vagrant user in boxstarter.ps1
$secpasswd = ConvertTo-SecureString "vagrant" -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential ("vagrant", $secpasswd)
These 2 variables are only used when boxstarter triggers a reboot. A reboot is only triggered when windows updates run.
I'll see myself out 🚶
The windows 2012r2 template work great except for one weird corner case. Matt, do you have any idea whats going on here?
If I change the username to something other than vagrant, AND I install windows updates, then on the first boxstarter reboot, I get "invalid password".
Note that If I do one or the other (change username OR install windows updates), packer builds correctly.
Yet on the first boot
I take the exact same configs and replace my username & password with 'vagrant', and autologon works.
I know the user is setup correctly, because I can click ok and type in the password manually. Boxstarter then resumes.
To make sure It isn't a problem with the autounattend.xml, I've tried both plain text and base64 encoded passwords. Both work fine.
I've searched every script for any hard coded references to 'vagrant', I can find none. I've also checked the external scripts boxstarter calls for any hard coded 'vagrant' references. It can't be a windows update breaking this since it works with the 'vagrant' user.
I've also tried the following in package.ps1
I can reproduce this 100% of the time. Going on 10 times with the exact same results. Any ideas?