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

Add a function to build volume images #354

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kuanlin-Chen
Copy link

Add function New-VolumeImage to build volume images, the volume image can be used as a D disk on Openstack instances.

How to use:

Set-IniFileValue -Path (Resolve-Path $ConfigFilePath) -Section "DEFAULT" `
                                                      -Key "image_path" `
                                                      -Value "C:\CloudImage\40G-D-Volume.img"
Set-IniFileValue -Path (Resolve-Path $ConfigFilePath) -Section "DEFAULT" `
                                                      -Key "image_type" `
                                                      -Value "MAAS"
Set-IniFileValue -Path (Resolve-Path $ConfigFilePath) -Section "vm" `
                                                      -Key "disk_size" `
                                                      -Value "42949672960"
New-VolumeImage -ConfigFilePath $ConfigFilePath

@AppVeyorBot
Copy link

@Kuanlin-Chen
Copy link
Author

Excuse me, do you have any plan to promote this feature? If not, it's ok to close this thread.

@ader1990
Copy link
Member

Hello, thank you for the PR. Is there any reason you would like to have a volume image? Maybe dual boot or rescue images?

@Kuanlin-Chen
Copy link
Author

It was for our VDI (Virtual Desktop) project which runs on OpenStack platform, customers required a particular volume size like 50GB, 200GB, or even 1TB, the volume will be attached to the Nova instances and works as a D drive on Windows OS.

My purpose was to generate volume images fast and automatically, but I can barely remember the reason why I did this through windows-openstack-imaging-tools rather than using OpenStack cli command, perhaps, we just tried to avoid increasing too much load for OpenStack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants