Home
%3CLINGO-SUB%20id%3D%22lingo-sub-781346%22%20slang%3D%22en-US%22%3EHow%20to%20create%20a%20Custom%20Hyper-V%20Quick%20Create%20VM%20Gallery%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-781346%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20might%20have%20seen%20that%20%3CA%20href%3D%22https%3A%2F%2Fwww.thomasmaurer.ch%2F2017%2F08%2Finstall-hyper-v-on-windows-10-using-powershell%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EHyper-V%20in%20Windows%2010%3C%2FA%3Egot%20a%20new%20Quick%20Create%20Feature.%20This%20will%20open%20up%20a%20virtual%20machine%20gallery%2C%20which%20allows%20you%20to%20download%20different%20virtual%20machine%20images%2C%20like%20Windows%2010%20or%20Ubuntu.%20For%20example%2C%20the%20default%20image%20is%20a%20Windows%2010%20dev%20VM%2C%20which%20enables%20developers%20to%20quickly%20spin%20up%20a%20development%20environment%20with%20Visual%20Studio.%20But%20you%20can%20also%20add%20your%20own%20virtual%20machine%20templates%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvirtualization%2Fhyper-v-on-windows%2Fuser-guide%2Fcustom-gallery%3FWT.mc_id%3Ditopstalk-blog-thmaure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EHyper-V%20VM%20Gallery%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20do%20that%2C%20you%20have%20to%20do%20three%20things%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ECreate%20a%20virtual%20machine%20image%20(a%20.iso%20or%20compatible%20.vhdx%20file)%3C%2FLI%3E%0A%3CLI%3ECreate%20a%20gallery%20source%20(.json%20file)%20and%20create%20a%20gallery%20item%20(configuration%20inside%20the%20.json%20file)%3C%2FLI%3E%0A%3CLI%3EAdd%20the%20gallery%20source%20to%20the%20VM%20Gallery%20UI%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-1795147880%22%20id%3D%22toc-hId-1795147880%22%3ECreate%20a%20Hyper-V%20virtual%20machine%20image%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20730px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F125072iAAFDD21B2E462CBC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Sysprep%20Virtual%20Machine.png%22%20title%3D%22Sysprep%20Virtual%20Machine.png%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESysprep%20Virtual%20Machine%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20use%20a%20.iso%20(disk%20image)%20or%20a%20compatible%20.vhdx%20(virtual%20hard%20drive)%20file.%20If%20you%20create%20a%20VHDX%20file%2C%20you%20will%20need%20to%20create%20a%20Hyper-V%20Generation%202%20virtual%20machine%20and%20(usually)%20Sysprep%20the%20virtual%20machine.%20The%20Sysprep%20is%20not%20needed%3B%20however%2C%20in%20most%20cases%2C%20you%20want%20to%20do%20this.%20Check%20out%20my%20blog%20post%20about%20%3CA%20href%3D%22https%3A%2F%2Fwww.thomasmaurer.ch%2F2016%2F05%2Fwindows-sysprep-for-virtual-machines%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehow%20to%20Sysprep%20Hyper-V%20VMs%3C%2FA%3E.%20In%20addition%2C%20the%20drive%20should%20also%20be%20at%20least%2020GB.%3C%2FP%3E%0A%3CP%3ENow%20make%20sure%20you%20store%20this%20where%20you%20can%20access%20it%20when%20you%20need%20it%20from%20the%20VM%20gallery.%20If%20you%20have%20multiple%20users%20using%20this%20image%2C%20all%20of%20them%20need%20access%20to%20it.%20You%20can%20place%20this%20on%20a%20web%20server%2C%20a%20file%20share%2C%20or%20even%20a%20local%20disk.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--757009081%22%20id%3D%22toc-hId--757009081%22%3ECreate%20a%20Hyper-V%20gallery%20source%20and%20create%20a%20Hyper-V%20gallery%20item%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20892px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F125073iEDC16C08EC09DDCC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Custom-Hyper-V-Quick-Create-VM-Gallery.jpg%22%20title%3D%22Custom-Hyper-V-Quick-Create-VM-Gallery.jpg%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EHYPER-V%20QUICK%20CREATE%20VM%20GALLERY%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20next%20step%20is%20to%20create%20a%20new%20virtual%20machine%20gallery.%20This%20is%20a%20JSON%20file%2C%20which%20stores%20the%20VM%20images.%3C%2FP%3E%0A%3CP%3EYou%20can%20use%20my%20template%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%7B%0A%20%20%22images%22%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%22name%22%3A%20%22Thomas%20Maurer%20Awesome%20Image%22%2C%0A%20%20%20%20%20%20%22version%22%3A%20%2210.0.16299%22%2C%0A%20%20%20%20%20%20%22locale%22%3A%20%22en-US%22%2C%0A%20%20%20%20%20%20%22publisher%22%3A%20%22ThomasMaurer.ch%22%2C%0A%20%20%20%20%20%20%22lastUpdated%22%3A%20%222018-05-22T23%3A16%3A43Z%22%2C%0A%20%20%20%20%20%20%22description%22%3A%20%5B%0A%20%20%20%20%20%20%20%20%22This%20is%20Toms%20Awesome%20Image!%22%2C%0A%20%20%20%20%20%20%20%20%22%5Cr%5Cn%5Cr%5Cn%22%2C%0A%20%20%20%20%20%20%20%20%22Check%20out%20more%20on%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.thomasmaurer.ch%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.thomasmaurer.ch%3C%2FA%3E%20for%20any%20additional%20details.%22%2C%0A%20%20%20%20%20%20%20%20%22%5Cr%5Cn%5Cr%5Cn%22%0A%20%20%20%20%20%20%5D%2C%0A%20%20%20%20%20%20%22config%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22secureBoot%22%3A%20%22true%22%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%22requirements%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22diskSpace%22%3A%20%2228290580480%22%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%22disk%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22uri%22%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fdownload.microsoft.com%2Fdownload%2F1%2F8%2F2%2F182A2CF7-B1B8-4CEC-876A-E883FA1D671B%2FHyperFeed.zip%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdownload.microsoft.com%2Fdownload%2F1%2F8%2F2%2F182A2CF7-B1B8-4CEC-876A-E883FA1D671B%2FHyperFeed.zip%3C%2FA%3E%22%2C%0A%20%20%20%20%20%20%20%20%22hash%22%3A%20%22sha256%3A7786a0b2ff0d726e095fbcdaded8e2bad8f53b72dda2dd19c7005f3540b5b927%22%2C%0A%20%20%20%20%20%20%20%20%22archiveRelativePath%22%3A%20%22HyperFeed.vhdx%22%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%22logo%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22uri%22%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fwww.thomasmaurer.ch%2FTMLogo.jpg%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.thomasmaurer.ch%2FTMLogo.jpg%3C%2FA%3E%22%2C%0A%20%20%20%20%20%20%20%20%22hash%22%3A%20%22sha256%3A259F7864136D8A238B478CA4BB6F0AE8EF94AA1D31320CD1EA6AD9AE32B08C72%22%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%22symbol%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22uri%22%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fwww.thomasmaurer.ch%2FTMLogo.jpg%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.thomasmaurer.ch%2FTMLogo.jpg%3C%2FA%3E%22%2C%0A%20%20%20%20%20%20%20%20%22hash%22%3A%20%22sha256%3A259F7864136D8A238B478CA4BB6F0AE8EF94AA1D31320CD1EA6AD9AE32B08C72%22%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%22thumbnail%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22uri%22%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fwww.thomasmaurer.ch%2Fthumbnail.jpg%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.thomasmaurer.ch%2Fthumbnail.jpg%3C%2FA%3E%22%2C%0A%20%20%20%20%20%20%20%20%22hash%22%3A%20%22sha256%3A8483670D97078ECF0FA278113C7BAD169448C6C8400B56AACEF0C5D311AB6373%22%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%22details%22%3A%20%5B%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%22name%22%3A%20%22Edition%22%2C%0A%20%20%20%20%20%20%20%20%20%20%22value%22%3A%20%22Windows%2010%20Tom%20Edition%22%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%22name%22%3A%20%22Copyright%22%2C%0A%20%20%20%20%20%20%20%20%20%20%22value%22%3A%20%22Copyright%20(c)%20Thomas%20Maurer.%20All%20rights%20reserved.%22%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%22name%22%3A%20%22License%22%2C%0A%20%20%20%20%20%20%20%20%20%20%22value%22%3A%20%22Evaluation%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.thomasmaurer.ch%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.thomasmaurer.ch%3C%2FA%3E%22%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%5D%0A%20%20%20%20%7D%0A%20%20%5D%0A%7D%0A%7B%0A%20%20%22images%22%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%22name%22%3A%20%22Thomas%20Maurer%20Awesome%20Image%22%2C%0A%20%20%20%20%20%20%22version%22%3A%20%2210.0.16299%22%2C%0A%20%20%20%20%20%20%22locale%22%3A%20%22en-US%22%2C%0A%20%20%20%20%20%20%22publisher%22%3A%20%22ThomasMaurer.ch%22%2C%0A%20%20%20%20%20%20%22lastUpdated%22%3A%20%222018-05-22T23%3A16%3A43Z%22%2C%0A%20%20%20%20%20%20%22description%22%3A%20%5B%0A%20%20%20%20%20%20%20%20%22This%20is%20Toms%20Awesome%20Image!%22%2C%0A%20%20%20%20%20%20%20%20%22%5Cr%5Cn%5Cr%5Cn%22%2C%0A%20%20%20%20%20%20%20%20%22Check%20out%20more%20on%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.thomasmaurer.ch%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.thomasmaurer.ch%3C%2FA%3E%20for%20any%20additional%20details.%22%2C%0A%20%20%20%20%20%20%20%20%22%5Cr%5Cn%5Cr%5Cn%22%0A%20%20%20%20%20%20%5D%2C%0A%20%20%20%20%20%20%22config%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22secureBoot%22%3A%20%22true%22%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%22requirements%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22diskSpace%22%3A%20%2228290580480%22%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%22disk%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22uri%22%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fdownload.microsoft.com%2Fdownload%2F1%2F8%2F2%2F182A2CF7-B1B8-4CEC-876A-E883FA1D671B%2FHyperFeed.zip%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdownload.microsoft.com%2Fdownload%2F1%2F8%2F2%2F182A2CF7-B1B8-4CEC-876A-E883FA1D671B%2FHyperFeed.zip%3C%2FA%3E%22%2C%0A%20%20%20%20%20%20%20%20%22hash%22%3A%20%22sha256%3A7786a0b2ff0d726e095fbcdaded8e2bad8f53b72dda2dd19c7005f3540b5b927%22%2C%0A%20%20%20%20%20%20%20%20%22archiveRelativePath%22%3A%20%22HyperFeed.vhdx%22%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%22logo%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22uri%22%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fwww.thomasmaurer.ch%2FTMLogo.jpg%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.thomasmaurer.ch%2FTMLogo.jpg%3C%2FA%3E%22%2C%0A%20%20%20%20%20%20%20%20%22hash%22%3A%20%22sha256%3A259F7864136D8A238B478CA4BB6F0AE8EF94AA1D31320CD1EA6AD9AE32B08C72%22%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%22symbol%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22uri%22%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fwww.thomasmaurer.ch%2FTMLogo.jpg%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.thomasmaurer.ch%2FTMLogo.jpg%3C%2FA%3E%22%2C%0A%20%20%20%20%20%20%20%20%22hash%22%3A%20%22sha256%3A259F7864136D8A238B478CA4BB6F0AE8EF94AA1D31320CD1EA6AD9AE32B08C72%22%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%22thumbnail%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22uri%22%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fwww.thomasmaurer.ch%2Fthumbnail.jpg%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.thomasmaurer.ch%2Fthumbnail.jpg%3C%2FA%3E%22%2C%0A%20%20%20%20%20%20%20%20%22hash%22%3A%20%22sha256%3A8483670D97078ECF0FA278113C7BAD169448C6C8400B56AACEF0C5D311AB6373%22%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%22details%22%3A%20%5B%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%22name%22%3A%20%22Edition%22%2C%0A%20%20%20%20%20%20%20%20%20%20%22value%22%3A%20%22Windows%2010%20Tom%20Edition%22%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%22name%22%3A%20%22Copyright%22%2C%0A%20%20%20%20%20%20%20%20%20%20%22value%22%3A%20%22Copyright%20(c)%20Thomas%20Maurer.%20All%20rights%20reserved.%22%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%22name%22%3A%20%22License%22%2C%0A%20%20%20%20%20%20%20%20%20%20%22value%22%3A%20%22Evaluation%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.thomasmaurer.ch%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.thomasmaurer.ch%3C%2FA%3E%22%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%5D%0A%20%20%20%20%7D%0A%20%20%5D%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20your%20virtual%20machine%20image%2C%20you%20will%20need%20the%20following%20information%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EName%3C%2FLI%3E%0A%3CLI%3EPublisher%3C%2FLI%3E%0A%3CLI%3EDescription%3C%2FLI%3E%0A%3CLI%3ELocale%3C%2FLI%3E%0A%3CLI%3EVersion%3C%2FLI%3E%0A%3CLI%3ELastUpdated%20(in%20the%20following%20format%3A%26nbsp%3Byyyy-mm-ddThh%3Amm%3AssZ%3C%2FLI%3E%0A%3CLI%3EDisk%20(uri%20to%20the%20vhdx%20or%20iso%20file)%3C%2FLI%3E%0A%3CLI%3ELogo%20(uri)%3C%2FLI%3E%0A%3CLI%3ESymbol%20(uri)%3C%2FLI%3E%0A%3CLI%3EThumbnail%20(uri)%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThe%20following%20notes%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20create%20the%20LastUpdated%20time%2C%20you%20can%20use%20the%20following%20command%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20lang%3D%22PowerShell%22%3EGet-Date%20-UFormat%20%22%25Y-%25m-%25dT%25TZ%22%20%7C%20clip.exe%0A%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20get%20the%20hashes%20of%20the%20files%2C%20you%20can%20use%20the%20following%20command%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20lang%3D%22PowerShell%22%3EGet-FileHash%20-Path%20.%5CTMLogo.jpg%20-Algorithm%20SHA256%0A%3C%2FPRE%3E%0A%3CP%3EYou%20need%20to%20store%20this%20file%20also%20somewhere%20where%20the%20Hyper-V%20Manager%20can%20access%20it.%20So%20again%2C%20this%20can%20be%20a%20web%20server%2C%20file%20share%2C%20or%20local%20path.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-985801254%22%20id%3D%22toc-hId-985801254%22%3EAdd%20the%20gallery%20source%20to%20the%20VM%20Gallery%20UI%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F125074iAF4E63560DB02B7A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Hyper-V-Gallery-Location-registry-key.jpg%22%20title%3D%22Hyper-V-Gallery-Location-registry-key.jpg%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAdd%20the%20gallery%20source%20to%20the%20VM%20Gallery%20UI%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20last%20thing%20you%20need%20to%20do%20is%20to%20add%20the%20path%20of%20the%20virtual%20machine%20gallery%20to%20your%20Hyper-V%20machine.%20This%20can%20be%20done%20by%20adding%20a%20registry%20key%20to%20the%20computer%20you%20want%20to%20use%20it.%20If%20you're%20going%20to%20use%20this%20on%20multiple%20machines%2C%20you%20can%20use%20GPOs%20or%20your%20device%20management%20to%20add%20the%20path%20to%20every%20computer.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENavigate%20to%20the%20following%20location%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EComputer%5CHKEY_LOCAL_MACHINE%5CSOFTWARE%5CMicrosoft%5CWindows%20NT%5CCurrentVersion%5CVirtualization%5C%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELook%20for%20the%20%3CSTRONG%3EGalleryLocations%3C%2FSTRONG%3Eregistry%20item%20and%20add%20your%20gallery%20path%20to%20the%20item.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20used%20the%20following%20sources%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvirtualization%2Fhyper-v-on-windows%2Fuser-guide%2Fcustom-gallery%3FWT.mc_id%3Ditopstalk-blog-thmaure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMicrosoft%20Documentation%20%3C%2FA%3Efrom%20Sarah%20Cooley%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FVirtualization%2FCreate-your-custom-Quick-Create-VM-gallery%2Fba-p%2F382388%3FWT.mc_id%3Ditopstalk-blog-thmaure%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3EMicrosoft%20Blog%3C%2FA%3Epost%20from%20Lars%20Iwer%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-781346%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20892px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F125075i4F6D36E1B2B9D0BC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Custom-Hyper-V-Quick-Create-VM-Gallery.jpg%22%20title%3D%22Custom-Hyper-V-Quick-Create-VM-Gallery.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20create%20a%20custom%20Hyper-V%20quick%20create%20VM%20Gallery%20to%20speed%20up%20deployments%20of%20custom%20Virtual%20Machines%20on%20Hyper-V%20in%20Windows%2010%20and%20Windows%20Server%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-781346%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWindows%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

You might have seen that Hyper-V in Windows 10 got a new Quick Create Feature. This will open up a virtual machine gallery, which allows you to download different virtual machine images, like Windows 10 or Ubuntu. For example, the default image is a Windows 10 dev VM, which enables developers to quickly spin up a development environment with Visual Studio. But you can also add your own virtual machine templates in the Hyper-V VM Gallery.

 

To do that, you have to do three things:

 

  • Create a virtual machine image (a .iso or compatible .vhdx file)
  • Create a gallery source (.json file) and create a gallery item (configuration inside the .json file)
  • Add the gallery source to the VM Gallery UI

Create a Hyper-V virtual machine image

 

 

Sysprep Virtual Machine.pngSysprep Virtual Machine

 

You can use a .iso (disk image) or a compatible .vhdx (virtual hard drive) file. If you create a VHDX file, you will need to create a Hyper-V Generation 2 virtual machine and (usually) Sysprep the virtual machine. The Sysprep is not needed; however, in most cases, you want to do this. Check out my blog post about how to Sysprep Hyper-V VMs. In addition, the drive should also be at least 20GB.

Now make sure you store this where you can access it when you need it from the VM gallery. If you have multiple users using this image, all of them need access to it. You can place this on a web server, a file share, or even a local disk.

 

Create a Hyper-V gallery source and create a Hyper-V gallery item

 

Custom-Hyper-V-Quick-Create-VM-Gallery.jpgHYPER-V QUICK CREATE VM GALLERY

 

The next step is to create a new virtual machine gallery. This is a JSON file, which stores the VM images.

You can use my template:

 

 

 

 

 

 

{
  "images": [
    {
      "name": "Thomas Maurer Awesome Image",
      "version": "10.0.16299",
      "locale": "en-US",
      "publisher": "ThomasMaurer.ch",
      "lastUpdated": "2018-05-22T23:16:43Z",
      "description": [
        "This is Toms Awesome Image!",
        "\r\n\r\n",
        "Check out more on: https://www.thomasmaurer.ch for any additional details.",
        "\r\n\r\n"
      ],
      "config": {
        "secureBoot": "true"
      },
      "requirements": {
        "diskSpace": "28290580480"
      },
      "disk": {
        "uri": "https://download.microsoft.com/download/1/8/2/182A2CF7-B1B8-4CEC-876A-E883FA1D671B/HyperFeed.zip",
        "hash": "sha256:7786a0b2ff0d726e095fbcdaded8e2bad8f53b72dda2dd19c7005f3540b5b927",
        "archiveRelativePath": "HyperFeed.vhdx"
      },
      "logo": {
        "uri": "https://www.thomasmaurer.ch/TMLogo.jpg",
        "hash": "sha256:259F7864136D8A238B478CA4BB6F0AE8EF94AA1D31320CD1EA6AD9AE32B08C72"
      },
      "symbol": {
        "uri": "https://www.thomasmaurer.ch/TMLogo.jpg",
        "hash": "sha256:259F7864136D8A238B478CA4BB6F0AE8EF94AA1D31320CD1EA6AD9AE32B08C72"
      },
      "thumbnail": {
        "uri": "https://www.thomasmaurer.ch/thumbnail.jpg",
        "hash": "sha256:8483670D97078ECF0FA278113C7BAD169448C6C8400B56AACEF0C5D311AB6373"
      },
      "details": [
        {
          "name": "Edition",
          "value": "Windows 10 Tom Edition"
        },
        {
          "name": "Copyright",
          "value": "Copyright (c) Thomas Maurer. All rights reserved."
        },
        {
          "name": "License",
          "value": "Evaluation: https://www.thomasmaurer.ch"
        }
      ]
    }
  ]
}
{
  "images": [
    {
      "name": "Thomas Maurer Awesome Image",
      "version": "10.0.16299",
      "locale": "en-US",
      "publisher": "ThomasMaurer.ch",
      "lastUpdated": "2018-05-22T23:16:43Z",
      "description": [
        "This is Toms Awesome Image!",
        "\r\n\r\n",
        "Check out more on: https://www.thomasmaurer.ch for any additional details.",
        "\r\n\r\n"
      ],
      "config": {
        "secureBoot": "true"
      },
      "requirements": {
        "diskSpace": "28290580480"
      },
      "disk": {
        "uri": "https://download.microsoft.com/download/1/8/2/182A2CF7-B1B8-4CEC-876A-E883FA1D671B/HyperFeed.zip",
        "hash": "sha256:7786a0b2ff0d726e095fbcdaded8e2bad8f53b72dda2dd19c7005f3540b5b927",
        "archiveRelativePath": "HyperFeed.vhdx"
      },
      "logo": {
        "uri": "https://www.thomasmaurer.ch/TMLogo.jpg",
        "hash": "sha256:259F7864136D8A238B478CA4BB6F0AE8EF94AA1D31320CD1EA6AD9AE32B08C72"
      },
      "symbol": {
        "uri": "https://www.thomasmaurer.ch/TMLogo.jpg",
        "hash": "sha256:259F7864136D8A238B478CA4BB6F0AE8EF94AA1D31320CD1EA6AD9AE32B08C72"
      },
      "thumbnail": {
        "uri": "https://www.thomasmaurer.ch/thumbnail.jpg",
        "hash": "sha256:8483670D97078ECF0FA278113C7BAD169448C6C8400B56AACEF0C5D311AB6373"
      },
      "details": [
        {
          "name": "Edition",
          "value": "Windows 10 Tom Edition"
        },
        {
          "name": "Copyright",
          "value": "Copyright (c) Thomas Maurer. All rights reserved."
        },
        {
          "name": "License",
          "value": "Evaluation: https://www.thomasmaurer.ch"
        }
      ]
    }
  ]
}

 

 

 

 

 

 

For your virtual machine image, you will need the following information:

 

  • Name
  • Publisher
  • Description
  • Locale
  • Version
  • LastUpdated (in the following format: yyyy-mm-ddThh:mm:ssZ
  • Disk (uri to the vhdx or iso file)
  • Logo (uri)
  • Symbol (uri)
  • Thumbnail (uri)

The following notes:

 

To create the LastUpdated time, you can use the following command:

 

Get-Date -UFormat "%Y-%m-%dT%TZ" | clip.exe

 

To get the hashes of the files, you can use the following command:

 

Get-FileHash -Path .\TMLogo.jpg -Algorithm SHA256

You need to store this file also somewhere where the Hyper-V Manager can access it. So again, this can be a web server, file share, or local path.

 

Add the gallery source to the VM Gallery UI

 

 

Hyper-V-Gallery-Location-registry-key.jpgAdd the gallery source to the VM Gallery UI

 

The last thing you need to do is to add the path of the virtual machine gallery to your Hyper-V machine. This can be done by adding a registry key to the computer you want to use it. If you're going to use this on multiple machines, you can use GPOs or your device management to add the path to every computer.

 

Navigate to the following location:

 

 

 

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\

 

 

 

Look for the GalleryLocations registry item and add your gallery path to the item.

 

I used the following sources: