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: content/learning-paths/servers-and-cloud-computing/azure-vm/_index.md
+14-15Lines changed: 14 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,22 @@
1
1
---
2
2
title: Create an Azure Linux 3.0 virtual machine with Cobalt 100 processors
3
3
4
-
draft: true
5
-
cascade:
6
-
draft: true
4
+
minutes_to_complete: 120
7
5
8
-
minutes_to_complete: 120
9
-
10
-
who_is_this_for: This Learning Path explains how to create a virtual machine on Azure running Azure Linux 3.0 on Cobalt 100 processors.
6
+
who_is_this_for: This is an advanced topic for developers who want to run Azure Linux 3.0 on Arm-based Cobalt 100 processors in a custom virtual machine.
11
7
12
8
13
9
learning_objectives:
14
-
- Use QEMU to create a raw disk image, boot a VM using an Aarch64 ISO, install the OS, and convert the raw disk image to VHD format.
15
-
- Upload the VHD file to Azure and use the Azure Shared Image Gallery (SIG) to create a custom image.
16
-
- Use the Azure CLI to create an Azure Linux 3.0 VM for Arm, using the custom image from the Azure SIG.
10
+
- Use QEMU to create a raw disk image
11
+
- Boot a virtual machine using an AArch64 ISO and install Azure Linux 3.0
12
+
- Convert the raw disk image to VHD format
13
+
- Upload the VHD file to Azure
14
+
- Use Azure Shared Image Gallery (SIG) to create a custom image
15
+
- Create an Azure Linux 3.0 virtual machine on Arm using the Azure CLI and the custom image
17
16
18
17
prerequisites:
19
-
- A [Microsoft Azure](https://azure.microsoft.com/) account with permission to create resources, including instances using Cobalt 100 processors.
20
-
- A Linux machine with [QEMU](https://www.qemu.org/download/) and the [Azure CLI](/install-guides/azure-cli/) installed and authenticated.
18
+
- A [Microsoft Azure](https://azure.microsoft.com/) account with permission to create resources, including instances using Cobalt 100 processors
19
+
- A Linux machine with [QEMU](https://www.qemu.org/download/) and the [Azure CLI](/install-guides/azure-cli/) installed and authenticated
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/azure-vm/azure-vm.md
+33-33Lines changed: 33 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,74 +6,74 @@ weight: 3
6
6
layout: learningpathall
7
7
---
8
8
9
-
You can view the Azure Linux 3.0 project on [GitHub](https://github.com/microsoft/azurelinux). There are links to the ISO downloads in the project README.
9
+
## How do I create an Azure Linux image for Arm?
10
10
11
-
Using QEMU, you can create a raw disk image and boot a virtual machine with the ISO to install the OS on the disk.
11
+
You can view the Azure Linux 3.0 project on [GitHub](https://github.com/microsoft/azurelinux). The project README includes links to ISO downloads.
12
12
13
-
Once the installation is complete, you can convert the raw disk to a fixed-size VHD, upload it to Azure Blob Storage, and then use the Azure CLI to create a custom Arm image.
13
+
Using [QEMU](https://www.qemu.org/), you can create a raw disk image, boot a virtual machine with the ISO, and install the operating system. After installation is complete, you'll convert the image to a fixed-size VHD, upload it to Azure Blob Storage, and use the Azure CLI to create a custom Arm image.
14
14
15
-
## Download and create a virtual disk file
15
+
## How do I download the Azure Linux ISO and create a raw disk image?
16
16
17
-
Use `wget` to download the Azure Linux ISO image file.
17
+
Use `wget` to download the Azure Linux ISO image file:
18
18
19
19
```bash
20
20
wget https://aka.ms/azurelinux-3.0-aarch64.iso
21
21
```
22
22
23
-
Use `qemu-img` to create a 32 GB empty raw disk image to install the OS.
24
-
25
-
You can increase the disk size by modifying the value passed to `qemu-img`.
23
+
Create a 32 GB empty raw disk image to install the OS:
26
24
27
25
```bash
28
26
qemu-img create -f raw azurelinux-arm64.raw 34359738368
29
27
```
30
28
31
-
## Boot and install the OS
29
+
{{% notice Note %}}
30
+
You can change the disk size by adjusting the value passed to `qemu-img`. Ensure it meets the minimum disk size requirements for Azure (typically at least 30 GB).
31
+
{{% /notice %}}
32
+
33
+
34
+
## How do I install Azure Linux on a raw disk image using QEMU?
32
35
33
36
Use QEMU to boot the operating system in an emulated Arm VM.
Navigate through the installer by entering the hostname, username, and password for the custom image.
50
-
You should use the username of `azureuser` if you want match the instructions on the following pages.
51
-
52
-
Be patient, it takes some time to complete the full installation.
52
+
Follow the installer prompts to enter the hostname, username, and password. Use `azureuser` as the username to ensure compatibility with later steps.
53
53
54
-
At the end of installation you are prompted for confirmation to reboot the system.
54
+
{{% notice Note %}}The installation process takes several minutes.{{% /notice %}}
55
55
56
-
Once the newly installed OS boots successfully, install the Azure Linux Agent for VM provisioning, and power off the VM.
56
+
At the end of installation, confirm the reboot prompt. After rebooting into the newly-installed OS, install and enable the Azure Linux Agent:
57
57
58
58
```bash
59
-
sudo dnf install WALinuxAgent -y
60
-
sudo systemctl enable waagent
61
-
sudo systemctl start waagent
59
+
sudo dnf install WALinuxAgent -y
60
+
sudo systemctl enable waagent
61
+
sudo systemctl start waagent
62
62
sudo poweroff
63
63
```
64
64
65
-
Be patient, it takes some time to install the packages and power off.
65
+
{{% notice Note %}} It can take a few minutes to install the agent and power off the VM.{{% /notice %}}
66
66
67
-
## Convert the raw disk to VHD Format
67
+
## How do I convert a raw disk image to a fixed-size VHD for Azure?
68
68
69
-
Now that the raw disk image is ready to be used, convert the image to fixed-size VHD, making it compatible with Azure.
69
+
Now that the raw disk image is ready for you to use, convert it to fixed-size VHD, which makes it compatible with Azure.
70
70
71
71
```bash
72
72
qemu-img convert -f raw -o subformat=fixed,force_size -O vpc azurelinux-arm64.raw azurelinux-arm64.vhd
73
73
```
74
74
75
75
{{% notice Note %}}
76
-
VHD files have 512 bytes of footer attached at the end. The `force_size` flag ensures that the exact virtual size specified is used for the final VHD file. Without this, QEMU may round the size or adjust for footer overhead (especially when converting from raw to VHD). The `force_size` flag forces the final image to match the original size. This flag makes the final VHD size a whole number in MB or GB, which is required for Azure.
76
+
VHD files include a 512-byte footer at the end. The `force_size` flag ensures the final image size matches the requested virtual size. Without this, QEMU might round the size or adjust for footer overhead (especially when converting from raw to VHD). The `force_size` flag forces the final image to match the original size. This is required for Azure compatibility, as it avoids rounding errors and ensures the VHD ends at a whole MB or GB boundary.
77
77
{{% /notice %}}
78
78
79
-
Next, you can save the image in your Azure account.
79
+
In the next step, you'll upload the VHD image to Azure and register it as a custom image for use with Arm-based virtual machines.
title: "Build and run Azure Linux 3.0 on an Arm-based Azure virtual machine"
3
3
4
4
weight: 2
5
5
6
6
layout: "learningpathall"
7
7
---
8
8
9
-
## What is Azure Linux 3.0?
9
+
## What is Azure Linux 3.0 and how can I use it?
10
10
11
-
Azure Linux 3.0 is a Linux distribution developed and maintained by Microsoft, specifically designed for use on the Azure cloud platform. It is optimized for running cloud-native workloads, such as containers, microservices, and Kubernetes clusters, and emphasizes performance, security, and reliability. Azure Linux 3.0 provides native support for the Arm (AArch64) architecture, enabling efficient, scalable, and cost-effective deployments on Arm-based infrastructure within Azure.
11
+
Azure Linux 3.0 is a Microsoft-developed Linux distribution designed for cloud-native workloads on the Azure platform. It is optimized for running containers, microservices, and Kubernetes clusters, with a focus on performance, security, and reliability.
12
12
13
-
Currently, Azure Linux 3.0 is not available as a ready-made virtual machine image for Arm-based VMs in the Azure Marketplace. Only x86_64 images, published by Ntegral Inc., are offered. This means you cannot directly create an Azure Linux 3.0 VM for Arm from the Azure portal or CLI.
13
+
Azure Linux 3.0 includes native support for the Arm architecture (AArch64), enabling efficient, scalable, and cost-effective deployments on Arm-based Azure infrastructure.
14
14
15
-
However, you can still run Azure Linux 3.0 on Arm-based Azure VMs by creating your own disk image. Using QEMU, an open-source machine emulator and virtualizer, you can build a custom Azure Linux 3.0 Arm image locally. After building the image, you can upload it to your Azure account as a managed disk or custom image. This process allows you to deploy and manage Azure Linux 3.0 VMs on Arm infrastructure, even before official images are available.
15
+
## Can I run Azure Linux 3.0 on Arm-based Azure virtual machines?
16
16
17
-
This Learning Path guides you through the steps to build an Azure Linux 3.0 disk image with QEMU, upload it to Azure, and prepare it for use in creating virtual machines.
17
+
At the time of writing, Azure Linux 3.0 isn't available as a prebuilt virtual machine image for Arm-based VMs in the Azure Marketplace. Only x86_64 images (published by Ntegral Inc.) are available. This means you can't directly create an Azure Linux 3.0 VM for Arm from the Azure portal or CLI.
18
18
19
-
Following this process, you'll be able to create and run Azure Linux 3.0 VMs on Arm-based Azure infrastructure.
19
+
## How can I create and use a custom Azure Linux image for Arm?
20
20
21
-
To get started install the dependencies on your local Linux machine. The instructions work for both Arm or x86 running Ubuntu.
21
+
To run Azure Linux 3.0 on an Arm-based VM, you'll need to build a custom image manually. Using [QEMU](https://www.qemu.org/), an open-source machine emulator and virtualizer, you can build the image locally. After the build completes, upload the resulting image to your Azure account as either a managed disk or a custom image resource. This process lets you deploy and manage Azure Linux 3.0 VMs on Arm-based Azure infrastructure, even before official images are published in the Marketplace. This gives you full control over image configuration and early access to Arm-native workloads.
22
+
23
+
This Learning Path guides you through the steps to:
24
+
25
+
- Build an Azure Linux 3.0 disk image with QEMU
26
+
- Upload the image to Azure
27
+
- Create a virtual machine from the custom image
28
+
29
+
By the end of this process, you'll be able to run Azure Linux 3.0 VMs on Arm-based Azure infrastructure.
30
+
31
+
## What tools do I need to build the Azure Linux image locally?
32
+
33
+
You can build the image on either an Arm or x86 Ubuntu system. First, install the required tools:
You also need to install the Azure CLI. Refer to [How to install the Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest). You can also use the [Azure CLI install guide](/install-guides/azure-cli/) for Arm Linux systems.
41
+
You'll also need the Azure CLI. To install it, follow the [Azure CLI install guide](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest).
42
+
43
+
If you're using an Arm Linux machine, see the [Azure CLI install guide](/install-guides/azure-cli/).
44
+
45
+
## How do I verify the Azure CLI installation?
28
46
29
-
Make sure the CLI is working by running the version command and confirm the version is printed.
47
+
After installing the CLI, verify it's working by running the following command:
30
48
31
49
```bash
32
50
az version
33
51
```
34
52
35
-
You should see an output similar to:
53
+
You should see an output similar to the following:
36
54
37
55
```output
38
56
{
@@ -43,4 +61,4 @@ You should see an output similar to:
43
61
}
44
62
```
45
63
46
-
Continue to learn how to prepare the Azure Linux disk image.
64
+
In the next section, you'll learn how to build the Azure Linux 3.0 disk image using QEMU.
0 commit comments