Quick Start Manual
8. To run the build script, run the command:
powershell -executionpolicy bypass -noninteractive -file build-razor-
winpe.ps1
NOTE: This step takes some time to complete. After completion, it creates a directory with the
name razor-winpe under the current working directory. The final custom WinPE image,
bootmgr.exe (for Windows 2012 R2 repositories), boot.wim, and install.wim are copied to this
directory.
Copying WinPE and Install Media to ASM Repository and Updating
Permissions
To copy WinPE and install media to ASM repository and update permissions for all files in the repository:
1. Copy the new boot.wim and install.wim files to ASM virtual appliance under /var/lib/razor/repo-
store/<your 2012 repo>/SOURCES
2. Make sure you update the permissions on the boot.wim and install.wim files on ASM virtual
appliance. Therefore you can run the files. To perform this task, run the following commands:
"sudo chmod 755 /var/lib/razor/repo-store/<your windows repo>/sources/
boot.wim"
"sudo chmod 755 /var/lib/razor/repo-store/<your windows repo>/sources/
install.wim"
3. Rename the new WinPE image file that you have created in the earlier section to razor-winpe.wim,
and then copy the file to the root of your Windows repository created using the steps described in
the section Create a repository with Windows installation media on ASM appliance.
4. If you are deploying Windows 2012 R2, you should also copy the latest bootmgr.exe file to the root
of your Windows repository created using the steps described in the section
Create a repository with
Windows installation media on ASM appliance. This file is available in the output directory when you
create your customized WinPE image as specified in the earlier section.
5. Make sure that the right privileges are granted to the repository files.
"sudo chmod 755 /var/lib/razor/repo-store/<your windows repo>/bootmgr.exe"
"sudo chmod 755 /var/lib/razor/repo-store/<your windows repo>/razor-
winpe.wim"
"sudo find <your windows repo> -print0 | sudo xargs -0 chown razor:razor"
“sudo setsebool -P samba_export_all_ro 1”
Updating default-unattended.xml.erb and wim_boot.erb files for Windows
2012 R2
You must update the default-unattended.xml.erb and wim_boot.erb files on the ASM virtual appliance for
Windows 2012 R2.
To update default-unattended.xml.erb and wim_boot.erb files on ASM virtual appliance:
1. Using a text editor with sudo permissions, open the default-unattended.xml.erb file available in the
following directory /opt/razor-server/installers/windows/8-pro/. Use sudo and enter the delladmin
password.
2. Enter the Windows product key where the product key is saved in the default-unattended.xml.erb
file.
NOTE: To obtain Windows license keys, contact your vendor.
3. To deploy Windows 2012 R2, you must also update the Windows Image Type in the default-
unattended.xml.erb
file. For more information, see Updating Unattended Installation For Windows
2012 Version other than Windows 2012 Standard.
28