Reinstalling an OS from a Yandex Cloud Marketplace image
Yandex BareMetal allows you to reinstall a server OS from a Yandex Cloud Marketplace public image. During reinstallation, you can select any OS available in Cloud Marketplace for BareMetal servers, as well as redistribute disk space, rebuild RAIDs, and reconfigure root user access parameters.
To reinstall a BareMetal server OS:
-
In the management console
, select the folder the server is in. -
From the list of services, select BareMetal.
-
In the row with the server you need, click
and select Re-install OS. -
In the window that opens:
-
Under Image, select one of the available OS images.
-
Optionally, configure disk partitioning:
-
Under Disk, click Configure disk layout.
-
Specify the partitioning parameters. To create a new partition, click
Add partition.Note
To build RAID arrays and configure disk partitions yourself, click Remove RAID.
-
Click Save.
If you do not make any changes to the disk partitioning, the server will retain the previous RAID and disk space allocation settings.
-
-
Under Access:
-
In the Password field, use one of these options to create a password for the root user:
-
To generate a password for the root users, select
New password
and click Generate.Warning
This option assumes that the user is responsible for password security. Save the password in a safe place. Yandex Cloud does not store this password, and you will not be able to view it once you lease the server.
-
To use the root user password saved in a Yandex Lockbox secret, select
Lockbox secret
.In the Name, Version, and Key fields, select the secret, its version, and the key your password is saved in, respectively.
If you do not have a Yandex Lockbox secret, click Create to create it.
This option allows you either to set your own password (the
Custom
secret type) or to use an automatically generated one (theGenerated
secret type).
-
-
In the Public SSH key field, select the SSH key saved in your organization user profile.
If there are no SSH keys in your profile, or you want to add a new key:
- Click Add key.
- Enter a name for the SSH key.
- Upload or paste the contents of the public key file. You need to create a key pair for the SSH connection to a server yourself.
- Click Add.
The system will add the SSH key to your organization user profile.
If adding SSH keys by users to their profiles is disabled in the organization, the public SSH key will be saved only to the new BareMetal server's user profile.
-
-
Click Re-install and wait until the server OS is reinstalled.
-