Skip to content

Commit 53877dc

Browse files
Edits.
1 parent 6dceea9 commit 53877dc

File tree

1 file changed

+44
-42
lines changed

1 file changed

+44
-42
lines changed

articles/virtual-machines/extensions/agent-linux.md

Lines changed: 44 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ ms.date: 03/28/2023
1313
---
1414
# Understanding and using the Azure Linux Agent
1515

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:
1719

1820
> [!NOTE]
1921
> 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
2729
- Publishes the host name to the platform DNS
2830
- Reports SSH host key fingerprint to the platform
2931
- Manages resource disk
30-
- Format and mount the resource disk
32+
- Formats and mounts the resource disk
3133
- Configures swap space
3234

3335
- Networking
@@ -45,13 +47,13 @@ The Microsoft Azure Linux Agent (waagent) manages Linux and FreeBSD provisioning
4547

4648
- Console redirection to the serial port
4749

48-
- System Center Virtual Machine Manager Deployments
50+
- System Center Virtual Machine Manager deployments
4951

5052
- Detects and bootstraps the Virtual Machine Manager agent for Linux when running in a System Center Virtual Machine Manager 2012 R2 environment
5153

5254
- VM Extension
5355

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
5557
- VM Extension reference implementation on [https://github.com/Azure/azure-linux-extensions](https://github.com/Azure/azure-linux-extensions)
5658

5759
## Communication
@@ -68,16 +70,16 @@ The following systems have been tested and are known to work with the Azure Linu
6870
> [!NOTE]
6971
> This list might differ from the [Endorsed Linux distributions on Azure](../linux/endorsed-distros.md).
7072
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
7880

7981
> [!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).
8183
8284
Other Supported Systems:
8385

@@ -114,19 +116,19 @@ For advanced installation options, such as installing from source or to custom l
114116
- `help`: Lists the supported commands and flags
115117
- `deprovision`: Attempt to clean the system and make it suitable for reprovisioning. The operation deletes:
116118
- 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
119121
- Cached DHCP client leases
120122
- Resets host name to `localhost.localdomain`
121123

122124
> [!WARNING]
123125
> Deprovisioning doesn't guarantee that the image is cleared of all sensitive information and suitable for redistribution.
124126
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.
126128
- `version`: Displays the version of waagent.
127129
- `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.
130132

131133
## Configuration
132134

@@ -158,9 +160,9 @@ HttpProxy.Port=None
158160
AutoUpdate.Enabled=y
159161
```
160162

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.
162164

163-
`Provisioning.Enabled`
165+
### Provisioning.Enabled
164166

165167
```txt
166168
Type: Boolean
@@ -172,7 +174,7 @@ This option allows the user to enable or disable the provisioning functionality
172174
> [!NOTE]
173175
> The `Provisioning.Enabled` parameter defaults to `n` on Ubuntu Cloud Images that use cloud-init for provisioning.
174176
175-
`Provisioning.DeleteRootPassword`
177+
### Provisioning.DeleteRootPassword
176178

177179
```txt
178180
Type: Boolean
@@ -181,7 +183,7 @@ Default: n
181183

182184
If set, the agent erases the root password in the */etc/shadow* file during the provisioning process.
183185

184-
`Provisioning.RegenerateSshHostKeyPair`
186+
### Provisioning.RegenerateSshHostKeyPair
185187

186188
```txt
187189
Type: Boolean
@@ -192,7 +194,7 @@ If set, the agent deletes all SSH host key pairs from */etc/ssh/* during the pro
192194

193195
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.
194196

195-
`Provisioning.SshHostKeyPairType`
197+
### Provisioning.SshHostKeyPairType
196198

197199
```txt
198200
Type: String
@@ -201,16 +203,16 @@ Default: rsa
201203

202204
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`.
203205

204-
`Provisioning.MonitorHostName`
206+
### Provisioning.MonitorHostName
205207

206208
```txt
207209
Type: Boolean
208210
Default: y
209211
```
210212

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.
212214

213-
`Provisioning.DecodeCustomData`
215+
### Provisioning.DecodeCustomData
214216

215217
```txt
216218
Type: Boolean
@@ -219,7 +221,7 @@ Default: n
219221

220222
If set, waagent decodes `CustomData` from Base64.
221223

222-
`Provisioning.ExecuteCustomData`
224+
### Provisioning.ExecuteCustomData
223225

224226
```txt
225227
Type: Boolean
@@ -228,7 +230,7 @@ Default: n
228230

229231
If set, waagent runs `CustomData` after provisioning.
230232

231-
`Provisioning.AllowResetSysUser`
233+
### Provisioning.AllowResetSysUser
232234

233235
```txt
234236
Type: Boolean
@@ -237,7 +239,7 @@ Default: n
237239

238240
This option allows the password for the system user to be reset. The default is disabled.
239241

240-
`Provisioning.PasswordCryptId`
242+
### Provisioning.PasswordCryptId
241243

242244
```txt
243245
Type: String
@@ -251,7 +253,7 @@ This option specifies the algorithm used by crypt when generating password hash.
251253
- 5 - SHA-256
252254
- 6 - SHA-512
253255

254-
`Provisioning.PasswordCryptSaltLength`
256+
### Provisioning.PasswordCryptSaltLength
255257

256258
```txt
257259
Type: String
@@ -260,7 +262,7 @@ Default: 10
260262

261263
This option specifies the length of random salt used when generating password hash.
262264

263-
`ResourceDisk.Format`
265+
### ResourceDisk.Format
264266

265267
```txt
266268
Type: Boolean
@@ -269,7 +271,7 @@ Default: y
269271

270272
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.
271273

272-
`ResourceDisk.Filesystem`
274+
### ResourceDisk.Filesystem
273275

274276
```txt
275277
Type: String
@@ -278,7 +280,7 @@ Default: ext4
278280

279281
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.
280282

281-
`ResourceDisk.MountPoint`
283+
### ResourceDisk.MountPoint
282284

283285
```txt
284286
Type: String
@@ -287,7 +289,7 @@ Default: /mnt/resource
287289

288290
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.
289291

290-
`ResourceDisk.MountOptions`
292+
### ResourceDisk.MountOptions
291293

292294
```txt
293295
Type: String
@@ -296,7 +298,7 @@ Default: None
296298

297299
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.
298300

299-
`ResourceDisk.EnableSwap`
301+
### ResourceDisk.EnableSwap
300302

301303
```txt
302304
Type: Boolean
@@ -305,7 +307,7 @@ Default: n
305307

306308
If set, the agent creates a swap file, */swapfile*, on the resource disk and adds it to the system swap space.
307309

308-
`ResourceDisk.SwapSizeMB`
310+
### ResourceDisk.SwapSizeMB
309311

310312
```txt
311313
Type: Integer
@@ -314,16 +316,16 @@ Default: 0
314316

315317
Specifies the size of the swap file in megabytes.
316318

317-
`Logs.Verbose`
319+
### Logs.Verbose
318320

319321
```txt
320322
Type: Boolean
321323
Default: n
322324
```
323325

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.
325327

326-
`OS.EnableRDMA`
328+
### OS.EnableRDMA
327329

328330
```txt
329331
Type: Boolean
@@ -332,7 +334,7 @@ Default: n
332334

333335
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.
334336

335-
`OS.RootDeviceScsiTimeout`
337+
### OS.RootDeviceScsiTimeout
336338

337339
```txt
338340
Type: Integer
@@ -341,7 +343,7 @@ Default: 300
341343

342344
This setting configures the SCSI timeout in seconds on the OS disk and data drives. If not set, the system defaults are used.
343345

344-
`OS.OpensslPath`
346+
### OS.OpensslPath
345347

346348
```txt
347349
Type: String
@@ -350,7 +352,7 @@ Default: None
350352

351353
This setting can be used to specify an alternate path for the *openssl* binary to use for cryptographic operations.
352354

353-
`HttpProxy.Host`, `HttpProxy.Port`
355+
### HttpProxy.Host, HttpProxy.Port
354356

355357
```txt
356358
Type: String
@@ -359,7 +361,7 @@ Default: None
359361

360362
If set, the agent uses this proxy server to access the internet.
361363

362-
`AutoUpdate.Enabled`
364+
### AutoUpdate.Enabled
363365

364366
```txt
365367
Type: Boolean

0 commit comments

Comments
 (0)