You can assign a base layer to a CVD using the Mirage PowerCLI.

Procedure

  1. Run the Connect-MirageServer cmdlet to connect to the Mirage server.

    Connect-MirageServer ServerIPAddress Username Password -TrustUnknownCertificate

    ServerIPAddress is the IP address of the Mirage server, and Username and Password are the log-in credentials of the privileged user for the Mirage server.

  2. Select a CVD to assign the base layer.
    1. Run the Get-MirageCvd cmdlet to retrieve the Mirage CVDs, and note the name of the Mirage CVD for which to assign base layer.
    2. Run the $cvd = Get-MirageCVD 'cvdname'| Select-Object -First 1 command.

      cvd is the name you select for this variable, cvdname is the name of the CVD that you selected.

  3. Select a base layer for the CVD.
    1. Run the Get-MirageBaseLayer cmdlet to retrieve the Mirage base layers, and note the name of the base layer to apply to the CVD.
    2. Run the $baselayer = Get-MirageBaseLayer 'baselayername' | Select-Object -First 1 command.

      baselayer is the name you select for this variable, and baselayername is the name of the base layer that you selected for the CVD.

  4. Assign the base layer to the CVD.
    1. Run the Set-MirageCvd cmdlet to assign the base layer to the specified CVD.

      Option

      Action

      Download only assign base layer to the CVD

      Run the $cvd = Set-MirageCvd -CVD $cvd -BaseLayer $baselayer -IgnoreWarnings -Force -DownloadOnly command.

      Full assign base layer

      Run the $cvd = Set-MirageCvd -CVD $cvd -BaseLayer $baselayer -IgnoreWarnings -Force command.

  5. (Optional) If you selected the download only assign option, query and apply the download only base layer assignment.
    1. Run the Get-MirageAssignment cmdlet to retrieve the download only assignment.
    2. Run the Apply-MirageAssignment cmdlet to apply the assignment.