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

35 lines
975 B
ReStructuredText
Raw Normal View History

2019-08-23 10:59:21 +02:00
.. post:: 2019.09.11
:tags: howto,scaleway,hosting,password
:category: hosting
:author: vladan
:location: Belgrade
2019-08-23 10:59:21 +02:00
==========================================
Reset root password on a scaleway instance
==========================================
`These are the supported boot options
<https://github.com/scaleway/initrd/tree/master/Linux#boot-options>`_ on
Scaleway, managed through instance tags.
2019-08-23 10:59:21 +02:00
The serial console doesn't work with Firefox, but works fine with Chromium.
.. important::
2019-08-23 10:59:21 +02:00
Use boot script for this, not local boot.
2019-08-23 10:59:21 +02:00
Navigate to Instances -> [Your Instance] -> Advanced Settings.
Make sure only ``INITRD_POST_SHELL=1`` is present in tags.
2019-08-23 10:59:21 +02:00
Reboot the instance. You'll get a shell with the rootfs volume of the VM you're
restoring the password mounted in ``/newroot``, e.g:
.. code-block:: bash
chroot /newroot
passwd root
2019-08-23 10:59:21 +02:00
Exit the chroot shell and the post initrd shell, the boot process will
continue, loading the updated rootfs.