You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compute/instances/how-to/use-boot-modes.mdx
+15-12Lines changed: 15 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,26 +68,29 @@ Follow the instructions below to reboot an existing Instance using cloud-init.
68
68
1. Click **Instances** in the **Compute** section of the side menu. The [Instances page](https://console.scaleway.com/instance/servers) displays.
69
69
2. Click the Instance you wish to use with cloud-init.
70
70
3. Click the **Advanced settings** tab.
71
-
4. In the **Cloud-init** section, use the <Iconname="toggle" /> toggle to activate **Use cloud-init**.
71
+
4. In the **Cloud-init** section, use the toggle icon to activate **Use cloud-init**.
72
72
5. Enter your **user-data**. User data is the mechanism by which a user can pass information contained in a local file to an Instance at launch time. The typical use case is to pass something like a shell script or a configuration file as user data.
73
73
74
74
Cloud-init supports different input formats for user-data:
75
75
76
-
|Format|Starts with|Description|
77
-
| ---- | ------------- | --------- |
78
-
|**Cloud Config File**|`#cloud-config` or `Content-Type: text/cloud-config`| This file contains `cloud-config` data|
79
-
|**Shell Script**|`#!` or `Content-Type: text/x-shellscript`|A shell script will be executed at `rc.local` like level during first boot.|
80
-
|**Include File**|`#include` or `Content-Type: text/x-include-url`|An include file contains a list of one or different URLs, one per line. Each of the URLs will be read, and their content will be passed through this same set of rules. The content read from the URL can either be gzipped, mime-multi-part, or plain text.|
81
-
|**Gzip Compressed Content**||Gzip compressed content will be uncompressed and then be used as if it were not compressed. This is useful as user data is limited to 16384 bytes.|
82
-
|**MIME multipart archive**||It is possible to specify more than one type of data by using a MIME multipart file. This can be used to specify both, a shell script and a cloud-config task.|
83
-
|**Upstart Job**|`#upstart-job` or `Content-Type: text/upstart-job`||
84
-
|**Cloud Boothook**|`#cloud-boothook` or `Content-Type: text/cloud-boothook`||
85
-
|**Part Handler**|Starts with `#part-handler` or `Content-Type: text/part-handler`||
|**Cloud Config File**|`#cloud-config`| This file contains `cloud-config` data. |
79
+
|**Shell Script**|`#!`| A shell script executed at `rc.local` like level during first boot. |
80
+
|**Include File**|`#include`| Contains a list of one or more URLs. Content from these URLs is processed similarly. |
81
+
|**Gzip Compressed Content**| N/A | Gzip compressed content is decompressed and used as if uncompressed. Useful for data limits.|
82
+
|**MIME multipart archive**| N/A | Specifies multiple data types in one file (e.g., shell script + cloud-config). |
83
+
|**Upstart Job**|`#upstart-job`| Specifies an Upstart job to be executed. |
84
+
|**Cloud Boothook**|`#cloud-boothook`| Contains scripts run very early in the boot process. |
85
+
|**Part Handler**|`#part-handler`| Provides custom handling for specific data parts. |
86
+
87
+
<Messagetype="note">
88
+
Only the content type `text/plain` is currently supported.
89
+
</Message>
86
90
6. Click **Save**.
87
91
7. Click **Reboot** in the top right corner of the page, and confirm the reboot of your Instance when prompted.
88
92
89
93
Your Instance is rebooted using cloud-init.
90
-
91
94
## How to change the boot volume
92
95
93
96
The [boot-on-block](/compute/instances/concepts/#boot-on-block) feature allows Instances to boot from attached [Block Storage](/compute/instances/concepts/#block-volumes) volumes instead of local volumes. When [creating an Instance](/compute/instances/how-to/create-an-instance/), you can select Block Storage as a boot volume.
0 commit comments