-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathMultipleDiskExample.psd1
More file actions
33 lines (32 loc) · 1.68 KB
/
MultipleDiskExample.psd1
File metadata and controls
33 lines (32 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@{
AllNodes = @(
@{
NodeName = 'MULTIDISK';
Lability_Media = '2016_x64_Datacenter_Nano_EN_Eval';
## Specify additional disks as an array of hashtables.
## Controller location is inferred by the position in the array - the first array element is
## attached to the controller location #1.
## Only the default controller - controller number 0 is supported. The default controller type of
## a generation 1 VM is IDE; generation 2 defaults to a SCSI controller.
## The drive(s) are not partitioned or formatted in any way.
## Currently only dynamic VHDs can be created - you can create a fix VHD prior to running
## Lability to attach it.
Lability_HardDiskDrive = @(
## Lability can create one or more empty VHDs. You can pass any parameter
## supported by the xVHD resource (https://github.com/PowerShell/xHyper-V#xvhd)
@{
## Specifies the type of virtual hard disk file. Supported values are 'VHD' or 'VHDX'
Generation = 'VHDX';
## Specifies the maximum size of the VHD.
MaximumSizeBytes = 127GB;
}
## You can also attach an existing VHD/X file by specifying the path.
@{
## Use the specified VHD(X).
## NOTE: VHD(X) files created outside of Lability are not removed when VMs are removed.
VhdPath = 'C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\Example.vhd';
}
)
}
);
};