Examples/CustomMedia.psd1
@{ AllNodes = @( @{ NodeName = '2008R2'; Lability_ProcessorCount = 2; Lability_Media = '2008R2_x64_Standard_EN_Eval'; } @{ NodeName = '2012R2VL'; Lability_ProcessorCount = 2; Lability_Media = '2012R2_x64_Standard_EN_VL'; # Specify xVMDvdDrive options as a hashtable to mount an ISO image # Lability_DvdDrive = @{ ControllerNumber = 0; # ControllerLocation = 1; # Path = 'C:\Path\To\Image.iso'; } } ); NonNodeData = @{ Lability = @{ Media = @( @{ ## The image ID that is used by nodes when refencing the image. Id = '2008R2_x64_Standard_EN_Eval'; ## The target filename that the image is downloaded into the 'ParentVhdPath'. You can manually place ## a vhdx here to avoid the download process. Filename = '2008R2_x64_Standard_EN_Eval.vhdx'; ## The architecture is not used for custom images as the disk partitioning is already complete, ## but it is a required media property. Architecture = 'x64'; ## The source URI to download the file from. This is only used if the vhdx image is not present ## in the 'ParentVhdPath' location. If you place the vhdx there, it's not (re)downloaded. Uri = 'file://C:\Users\Public\Documents\Hyper-V\Virtual%20Hard%20Disks\2008R2_x64_Standard_EN_Eval.vhdx'; ## If you want the module to check the file copy, you can specify a MD5 checksum. If you do specify ## a checksum you HAVE to ensure it's correct otherwise it will continuously attempt to download the ## image! Checksum = ''; ## Media description. Description = 'Custom SYSPREP''d Windows Server 2008 R2 Standard 64bit English Evaluation'; ## You must specify 'VHD' type to ensure that WIM images are not attempted to be extracted. MediaType = 'VHD'; ## The operating system type. If 'Linux' is specified, Lability will not attempt to configure the ## VM's filesytem, i.e. inject DSC resources or generate an 'unattend.xml' file. OperatingSystem = 'Windows'; } @{ ## This example defines volume license edition of Server 2012 R2 Datacenter edition from an ISO. ## NOTE: you will need to update the Uri to point to a valid/accessible Uri location! Id = '2012R2_x64_Datacenter_EN_VL'; Filename = '2012R2_x64_EN_VL.iso'; Architecture = 'x64'; Uri = 'file://C:\Users\Public\Documents\Downloads\en_windows_server_2012_R2_refresh_x64.ISO'; Checksum = ''; Description = 'Windows Server 2012 R2 Datacenter 64bit English Volume License'; MediaType = 'ISO'; ImageName = 'Windows Server 2012 R2 SERVERDATACENTER'; OperatingSystem = 'Windows'; } @{ ## This example defines volume license edition of Server 2012 R2 Datacenter edition from an ISO, ## with Windows Management Framework 5 installed. NOTE: you will need to update the Uri to point to ## a valid/accessible Uri location! Id = '2012R2_x64_Datacenter_EN_VL_WMF5'; Filename = '2012R2_x64_EN_VL.iso'; Architecture = 'x64'; Uri = 'file://C:\Users\Public\Documents\Downloads\en_windows_server_2012_R2_refresh_x64.ISO'; Checksum = ''; Description = 'Windows Server 2012 R2 Datacenter 64bit English Volume License with WMF 5'; MediaType = 'ISO'; ImageName = 'Windows Server 2012 R2 SERVERDATACENTER'; OperatingSystem = 'Windows'; Hotfixes = @( @{ Id = 'Win8.1AndW2K12R2-KB3134758-x64.msu'; Uri = 'https://download.microsoft.com/download/2/C/6/2C6E1B4A-EBE5-48A6-B225-2D2058A9CEFB/Win8.1AndW2K12R2-KB3134758-x64.msu'; } ) } ); Network = @( ## If no network is specified, the virtual machine will be attached to a default internal virtual ## switch. ); }; }; }; |