AzureStacl installing " the first virtual machine MAS-DC01 can not be started up" RRS feed

  • Question

  • i guess that maybe it's caused by hyper-V ....how can i address this issue?

    Tuesday, June 13, 2017 2:14 AM


  • Hello,

    If the Hypervisor is no longer running, make sure that VT and SLAT are enabled in the bios.


    This error can also occur when CloudBuilder.vhdx not running on a Baremetal server and is instead running on VMWare or Nested Hyper-V which is currently not a supported environment.    

    If CloudBuilder.vhdx is running on a Baremetal server: 

    Try starting MAS-DC01 along with the other VM’s via Failover Cluster Manager.


    VMs can fail to start from a lack of resources:

    To test, run the following PowerShell and post the output back to the Forum.


    function CheckSystemDisk {

        write-host -ForegroundColor yellow "["(date -format "HH:mm:ss")"]" "Checking system disk capacity..."

        $systemDisk = Get-Disk | ? {$_.IsSystem -eq $true}

        If ($systemDisk.Size -lt 180 * 1024 * 1024 * 1024)


                write-host -ForegroundColor red "["(date -format "HH:mm:ss")"]" " -- Check system disk failed - Size should be 180 GB minimum."





                write-host -ForegroundColor green "["(date -format "HH:mm:ss")"]" " -- Check system disk passed successfully."




    function CheckDisks {

        write-host -ForegroundColor yellow "["(date -format "HH:mm:ss")"]" "Checking physical disks..."


        write-host -ForegroundColor gray "["(date -format "HH:mm:ss")"]" " -- Listing of all physical disks on this server:"

        write-host -ForegroundColor gray (Get-PhysicalDisk | Format-Table -Property @("FriendlyName", "SerialNumber", "CanPool", "BusType", "OperationalStatus", "HealthStatus", "Usage", "Size") | Out-String)

        $physicalDisks = Get-PhysicalDisk | Where-Object { ($_.BusType -eq 'RAID' -or $_.BusType -eq 'SAS' -or $_.BusType -eq 'SATA') -and $_.Size -gt 135 * 1024 * 1024 * 1024 }

        $selectedDisks = $physicalDisks | Group-Object -Property BusType | Sort-Object -Property Count -Descending | Select-Object -First 1

        if ($selectedDisks.Count -ge 3) {

            write-host -ForegroundColor gray "["(date -format "HH:mm:ss")"]" " -- Listing of all physical disks meeting Azure Stack requirements:"

            write-host -ForegroundColor gray ($physicalDisks | Format-Table -Property @("FriendlyName", "SerialNumber", "BusType", "OperationalStatus", "HealthStatus", "Usage", "Size") | Out-String)

            write-host -ForegroundColor green "["(date -format "HH:mm:ss")"]" " -- Check physical disks passed successfully. Note that Azure Stack Technical Preview will now handle situations where there is a pre-existing storage pool, and will delete/recreate it."



        if ($selectedDisks.Count -lt 3) {

            write-host -ForegroundColor red "["(date -format "HH:mm:ss")"]" " -- Check physical disks failed - At least 4 disks or more of the same bus type (RAID/SAS/SATA), and of capacity 135 GB or higher are strongly recommended. 3-disk configurations may work but are not tested by Microsoft."




    function CheckFreeSpaceForExtraction {

        write-host -ForegroundColor gray "["(date -format "HH:mm:ss")"]" " Checking free space for extracting the Azure Stack files..."

        write-host -ForegroundColor gray "["(date -format "HH:mm:ss")"]" " -- Listing disks and their free space"

        write-host -ForegroundColor gray (Get-Disk | Get-Partition | Get-Volume | Sort-Object -Property SizeRemaining -Descending | Out-String)

        $volumes = (Get-disk | ? {$_.BusType -ne 'File Backed Virtual' -or $_.IsBoot} | Get-Partition | Get-Volume |`

             ? {-not [String]::IsNullOrEmpty($_.DriveLetter)} | sort -Property SizeRemaining -Descending)

        if (!$volumes -or ($volumes | Measure-Object).count -le 0) {

            Write-Host -ForegroundColor red "["(date -format "HH:mm:ss")"]" " -- Free space check failed. No volumes are available."



        if ($volumes[0].SizeRemaining -lt 120 * 1024 * 1024 * 1024) {

            write-host -ForegroundColor red "["(date -format "HH:mm:ss")"]" " -- Free space check failed. Azure Stack requires 130 GB for the expansion of the Cloudbuilder.vhdx file. An additional 40 GB may be needed if you want to keep the ZIP and self extractor files."





            write-host -ForegroundColor green "["(date -format "HH:mm:ss")"]" " -- Free space check passed successfully."





    ### get free disk space on C:

    $disk = Get-WmiObject Win32_LogicalDisk -Filter "DeviceID='C:'" |

    Select-Object Size,FreeSpace

    ### get total memory

    $instances = Get-CimInstance -Namespace "root\cimv2" -ClassName Win32_PhysicalMemory

    $totalMemory = 0

    Foreach ($i in $instances)


            $totalMemory += $i.Capacity/(1024 * 1024)


    ### get available memory

    $instance = Get-CimInstance -Namespace "root\cimv2" -ClassName Win32_PerfRawData_BalancerStats_HyperVDynamicMemoryBalancer

    ### Display total/availalbe Memory & free disk space on C:










    We apologize for any inconvenience and appreciate your time and interest in Azure Stack.

    If you experience any issues with the TP3 release, feel free to contact us.


    Azure Stack TP3R Docs:






    PowerShell giving you the Blues? Try my Azure Stack PowerShell Helper scripts

    AzureStack Automation: RM Module Check/Fix ver.1.2.9 plus AzureStack-Tools

    AzureStack Automation: Setup & Validate AdminStackAdmin/User ARM Endpoints

    AzureStack Automation: Validate and Set Default Image                                    

    AzureStack Automation: Register Azure Stack for Azure Marketplace Syndication



    Gary Gallanes

    Tuesday, June 13, 2017 5:09 PM