Skip to content

Instantly share code, notes, and snippets.

@Sorecchione07435
Last active October 29, 2023 15:46
Show Gist options
  • Select an option

  • Save Sorecchione07435/46b4cc3c2edab14598ee9c742c7aeee2 to your computer and use it in GitHub Desktop.

Select an option

Save Sorecchione07435/46b4cc3c2edab14598ee9c742c7aeee2 to your computer and use it in GitHub Desktop.
How to Install Cinder Volume for Windows

How to Install Cinder Volume for Windows

This is a separate guide that shows how to create volumes on OpenStack inside Windows

This guide continues the previous one: OpenStack on Hyper-V

This guide is totally OPTIONAL, it is only necessary if you want to create volumes from Windows

Creating SMB Share for Volumes Location

Open Windows Powershell as Administrator

First, create a folder named "volumes" wherever you want, I recommend it on a large external disk

Now create a network share for the volumes folder

New-SmbShare -Name volumes -Path D:\volumes

In the Path parameter make sure to enter the path of the folder you created previously

Now you will need to grant all read and write permissions on the newly created share

Grant-SmbShareAccess -Name volumes -AccountName "Everyone" -AccessRight Full -Force

Installing Cinder Volume Storage on Windows

First of all, download the MSI setup from this URL: https://cloudbase.it/downloads/CinderVolumeSetup_Yoga_20_0_0.msi

Run it with Powershell and fill in all the required fields, entering the location of your network share, the location of the Glance api, the Cinder database connection, the Nova authentication, all this information you can find in the files /etc/cinder/cinder.conf and /etc/nova/nova.conf from your OpenStack controller and finally start the installation

And make sure you use SMB3 driver

Creating a test volume

If you are sure that you have successfully installed the Cinder Volume, you can now try creating a volume

Create a test volume with:

cinder create --name volume1 30

Now you can see if the volume was created successfully from the dashboard

Screenshot (4)

And all the volumes you create will be stored in the volumes folder you created at the beginning

And you will be able to attach these volumes on your instances launched on Hyper-V

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment