Skip to content

Commit 7c19eb6

Browse files
Update create-upload-generic.md
1 parent 34d369b commit 7c19eb6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/virtual-machines/linux/create-upload-generic.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ The mechanism for rebuilding the initrd or initramfs image may vary depending on
7171

7272
### Resizing VHDs
7373
VHD images on Azure must have a virtual size aligned to 1 MB. Typically, VHDs created using Hyper-V are aligned correctly. If the VHD isn't aligned correctly, you may receive an error message similar to the following when you try to create an image from your VHD.
74-
```output
74+
```config
7575
The VHD http:\//\<mystorageaccount>.blob.core.windows.net/vhds/MyLinuxVM.vhd has an unsupported virtual size of 21475270656 bytes. The size must be a whole number (in MBs).
7676
```
7777
In this case, resize the VM using either the Hyper-V Manager console or the [Resize-VHD](/powershell/module/hyper-v/resize-vhd) PowerShell cmdlet. If you aren't running in a Windows environment, we recommend using `qemu-img` to convert (if needed) and resize the VHD.
@@ -166,11 +166,11 @@ The [Azure Linux Agent](../extensions/agent-linux.md) `waagent` provisions a Lin
166166
## General Linux System Requirements
167167
168168
1. Modify the kernel boot line in GRUB or GRUB2 to include the following parameters, so that all console messages are sent to the first serial port. These messages can assist Azure support with debugging any issues.
169-
```output
169+
```config
170170
GRUB_CMDLINE_LINUX="rootdelay=300 console=ttyS0 earlyprintk=ttyS0 net.ifnames=0"
171171
```
172172
We also recommend *removing* the following parameters if they exist.
173-
```output
173+
```config
174174
rhgb quiet crashkernel=auto
175175
```
176176
Graphical and quiet boot isn't useful in a cloud environment, where we want all logs sent to the serial port. The `crashkernel` option may be left configured if needed, but note that this parameter reduces the amount of available memory in the VM by at least 128 MB, which may be problematic for smaller VM sizes.
@@ -235,7 +235,7 @@ The [Azure Linux Agent](../extensions/agent-linux.md) `waagent` provisions a Lin
235235
Azure Linux Agent
236236
Modify the following parameters in /etc/waagent.conf
237237

238-
```output
238+
```config
239239
ResourceDisk.Format=y
240240
ResourceDisk.Filesystem=ext4
241241
ResourceDisk.MountPoint=/mnt/resource

0 commit comments

Comments
 (0)