I am creating a GCE VM from a Custom Image in another GCP project. I have access to the source image and the new GCE VM is created successfully. When I SSH into the new VM from the Google Cloud Compute Engine console I find two unexpected user profiles on the new VM - "dev" and the profile of the local Linux machine from which I am accessing the Google Cloud browser pages. I checked the source Custom Image and neither of these profiles exist on it. Why is the GCE Create Instance creating these two profiles and is there a way to stop it from doing so? I tried deleting the profiles on the new VM using "sudo killall -u dev" followed by "sudo userdel -rf dev" but the profile and it's home directory keep being recreated by some background process.
Solved! Go to Solution.
The pre-created profiles are being created by Google as described by this post: https://serverfault.com/questions/981307/why-does-a-new-google-compute-engine-instance-has-pre-creat...
The pre-created profiles are being created by Google as described by this post: https://serverfault.com/questions/981307/why-does-a-new-google-compute-engine-instance-has-pre-creat...