A pre-built Windows Image is required to create environments in Murano. Because of its size it’s better to build the image on the same host where OpenStack is installed. This section describe steps required to build such an image.

Prepare Build Environment

># cd /opt/git
># git clone git://github.com/stackforge/murano-deployment.git
            
  • Change directory to murano-deployment/image-builder folder:

># cd /opt/git/murano-deployment/image-builder
            
  • Create folder structure for image builder:

># make build-root
            
># make test-build-files
            

Build The Image

  • Get list of supported images:

># make
            
  • Run image build process:

 ># make ws-2012-std
            
  • Wait until process finishes

  • The image file ws-2012-std.qcow2 will be stored in /opt/image-builder/share/images folder.

Import Windows Image Into Glance

Now when you’ve built a Windows Image it must be imported into Glance.

  • Import openrc file which contains environment variables definitions required by OpenStack components:

>$ source openrc
            
  • Import the Windows Server 2012 image into Glance:

>$ cd /opt/image-builder/share/images
>$ glance image-create --name ws-2012-std --disk-format qcow2           \
    --container-format bare --file ws-2012-std.qcow2 --is-public true     \
    --property murano_image_info='{"type":"windows.2012", "title":"Windows Server 2012 Standard"}'
            

Warning

The value of the --property argument named murano_image_info is a JSON string. Only double quotes are valid in JSON, so please type the string exactly as in the example above.