You can assign a base layer to a CVD using the Mirage PowerCLI.
Procedure
- 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.
- Select a CVD to assign the base layer.
- Run the Get-MirageCvd cmdlet to retrieve the Mirage CVDs, and note the name of the Mirage CVD for which to assign base layer.
- 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.
- Select a base layer for the CVD.
- Run the Get-MirageBaseLayer cmdlet to retrieve the Mirage base layers, and note the name of the base layer to apply to the CVD.
- 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.
- Assign the base layer to the CVD.
- 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.
- Run the Set-MirageCvd cmdlet to assign the base layer to the specified CVD.
- (Optional) If you selected the download only assign option, query and apply the download only base layer assignment.
- Run the Get-MirageAssignment cmdlet to retrieve the download only assignment.
- Run the Apply-MirageAssignment cmdlet to apply the assignment.