Closed belfast77 closed 4 years ago
Oh... nice catch! I'll test this out locally and see if that's the fix. Thanks so much for posting the issue!
No problem, very glad to help. I see you've updated Centos8, however it wasn't working for me in Centos7 also. I'm not using vagrant/virtualbox box, so not using the user "vagrant" with pass "vagrant".
I'm using the vsphere-iso builder instead and therefore creating a different "ansible" user. Do you think your user is perhaps being created automatically by Vagrant and not by the user directive in the centos7 ks.cfg?
Hmm... that is strange—Vagrant doesn't create a default user, so maybe in CentOS 7 that directive worked still even without the explicit =
? I'm updating it too now...
For some reason it still doesn't work even with the correct syntax. I have no clue why, but adding the useradd
seems to work, where the command:
user --name=vagrant --plaintext --password=vagrant --groups=vagrant,wheel
Does not.
I'll revert the 'fix' since that wasn't working and will keep it as is for now. Not a big deal IMO but it is a mystery.
In the kickstart file you have a work around.
https://github.com/geerlingguy/packer-boxes/blob/master/centos8/http/ks.cfg
Your user directive is
#user --name=vagrant --plaintext --password vagrant --groups=wheel
I think you might be missing an equals sign, password seems to work for me in centos7 if I do this
--password=vagrant
The docs seem to say that also.
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/performing_an_advanced_rhel_installation/kickstart-commands-and-options-reference_installing-rhel-as-an-experienced-user
I didn't do a PR as I'm using it with vSphere and not vagrant/virtualbox so couldn't test and confirm.