Can I install Garuda Linux in an Azure VM ?

Ananay Ojha 91 Reputation points

Hi everyone, I want to use Garuda Linux on my Azure VM by either using an ORACLE VIRTUALBOX or ANY OTHER suitable way. But for that I need Hyper-V which is not available in any Azure VMs. I know nested virtualization exists, but I tried various VM sizes, Ds2_v3, e-series and almost everyone, none of them have it. And I have read this documentation - Run Hyper-V in a Virtual Machine with Nested Virtualization | Microsoft Learn in one of the steps, it says While the virtual machine is in the OFF state, run the following command on the physical Hyper-V host. Here, what is this physical hyper-v host? My laptop? or the Azure Data Centre ? I couldn't figure out. So can you please let me know the complete configuration of Azure VM -

  • Which VM size to use
  • Any additional settings during VM creation
  • Region to choose
  • Settings to do in the VM itself
  • so that I can use Oracle Virtualbox to install Garuda Linux. If nested virtualization is not possible, suggest any alternative way to install Garuda linux on the VM.
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,285 questions
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,575 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 22,576 Reputation points

    Hello Ananay Ojha

    Thank you for reaching out to the Microsoft Q&A platform.

    I understand that you want to use Garuda Linux on your Azure VM using Oracle VirtualBox or any other suitable way. However, you are facing issues with nested virtualization, and you are not sure about the complete configuration of the Azure VM.

    Regarding the configuration of the Azure VM, you can use any VM size that supports nested virtualization. Currently, the Dv3 and Ev3 series VMs support nested virtualization. You can choose any region that supports the VM size you have selected. See article about the VM sizes here... Process: After Azure VM is deployed, RDP into the Azure VM, open PowerShell as administrator and run command below to install the HyperV and DHCP server roles.

    Install-WindowsFeature -Name DHCP,Hyper-V  –IncludeManagementTools

    Here is an article that talks in detail about How to Setup Nested Virtualization for Azure VM

    You can also do this using Azure CLI. Here is an example command to create a VM with nested virtualization using Azure CLI:

    az vm create \
        --resource-group <resource-group-name> \
        --name <vm-name> \
        --image <image-name> \
        --size <vm-size> \
        --admin-username <username> \
        --admin-password <password> \
        --use-unmanaged-disk \
        --storage-sku Standard_LRS \
        --os-disk-size-gb 128 \
        --data-disk-sizes-gb 1024 \
        --data-disk-caching ReadWrite \
        --public-ip-address "" \
        --nsg "" \
        --vnet-name <vnet-name> \
        --subnet <subnet-name> \
        --location <location> \
        --hyper-v-generation V2 \
        --license-type Windows_Server \
        --nested-virtualization true

    Once the VM is created, you can install Oracle VirtualBox and Garuda Linux inside the VM. However, please note that nested virtualization can have performance implications and may not be suitable for all workloads. If you face any issues with nested virtualization, you can consider using a different approach such as running Garuda Linux on a separate VM or using a different hypervisor such as VMware.

    Please don’t forget to Accept Answer and hit Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members for remediation for similar issues.

    0 comments No comments