Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated README with some missing bits #1

Open
wants to merge 1 commit into
base: add-maas-image-support
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,23 @@ Generate MaaS compatible image

Generating an image for MaaS follows the same rules outlined above for OpenStack images. For this purpose there is a separate commandlet:

Change this to something along the lines of: if you download this repo as a zipfile on windows, make sure you "Unblock-File repo.zip" before unarchiving. This will prevent errors about scripts not being signed.

If you want to see available installation images, you may print the "$images" variable

Example:

Import-Module .\WinImageBuilder.psm1

# This is the content of your Windows ISO
$wimFilePath = "D:\sources\install.wim"

# Check what images are supported in this Windows ISO
$images = Get-WimFileImagesInfo -WimFilePath $wimFilePath

# Select the first one
# [0] - Core Installation
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls also add something like: if you want to see available installation images, you may print the $images variable

# [1] - GUI Installation
$image = $images[0]

New-MaaSImage -WimFilePath $wimFilePath -ImageName $image.ImageName`
Expand All @@ -102,4 +109,4 @@ Please make sure that when cloning this repository on Windows, you use Unix styl

The resulting image can be copied to your MaaS install and uploaded as follows:

maas root boot-resources create name=windows/win2012hvr2 architecture=amd64/generic filetype=ddtgz content@=$HOME/win2012hvr2-dd
maas root boot-resources create name=windows/win2012hvr2 architecture=amd64/generic filetype=ddtgz content@=$HOME/win2012hvr2-dd