Error while provisioning Vagrant - useradd: UID 0 is not unique
Environment details:
OS: Windows 10
Vagrant: Version 1.8.4
Provider: Virtualbox Version 5.0.20 r106931
Shell: git-bash (cygwin)
Logs:
==> default: useradd: UID 0 is not unique
(https://gitlab.com/gitlab-org/gitlab-development-kit/blob/master/Vagrantfile#L74)
Then script runs fine to install RVM. Then from this line problem persists as shown in the logs below:
==> default: Creating local gemsets for ubuntu
==> default: addgroup: The user `build' does not exist.
==> default: chown:
==> default: invalid user: ‘build:build’
==> default: sudo: unknown user: build
==> default: sudo: unable to initialize policy plugin
==> default: sudo: unknown user: build
==> default: sudo: unable to initialize policy plugin
==> default: sudo: unknown user: build
==> default: sudo: unable to initialize policy plugin
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.