This is a quick note on how to reset the password of user account on the open sourced Xen Orchestra.

To reset the password of a user, of course, you’d need to know the user account, e.g. admin@admin.net.

[root@xoa1 xo-server]# cd /opt/xo/xo-server
[root@xoa1 xo-server]# ./dist/recover-account-cli.mjs --help

xo-server-recover-account <user name or email>

    If the user does not exist, it is created, if it exists, updates
    its password, remove any configured OTP and resets its permission to Admin.

[root@xoa1 xo-server]# ./dist/recover-account-cli.mjs admin@admin.net
Password (leave empty for random): *******
user admin@admin.net has been successfully updated

However, if you also forgot the account itself, you can create a new user with the same command. Here is an example to create a new account called admin:

[root@xoa1 xo-server]# ./dist/recover-account-cli.mjs admin
Password (leave empty for random): *******
user admin has been successfully created

Reference: