How to Reset the Root Password of a Vultr Compute Instance

Updated on 14 May, 2026
Guide
Learn how to reset the root password of your Vultr Compute Instance with our step-by-step guide. Regain access to your server quickly and securely.
How to Reset the Root Password of a Vultr Compute Instance header image

Resetting your root password is essential when you lose administrative access to your server due to forgotten credentials or misconfiguration. Using the SystemRescue ISO available in the Vultr Console, you can regain access without reinstalling the operating system or losing data.

This guide outlines how to reset the root or administrator password on a Vultr Cloud Compute instance across multiple operating systems, including Linux distributions, FreeBSD, OpenBSD, and Windows Server, without reinstalling the system or affecting existing data.

Note
Before performing any of the steps below, take a snapshot of your instance to avoid potential data loss or application disruption.
Reset the Root Password on Ubuntu and Debian

The SystemRescue ISO provides a minimal rescue environment that operates independently of the installed OS. Mounting the root partition and using chroot allows the root password to be reset without reinstalling the system.

  1. Log in to the Vultr Console.

  2. Navigate to Instances under Compute.

  3. Select the instance for which you want to reset the root password.

  4. Click Settings, then select Custom ISO.

  5. Under the ISO Library, choose the SystemRescue ISO image and click Attach ISO and Reboot

  6. Open the web console by clicking the View Console icon on the instance information page.

  7. In the console, press Enter to boot using the default SystemRescue kernel.

  8. After the instance boots, you see a prompt like below.

    [root@sysrescue ~]#

    This confirms that the system is running in SystemRescue mode.

  9. List the attached block devices.

    console
    # lsblk
    

    Output:

    NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
    loop0    7:0    0 647.7M  1 loop /run/archiso/sfs/airootfs
    sr0     11:0    1   720M  0 rom  /run/archiso/bootmnt
    vda    253:0    0   180G  0 disk 
    ├─vda1 253:1    0   260M  0 part
    └─vda2 253:2    0 179.7G  0 part
  10. Mount the root block device.

    console
    # mount /dev/vda2 /mnt
    

    This command mounts the root partition at /mnt. Replace /dev/vda2 with your actual root partition.

  11. Chroot into the mounted system.

    console
    # chroot /mnt
    

    This command switches the shell's root directory to the mounted system under /mnt, allowing you to operate as if you're inside the original system. It enables you to run commands like passwd to modify the root user's password in the correct environment.

  12. Reset the root password.

    console
    # passwd
    

    When prompted, enter a new strong password twice to confirm. This updates the root user's credentials on the mounted system, restoring administrative access after reboot.

  13. Exit the chroot environment.

    console
    # exit
    
  14. Reboot the instance.

    console
    # reboot
    
  15. After the reboot, return to the Custom ISO section under Settings.

  16. Click Remove ISO to detach the rescue ISO and boot the server using root block device.

Conclusion

You have successfully reset the root or administrator password on your server using SystemRescue ISO or Single User Mode. Whether on Linux, BSD, or Windows, you restored administrative access without reinstalling the operating system or losing data. By following each platform-specific procedure, you ensured secure access to your Vultr instance and maintained system integrity.

Comments