(DNX devices) Recover the root login account

If the root account is disabled and SLX-OS CLI is not available, to recover the VM root password first recover the VM root login account.

Note

Note

For a list of the currently supported DNX devices, see the "Supported Hardware" topic.
  1. Reboot the device.
    # reboot
    Press Esc during reboot.
    Hit ESC to stop autoboot:  0
    FPGA f6000720 -> 0x12
    
    1) Start system.
    2) Recover password.
    3) Enter command shell.
    
    Option?
    
  2. Choose option 3 to access the uboot prompt.
    Option? 3
    =>
    
    The uboot prompt appears.
  3. Define the root login value for the root recover environment variable.
    => setenv VM_Root_Recover RootLogin
    =>
    
    This step sets the VM_Root_Recover variable with the RootLogin value.
  4. Save the variable to flash memory.
    k
    => saveenv
    Saving Environment to SPI Flash...
    SF: Detected W25Q128BV @ 0:0 with page size 256 Bytes, erase size 64 KiB, 32 KiB, 4 KiB, total 16 MiB
    Erasing SPI flash...Writing to SPI flash...
    Erasing SPI flash...Writing to SPI flash...done
    =>
    
  5. Reboot.
    => boot
    6912784 bytes read in 152 ms (43.4 MiB/s)
    Valid Boot Flag
    Setup Size = 0x00004400
    Magic signature found
    Using boot protocol version 2.0c
    Linux kernel version 3.14.17 (raop@hq1-ub-ecbld-373) #1 SMP Thu Jul 7 19:43:15 UTC 2016 
    
    The root account is now enabled. You can login with the default password.
If the SLX-OS CLI is available, you can recover the root account by using the SLX-OS CLI root enable command.