Hello Minghua,
Did you change your password in the virtualbox GUI window? If so, there might have been a different character layout from the shell you are using.
Try logging into the virtualbox GUI window and then changing the password using as root again using passwd command.
Alternatively, the password can be changed from the ssh client directly when connecting via port 2222, so you may try re-importing the box and doing it from there.