PlagueHO / LabBuilder

PowerShell Module for building a Hyper-V Lab environment from a simple XML configuration file.
MIT License
226 stars 38 forks source link

Add function to create template disks from ISO image #27

Closed MS-MatthewWalker closed 8 years ago

MS-MatthewWalker commented 8 years ago

`

Win2016-
<TemplateDisk Name='StandardFullG2.VHDX'
              IsNano='N'
              WimImage='SERVERSTANDARD'
              Generation='2'
              VHDFormat='VHDX'
              PartitionStyle='GPT'
              />
<TemplateDisk Name='DataCenterCoreG2.VHDX'
          IsNano='N'
          WimImage='SERVERDATACENTERCORE'
          Generation='2'
          VHDFormat='VHDX'
          PartitionStyle='GPT'
              />
<TemplateDisk Name='DataCenterNanoG2.VHDX'
          IsNano='Y'
          WimImage='CORESYSTEMSERVER_INSTALL'
          Generation='2'
          VHDFormat='VHDX'
          PartitionStyle='GPT'
          Packages='FailoverCluster,Guest,Storage,Defender'
              />

`

XML syntax - Once I have the function written I will add and submit pull request

PlagueHO commented 8 years ago

Cool - this has been on my todo list since I first started this project :smile:

Suggestion:

I am presuming the Prefix is used to append "Win2016-" onto the beginning of the VHDx filename? If so, then perhaps make the a property of the for each template.

Also, how will the path to the Source ISO that will build these templates be provided?

Have you made a fork of this repo? You'll want to do that first so you can make changes to your fork and the submit the PR from that fork (or a branch of your fork most likely). Also, submit PR's to the Dev branch of this repo rather than master.

MS-MatthewWalker commented 8 years ago

Ok, that makes sense for the prefix – I already have all the code to do this, just modifying to fit the format. Some of which is borrowed from your nanoserver creation script ☺

On mine I added the source iso into settings I’ll do that as soon as I figure out how to fork it

Like I said I’m still learning ☺

From: Daniel Scott-Raynsford [mailto:notifications@github.com] Sent: Wednesday, February 10, 2016 6:27 PM To: PlagueHO/LabBuilder LabBuilder@noreply.github.com Cc: Matthew Walker mwalker@dragon-reach.com Subject: Re: [LabBuilder] Add function to create template disks from ISO image (#27)

Cool - this has been on my todo list since I first started this project [:smile:]

Suggestion:

I am presuming the Prefix is used to append "Win2016-" onto the beginning of the VHDx filename? If so, then perhaps make the a property of the for each template.

Also, how will the path to the Source ISO that will build these templates be provided?

Have you made a fork of this repo? You'll want to do that first so you can make changes to your fork and the submit the PR from that fork (or a branch of your fork most likely). Also, submit PR's to the Dev branch of this repo rather than master.

— Reply to this email directly or view it on GitHubhttps://github.com/PlagueHO/LabBuilder/issues/27#issuecomment-182654687.

PlagueHO commented 8 years ago

Oh I just realized I already have an attribute in the