Skip to content
No description, website, or topics provided.
PowerShell Batchfile
Branch: nano-server-su…
Clone or download
alexpilotti Merge pull request #10 from ader1990/nano_remove_com_port
Do not use a COM port when generating Nano image
Latest commit 444a27f Apr 27, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Bin Replaces 7z.exe with 7za.exe Nov 23, 2015
samples Adds WinPE Additional content support Feb 25, 2016
windows-curtin-hooks @ 6eb00b4 fix finalize for newer version of curtin Jan 25, 2016
.gitignore Adds .gitignore Oct 10, 2015
.gitmodules Adds windows-curtin-hooks submodule Nov 25, 2015
CloudbaseInitOfflineSetup.ps1
Common.psm1 Improves WinPE support Feb 16, 2016
FastWebRequest.psm1 Updates FastWebRequest.psm1 Nov 23, 2015
NewNanoServerImage.ps1 Do not use a COM port when generating Nano image Apr 27, 2017
NewWinPEImage.ps1 Adds WinPE Additional content support Feb 25, 2016
PostInstall.ps1
Readme.md Renames NewNanoServerVHD.ps1 to NewNanoServerImage.ps1 Nov 22, 2015
SetupComplete.cmd Fixed bugs Sep 16, 2015
ini.ps1

Readme.md

Readme

Building a Nano Server image for OpenStack consists in 2 main steps:

  • Preparing a NanoServer image
  • Downloading and installing Cloudbase-Init in the offline VHD image

All you need to do is to run NewNanoServerImage.ps1 to generate a complete image.

NanoServer OpenStack build automation

A full example is available in Build.ps1.

$targetPath = "C:\VHDs\Nano.vhdx"
$isoPath = "C:\ISO\Windows_Server_2016_Technical_Preview_4.ISO"
$password = ConvertTo-SecureString -AsPlaintext -Force "P@ssw0rd"

.\NewNanoServerImage.ps1 -IsoPath $isoPath -TargetPath $targetPath -AdministratorPassword $password

The resulting nano.vhdx file is now ready to be uploaded in Glance:

glance image-create --property hypervisor_type=hyperv --name "Nano Server" `
--container-format bare --disk-format vhd --file $targetPath
You can’t perform that action at this time.