Reset XenMobile admin CLI password

1 minute read

This guide will go through the steps in resetting the local CLI admin account on a XenMobile 10.x virtual appliance.

Please be warned this is not approved by Citrix and i’m not responsible for any issues this causes!

What’s needed

  • Linux bootable media (I used an Ubuntu desktop ISO)
  • Access to VM console of XenMobile appliance
  • You will need to reboot each node to complete

Password Reset Process

  1. Power down the XenMobile Node and “edit settings” of the VM.
  2. Add a CD\DVD to the VM and mount the Ubunutu desktop ISO
    addcd
    diskoptions
  3. Adjust the VM options to boot to the BIOS so we can change the boot order
    bootoptions
  4. Adjust the options to boot to CD first
    bootorder
  5. Now Power up the VM and select “Try Ubuntu” to boot to the desktop from the ISO. Don’t install.
  6. Once the desktop is loaded open “Terminal” from the menu on the left
  7. Once in the terminal we need to run the following commands as root so we use sudo..
  sudo -i

sudo

  1. Mount the XenMobile appliance OS partition to the /tmp folder
  mount /dev/sda3 /tmp 

mount

  1. Run chroot from the mounted location
  chroot /tmp

chroot

  1. If you aren’t sure what the ‘admin’ account is named you can look at the shadow file of the appliance to get a listing.  You can see from the screenshot that admin is listed.  DO NOT RESET ANY OF THE OTHER ACCOUNTS.
  cat /etc/shadow

users

  1. Now that we know our account we can reset it.  (This command will blank out the password.  You won’t be able to set it here.)

    passwd admin
    

    passwd

  2. Unmount the file system

  umount /tmp

unmount

  1. Shutdown the box from Ubuntu and remove the CD\DVD drive.
  shutdown -h now

removecd

  1. You should now be able to login to the appliance from the console with the account you just reset with no password
  2. Once in make sure to set an actual password!
    systemmenu
  3. Repeat same process on other XenMobile nodes

Leave a comment