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: articles/virtual-machines/extensions/agent-linux.md
+44-42Lines changed: 44 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,9 @@ ms.date: 03/28/2023
13
13
---
14
14
# Understanding and using the Azure Linux Agent
15
15
16
-
The Microsoft Azure Linux Agent (waagent) manages Linux and FreeBSD provisioning, and virtual machine interaction with the Azure Fabric controller. In addition to the Linux Agent providing provisioning functionality, Azure also provides the option of using `cloud-init` for some Linux operating systems. The Linux agent provides the following functionality for Linux and FreeBSD Azure Virtual Machines deployments:
16
+
The Microsoft Azure Linux Agent (waagent) manages Linux and FreeBSD provisioning, and virtual machine interaction with the Azure Fabric controller. In addition to the Linux agent providing provisioning functionality, Azure also provides the option of using `cloud-init` for some Linux operating systems.
17
+
18
+
The Linux agent provides the following functionality for Linux and FreeBSD Azure Virtual Machines deployments:
17
19
18
20
> [!NOTE]
19
21
> For more information, see [Microsoft Azure Linux Agent](https://github.com/Azure/WALinuxAgent/blob/master/README.md).
@@ -27,7 +29,7 @@ The Microsoft Azure Linux Agent (waagent) manages Linux and FreeBSD provisioning
27
29
- Publishes the host name to the platform DNS
28
30
- Reports SSH host key fingerprint to the platform
29
31
- Manages resource disk
30
-
-Format and mount the resource disk
32
+
-Formats and mounts the resource disk
31
33
- Configures swap space
32
34
33
35
- Networking
@@ -45,13 +47,13 @@ The Microsoft Azure Linux Agent (waagent) manages Linux and FreeBSD provisioning
45
47
46
48
- Console redirection to the serial port
47
49
48
-
- System Center Virtual Machine Manager Deployments
50
+
- System Center Virtual Machine Manager deployments
49
51
50
52
- Detects and bootstraps the Virtual Machine Manager agent for Linux when running in a System Center Virtual Machine Manager 2012 R2 environment
51
53
52
54
- VM Extension
53
55
54
-
- Injects component authored by Microsoft and partners into Linux Virtual Machines to enable software and configuration automation
56
+
- Injects component authored by Microsoft and partners into Linux virtual machines to enable software and configuration automation
55
57
- VM Extension reference implementation on [https://github.com/Azure/azure-linux-extensions](https://github.com/Azure/azure-linux-extensions)
56
58
57
59
## Communication
@@ -68,16 +70,16 @@ The following systems have been tested and are known to work with the Azure Linu
68
70
> [!NOTE]
69
71
> This list might differ from the [Endorsed Linux distributions on Azure](../linux/endorsed-distros.md).
70
72
71
-
* CentOS 7.x and 8.x
72
-
* Red Hat Enterprise Linux 6.7+, 7.x, and 8.x
73
-
* Debian 10+
74
-
* Ubuntu 18.04+
75
-
* openSUSE 12.3+
76
-
* SLES 12.x and 15.x
77
-
* Oracle Linux 6.4+, 7.x and 8.x
73
+
- CentOS 7.x and 8.x
74
+
- Red Hat Enterprise Linux 6.7+, 7.x, and 8.x
75
+
- Debian 10+
76
+
- Ubuntu 18.04+
77
+
- openSUSE 12.3+
78
+
- SLES 12.x and 15.x
79
+
- Oracle Linux 6.4+, 7.x and 8.x
78
80
79
81
> [!IMPORTANT]
80
-
> RHEL/Oracle Linux 6.10 is the only RHEL/OL 6 version with ELS support available, [the extended maintenance ends on 06/30/2024](https://access.redhat.com/support/policy/updates/errata)
82
+
> RHEL/Oracle Linux 6.10 is the only RHEL/OL 6 version with ELS support available. [The extended maintenance ends on June 30, 2024](https://access.redhat.com/support/policy/updates/errata).
81
83
82
84
Other Supported Systems:
83
85
@@ -114,19 +116,19 @@ For advanced installation options, such as installing from source or to custom l
114
116
-`help`: Lists the supported commands and flags
115
117
-`deprovision`: Attempt to clean the system and make it suitable for reprovisioning. The operation deletes:
116
118
- All SSH host keys, if `Provisioning.RegenerateSshHostKeyPair` is `y` in the configuration file
117
-
- Nameserver configuration in `/etc/resolv.conf`
118
-
- Root password from `/etc/shadow`, if `Provisioning.DeleteRootPassword` is `y` in the configuration file
119
+
- Nameserver configuration in */etc/resolv.conf*
120
+
- Root password from */etc/shadow*, if `Provisioning.DeleteRootPassword` is `y` in the configuration file
119
121
- Cached DHCP client leases
120
122
- Resets host name to `localhost.localdomain`
121
123
122
124
> [!WARNING]
123
125
> Deprovisioning doesn't guarantee that the image is cleared of all sensitive information and suitable for redistribution.
124
126
125
-
-`deprovision+user`: Performs everything in `deprovision` (previous) and also deletes the last provisioned user account, obtained from `/var/lib/waagent`, and associated data. Use this parameter when you deprovision an image that was previously provision on Azure so that it might be captured and reused.
127
+
-`deprovision+user`: Performs everything in `deprovision` (previous) and also deletes the last provisioned user account, obtained from */var/lib/waagent*, and associated data. Use this parameter when you deprovision an image that was previously provisioned on Azure so that it can be captured and reused.
126
128
-`version`: Displays the version of waagent.
127
129
-`serialconsole`: Configures GRUB to mark ttyS0, the first serial port, as the boot console. This option ensures that kernel boot logs are sent to the serial port and made available for debugging.
128
-
-`daemon`: Run waagent as a daemon to manage interaction with the platform. This argument is specified to waagent in the waagent `init` script.
129
-
-`start`: Run waagent as a background process.Filesy
130
+
-`daemon`: Run waagent as a daemon to manage interaction with the platform. This argument is specified to waagent in the waagent *init* script.
131
+
-`start`: Run waagent as a background process.
130
132
131
133
## Configuration
132
134
@@ -158,9 +160,9 @@ HttpProxy.Port=None
158
160
AutoUpdate.Enabled=y
159
161
```
160
162
161
-
The following various configuration options are described. Configuration options are of three types: `Boolean`, `String`, or `Integer`. The `Boolean` configuration options can be specified as `y` or `n`. The special keyword `None` might be used for some string type configuration entries.
163
+
Configuration options are of three types: `Boolean`, `String`, or `Integer`. The `Boolean` configuration options can be specified as `y` or `n`. The special keyword `None` might be used for some string type configuration entries.
162
164
163
-
`Provisioning.Enabled`
165
+
### Provisioning.Enabled
164
166
165
167
```txt
166
168
Type: Boolean
@@ -172,7 +174,7 @@ This option allows the user to enable or disable the provisioning functionality
172
174
> [!NOTE]
173
175
> The `Provisioning.Enabled` parameter defaults to `n` on Ubuntu Cloud Images that use cloud-init for provisioning.
174
176
175
-
`Provisioning.DeleteRootPassword`
177
+
### Provisioning.DeleteRootPassword
176
178
177
179
```txt
178
180
Type: Boolean
@@ -181,7 +183,7 @@ Default: n
181
183
182
184
If set, the agent erases the root password in the */etc/shadow* file during the provisioning process.
183
185
184
-
`Provisioning.RegenerateSshHostKeyPair`
186
+
### Provisioning.RegenerateSshHostKeyPair
185
187
186
188
```txt
187
189
Type: Boolean
@@ -192,7 +194,7 @@ If set, the agent deletes all SSH host key pairs from */etc/ssh/* during the pro
192
194
193
195
Configure the encryption type for the fresh key pair by using the `Provisioning.SshHostKeyPairType` entry. Some distributions re-create SSH key pairs for any missing encryption types when the SSH daemon is restarted, for example, upon a reboot.
194
196
195
-
`Provisioning.SshHostKeyPairType`
197
+
### Provisioning.SshHostKeyPairType
196
198
197
199
```txt
198
200
Type: String
@@ -201,16 +203,16 @@ Default: rsa
201
203
202
204
This option can be set to an encryption algorithm type that the SSH daemon supports on the virtual machine. The typically supported values are `rsa`, `dsa`, and `ecdsa`. *putty.exe* on Windows doesn't support `ecdsa`. If you intend to use *putty.exe* on Windows to connect to a Linux deployment, use `rsa` or `dsa`.
203
205
204
-
`Provisioning.MonitorHostName`
206
+
### Provisioning.MonitorHostName
205
207
206
208
```txt
207
209
Type: Boolean
208
210
Default: y
209
211
```
210
212
211
-
If set, waagent monitors the Linux virtual machine for a hostname change, as returned by the `hostname` command, and automatically updates the networking configuration in the image to reflect the change. In order to push the name change to the DNS servers, networking restart on the virtual machine. This restart results in brief loss of internet connectivity.
213
+
If set, waagent monitors the Linux virtual machine for a host name change, as returned by the `hostname` command, and automatically updates the networking configuration in the image to reflect the change. In order to push the name change to the DNS servers, networking restarts on the virtual machine. This restart results in brief loss of internet connectivity.
212
214
213
-
`Provisioning.DecodeCustomData`
215
+
### Provisioning.DecodeCustomData
214
216
215
217
```txt
216
218
Type: Boolean
@@ -219,7 +221,7 @@ Default: n
219
221
220
222
If set, waagent decodes `CustomData` from Base64.
221
223
222
-
`Provisioning.ExecuteCustomData`
224
+
### Provisioning.ExecuteCustomData
223
225
224
226
```txt
225
227
Type: Boolean
@@ -228,7 +230,7 @@ Default: n
228
230
229
231
If set, waagent runs `CustomData` after provisioning.
230
232
231
-
`Provisioning.AllowResetSysUser`
233
+
### Provisioning.AllowResetSysUser
232
234
233
235
```txt
234
236
Type: Boolean
@@ -237,7 +239,7 @@ Default: n
237
239
238
240
This option allows the password for the system user to be reset. The default is disabled.
239
241
240
-
`Provisioning.PasswordCryptId`
242
+
### Provisioning.PasswordCryptId
241
243
242
244
```txt
243
245
Type: String
@@ -251,7 +253,7 @@ This option specifies the algorithm used by crypt when generating password hash.
251
253
- 5 - SHA-256
252
254
- 6 - SHA-512
253
255
254
-
`Provisioning.PasswordCryptSaltLength`
256
+
### Provisioning.PasswordCryptSaltLength
255
257
256
258
```txt
257
259
Type: String
@@ -260,7 +262,7 @@ Default: 10
260
262
261
263
This option specifies the length of random salt used when generating password hash.
262
264
263
-
`ResourceDisk.Format`
265
+
### ResourceDisk.Format
264
266
265
267
```txt
266
268
Type: Boolean
@@ -269,7 +271,7 @@ Default: y
269
271
270
272
If set, waagent formats and mounts the resource disk provided by the platform, unless the file system type requested by the user in `ResourceDisk.Filesystem` is `ntfs`. The agent makes a single Linux partition (ID 83) available on the disk. This partition isn't formatted if it can be successfully mounted.
271
273
272
-
`ResourceDisk.Filesystem`
274
+
### ResourceDisk.Filesystem
273
275
274
276
```txt
275
277
Type: String
@@ -278,7 +280,7 @@ Default: ext4
278
280
279
281
This option specifies the file system type for the resource disk. Supported values vary by Linux distribution. If the string is `X`, then `mkfs.X` should be present on the Linux image.
280
282
281
-
`ResourceDisk.MountPoint`
283
+
### ResourceDisk.MountPoint
282
284
283
285
```txt
284
286
Type: String
@@ -287,7 +289,7 @@ Default: /mnt/resource
287
289
288
290
This option specifies the path at which the resource disk is mounted. The resource disk is a *temporary* disk, and might be emptied when the VM is deprovisioned.
289
291
290
-
`ResourceDisk.MountOptions`
292
+
### ResourceDisk.MountOptions
291
293
292
294
```txt
293
295
Type: String
@@ -296,7 +298,7 @@ Default: None
296
298
297
299
Specifies disk mount options to be passed to the `mount -o` command. This value is a comma-separated list of values, for example, `nodev,nosuid`. For more information, see the mount(8) manual page.
298
300
299
-
`ResourceDisk.EnableSwap`
301
+
### ResourceDisk.EnableSwap
300
302
301
303
```txt
302
304
Type: Boolean
@@ -305,7 +307,7 @@ Default: n
305
307
306
308
If set, the agent creates a swap file, */swapfile*, on the resource disk and adds it to the system swap space.
307
309
308
-
`ResourceDisk.SwapSizeMB`
310
+
### ResourceDisk.SwapSizeMB
309
311
310
312
```txt
311
313
Type: Integer
@@ -314,16 +316,16 @@ Default: 0
314
316
315
317
Specifies the size of the swap file in megabytes.
316
318
317
-
`Logs.Verbose`
319
+
### Logs.Verbose
318
320
319
321
```txt
320
322
Type: Boolean
321
323
Default: n
322
324
```
323
325
324
-
If set, log verbosity is boosted. Waagent logs to `/var/log/waagent.log` and uses the system `logrotate` functionality to rotate logs.
326
+
If set, log verbosity is boosted. Waagent logs to */var/log/waagent.log* and uses the system `logrotate` functionality to rotate logs.
325
327
326
-
`OS.EnableRDMA`
328
+
### OS.EnableRDMA
327
329
328
330
```txt
329
331
Type: Boolean
@@ -332,7 +334,7 @@ Default: n
332
334
333
335
If set, the agent attempts to install and then load an RDMA kernel driver that matches the version of the firmware on the underlying hardware.
334
336
335
-
`OS.RootDeviceScsiTimeout`
337
+
### OS.RootDeviceScsiTimeout
336
338
337
339
```txt
338
340
Type: Integer
@@ -341,7 +343,7 @@ Default: 300
341
343
342
344
This setting configures the SCSI timeout in seconds on the OS disk and data drives. If not set, the system defaults are used.
343
345
344
-
`OS.OpensslPath`
346
+
### OS.OpensslPath
345
347
346
348
```txt
347
349
Type: String
@@ -350,7 +352,7 @@ Default: None
350
352
351
353
This setting can be used to specify an alternate path for the *openssl* binary to use for cryptographic operations.
352
354
353
-
`HttpProxy.Host`, `HttpProxy.Port`
355
+
### HttpProxy.Host, HttpProxy.Port
354
356
355
357
```txt
356
358
Type: String
@@ -359,7 +361,7 @@ Default: None
359
361
360
362
If set, the agent uses this proxy server to access the internet.
0 commit comments