▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
Hyper-V Quick Create is great - but making that .json
gallery is a massive pain! Here’s a python script to generate that file
for you!
Organize your gallery like this:
gallery
└─ Image Name
├─ description.txt
├─ version.txt
├─ details.json
├─ logo.png
├─ symbol.png
├─ thumbnail.png
└─ disk.vhdx
galleryRoot directory of containing image folders
Image NameName of image in Gallery
discription.txtParagraph of text describing contents/purpose of image
version.txtImage version number
details.jsonjson array of key/value pairs containing image details
logo.pngCompany logo displayed on under thumbnail on gallery page
symbol.pngSymbol displayed in gallery image list
thumbnail.pngThumbnail of desktop displayed on gallery page
disk.vhdxThe virtual machine .vhd or .vhdx disk image
Run generate_new_gallery.py and let it go!
$ python generate_new_gallery.pyThe Quick Create gallery requires SHA256 hash of each file. If you have 10GB+ disk images this can take a while…go grab some coffee and watch console progress.
Included in this repo is an example to show how to build you gallery.
Remember you need to add the path to gallery.json to
registry
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization.