Here's a tutorial explaining how to manually change the user password for the Amazon Linux 2 virtual machines appliances by editing the /etc/shadow file with partx or qemu-nbd, additional pointers and methods, some other tips and tricks, and more. Have fun. https://www.dedoimedo.com/computers/amazon-linux-2-login-password.html Cheers, Mrk