What's the minimum disk size required for an Ubuntu VM?

ROODAY 6 Reputation points
2020-11-25T14:49:59.127+00:00

I'm running a game server on Azure with an OS disk and a Data disk, with the game server on the data disk so it doesn't get bogged down by OS required disk operations. When I look at the space used, the OS disk has only a couple Gb used, so I was looking to create another VM with an OS disk of 4gb, but the Create VM button is greyed out for this disk. Is there a minimum disk size (it doesn't seem to be advertised)? Why am I forced to use more disk space than I need?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,128 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
572 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. deherman-MSFT 33,456 Reputation points Microsoft Employee
    2020-11-25T21:24:49.78+00:00

    @ROODAY
    The default virtual hard disk size for the operating system (OS) is typically 30 GB on a Linux VM in Azure. Since the OS disk size is set by the image you will not be able to shrink the size on creation. To have a smaller OS disk size you could upload a custom VHD.

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    2 people found this answer helpful.

  2. Cristian SPIRIDON 4,471 Reputation points
    2020-11-25T17:58:32.54+00:00

    You can create the VM and then destroy it but keep the disk.
    Shrink the disk and then recreate another VM with reduced size disk.
    Following blog show what you need to do.

    Is a pity that you can't create the VM with reduced size from the beginning...

    Hope this helps.