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.