Parallels / packer-examples

Packer Templates and examples to use with Parallels Desktop provider
MIT License
31 stars 13 forks source link

Avoid requesting a password change on first vagrant login #65

Closed dguerri closed 1 week ago

dguerri commented 1 week ago

That prevented Vagrant from configuring the box.

dguerri commented 1 week ago

parallels.log

Relevant log lines:

==> parallels-iso.image: + USERNAME=vagrant
==> parallels-iso.image: + HOME_DIR=/home/vagrant
==> parallels-iso.image: + pubkey_url=https://raw.githubusercontent.com/hashicorp/vagrant/main/keys/vagrant.pub
==> parallels-iso.image: + mkdir -p /home/vagrant/.ssh
==> parallels-iso.image: + command -v wget
==> parallels-iso.image: + wget --no-check-certificate https://raw.githubusercontent.com/hashicorp/vagrant/main/keys/vagrant.pub -O /home/vagrant/.ssh/authorized_keys
==> parallels-iso.image: --2024-10-22 09:17:41--  https://raw.githubusercontent.com/hashicorp/vagrant/main/keys/vagrant.pub
==> parallels-iso.image: Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.110.133, 185.199.111.133, ...
==> parallels-iso.image: Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected.
==> parallels-iso.image: HTTP request sent, awaiting response... 200 OK
==> parallels-iso.image: Length: 518 [text/plain]
==> parallels-iso.image: Saving to: '/home/vagrant/.ssh/authorized_keys'
==> parallels-iso.image:
==> parallels-iso.image:      0K                                                       100% 30.0M=0s
==> parallels-iso.image:
==> parallels-iso.image: 2024-10-22 09:17:46 (30.0 MB/s) - '/home/vagrant/.ssh/authorized_keys' saved [518/518]
==> parallels-iso.image:
==> parallels-iso.image: + chown -R vagrant:vagrant /home/vagrant/.ssh
==> parallels-iso.image: + chmod -R go-rwsx /home/vagrant/.ssh
==> parallels-iso.image: Provisioning with shell script: ./../scripts/kali-linux/base/remove_password.sh
==> parallels-iso.image: + passwd --delete vagrant
    parallels-iso.image: passwd: password changed.