notes/source/blog/scaleway-restore-access.rst

34 lines
847 B
ReStructuredText
Raw Normal View History

.. post:: 2019.08.11
:tags: howto,scaleway,hosting,password
:category: hosting
:author: vladan
:location: Belgrade
===============================
Reset lost password on Scaleway
===============================
`These are the supported boot options
<https://github.com/scaleway/initrd/tree/master/Linux#boot-options>`_ on
Scaleway, managed through instance tags.
The [serial] console doesn't work with Firefox, so install Chromium.
.. important::
Use bootscript for this, not local boot.
Instances -> Select Your Instance -> Advanced Settings.
Make sure only ``INITRD_POST_SHELL=1`` is present in tags.
Reboot instance. You'll get a shell with the volume mounted in ``/newroot``.
.. code-block:: bash
chroot /newroot
passwd root
Exit the chroot shell and the post initrd shell, the boot should continue to
the VM.