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
Samba should be already installed (See Configure samba share)
Clone murano-deployment repository:
># 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
Download and put the following files into the specified paths under
/opt/image-builder
folder:Windows 2012 Server ISO evaluation version: libvirt/images/ws2012eval.iso
VirtIO drivers should be placed to libvirt/images/virtio-win-0.1-52.iso
CloudBase-Init for Windows: share/files/CloudbaseInitSetup_Beta.msi
Far Manager: share/files/Far30b3367.x64.20130426.msi
Git client share/files/Git-1.8.1.2-preview20130201.exe
Sysinternals Suiteshare/files/SysinternalsSuite.zip
unzip.exe tool share/files/unzip.exe
PowerShell v3 share/files/Windows6.1-KB2506143-x64.msu
.NET 4.0: share/files/dotNetFx40_Full_x86_x64.exe
.NET 4.5: share/files/dotNetFx45_Full_setup.exe
Murano Agent share/files/MuranoAgent.zip
Test that all required files are in place:
># 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.