I tried to create a custom image from a VM without doing deprovisioned artifact. After new VM been created from the custom image. The VM is unable to login with original password. Is it a bug?
Here is the steps to reproduce the problem:
- Create a VM from Ubuntu Linux 18.04 LTS
- Create custom image from this VM without Run deprovision on virtual machine.
- Create a new VM from this new image.
- SSH to this VM with original login/password. It will failed to login.
When you create a VM from non-deprovisioned Linux VM image, it will remove the password file from the virtual machine. So you cannot log in the VM.
There are two suggestions for you:
For more details, see Accessing Linux virtual machines created from non-deprovisioned custom images.