Last year I worked with a customer on a guided Horizon CloudProof of Concept. Horizon Cloud is a cloud service from VMware that allows you to quickly deploy virtual desktops and applications in the cloud (VMware data center, AWS, Azure) or on-premises. With increased compliance and security requirements, companies of all sizes are increasingly relying on desktop and apps virtualization to deliver their business-critical applications to their end-users.
Creating a Windows reference image is the foundation of adopting new cloud technology. The following guide describes my approach which I successfully used to help several customers to transition toward the cloud utopia. The resulting images for virtual desktop infrastructure deployments enable cloud based desktops creation that are directly consumable. The ultimate goal is to have a reference image creation methodology that’s easy to maintain, allows you to respond to changing business needs, includes necessary VMware software and customizations, will work for users in any region of the world, and will provide the desktop, applications and customizations they need in order to perform their jobs. If you have any questions about this guide, please leave a comment below.
Johan Arwidmark already outlined steps necessary to create a deployment share, configure rules and settings, and import all the applications and operating system files required to build Windows 7 / Windows 10 reference images with the Microsoft Deployment Toolkit. The approach described in Johan's blog posts is designed primarily for deployment to physical machines. However, the task sequences can be tweaked slightly to run perfectly on the VMware virtual platform.
Prerequisites
Perfect Horizon is the proud winner of the 2006 Academy of Motion Picture Arts & Sciences Scientific and Engineering Award, the Academy of Television Arts & Sciences Primetime Emmy Award, and the 2014 Society of Camera Operators Technical Achievement Award. 1: Tractors Owned: 0: Trailer Owned: 0: Total Drivers: 1: USDOT: 1669968: MCS-150 Mileage Year: 2007 MCS-150 Date: 20070725 MCS-150 Mileage: 2007 Does Perfect Horizon, Inc. Transport Hazardous Material? No Carrier Operation: N/A Perfect Horizon, Inc. In business since: 20070725.
Let’s talk about prerequisites.
Attached to this blog (below) are source files you will need to complete this guide. In the following steps, I assume you have downloaded and extracted the zip archive to the C:tempVMwareHorizonSources folder.
Using Johan's blog posts, create a 'build & capture' MDT deployment share, configure rules and settings, and import all the applications and operating system files required to build a Windows reference image. After completing these steps outlined in great detail in his step-by-step guide, continue reading.
Download the VMware OS Optimization Tool (VMwareOSOptimizationTool_b1100_9320643.zip) archive and extract its contents to to C:tempVMware OS Optimization Tool 1.1.0. The VMware OS Optimization Tool helps optimize Windows systems for use with VMware Horizon View / VMware Horizon Cloud.
Download required VMware components (typically DaaS Agent, DaaS Health Agent, VMware Tools, View Agent) from the MyVMware Portal and place installation files in the corresponding Source folders. .
Note: Please be aware that the provided templates are version specific. You may need to adjustsetup file names / installation parameters in the wsf installation scripts. Check VMware's documentation for further guidance.
Download Mikael Nystrom'sCleanupBeforeSysprep.wsf script and place it in the C:tempScripts folder.
Download my ApplyWin10Optimizations.ps1 script if you are building a Windows 10 image and place it in the C:tempScripts folder.
Copy the contents of the C:tempScripts folder to %SCRIPTROOT%.
Walkthrough
Using the Deployment Workbench, right-click your deployment share and select Properties. Use the following settings for the x86/x64 boot images:
General | Scratch Space | 256 |
Features | Enable following optional components | PowerShell, .NET Framework, DISM Cmdlets, Storage Management Cmdlets |
Drivers | Selection profile | All Drivers |
Note: Even if you are not going to use both x86 and x64 boot images right away, I still recommend that you adjust all configuration settings for potential future use.
In order to utilize the vmxnet3 network adapter with MDT successfully, you need drivers for the boot images. First, extract the virtual hardware drivers from the VMware Tools bundle:
- Run the following command from the command prompt: setup.exe /A /P C:tempVMware (Note: If you are prompted to provide the location for the install/extraction, enter C:tempVMware).
- When the process is complete, click Finish.
Then, import extracted drivers into MDT for deployment.
Optional: create the logical folder VMware in the Deployment Workbench
Using the Deployment Workbench in the MDTdeployment share, expand the Applications node and create the VMware node. Then, add VMware applications using following settings:
Application Name | Command Line |
VMware DaaS Agent 17.2.0 | cscript.exe Install-DaaSAgent.wsf |
VMware DaaS Health Agent 1.0.5 | cscript.exe Install-HealthAgent.wsf |
VMware Tools 10.2.0 | cscript.exe Install-VMwareTools.wsf |
VMware View Agent 7.3.2 | cscript.exe Install-ViewAgent.wsf |
VMware OS Optimization Tool 1.1.0 | powershell.exe -ExecutionPolicy Bypass -File Apply-VMwareOSOptimizations.ps1 |
Note: The VMware OS Optimization Tool helps optimize Windows reference images for use with VMware Horizon Cloud. I included two templates (Windows 7 / 10) which include carefully curated set of adjustments to enable or disable Windows system services and features, per Microsoft best practices, to improve performance without detrimental effect on the end-user experience. The included PowerShell script will automatically select correct template for your environment (assuming you are creating a Windows 7 or 10 image)
Then, in the Task Sequences folder, right-click your reference image task sequence, and select Properties. Configure the task sequence with the following settings:
Preinstall Group:
After Gather local only action, add two Run Command Line action items with the following settings:
Name | Command Line |
Set-ExecutionPolicy Bypass | powershell.exe -Command 'Set-ExecutionPolicy Bypass' |
High Performance Power Scheme* | PowerCfg.exe /s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c |
Perfect Horizon 1 0 16
Note: The reason for adding this is that this tweak reduces the time it takes to apply an OS WIM to disk by 20 – 50%. Check this blog post for additional details.
Postinstall group:
Before Next Phase action, add two Run Command Line action items with the following settings:
Name | Command Line |
Remove Built-In Apps | powershell.exe -File %SCRIPTROOT%RemoveAppsRemoveApps.ps1' |
Remove Built-In Capabilities | powershell.exe -File %SCRIPTROOT%RemoveAppsRemoveCapabilitiesOffline.ps1 |
State Restore group:
After the Tattoo step within the State Restore phase, insert another Run Command Line action to set the power management scheme to High performance:
Name | Command Line |
High Performance Power Scheme | PowerCfg.exe /s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c |
Assuming you followed Johan's Windows (10) guide, you should have the Custom Tasks (Pre-Windows Update) group. Create the Install - VMware Horizon Tools group and add new Install Application actions with the following settings:
Name | Install a Single Application: |
Install - VMware Tools 10.2.0 | VMware Tools 10.2.0 |
Repeat the previous step (add a new Install Application) to add the following applications:
- Install - VMware DaaS Agent 17.2.0
- Install - VMware DaaS Health Agent 1.0.5
- Install - VMware View Agent 7.3.2
- Apply - VMware OS Optimizations
Important: After the Install - VMware DaaS Health Agent 1.0.5 action, add a new Restart computer action.
Optional: Before the Install - VMware Horizon Tools group, add following Run PowerShell Script actions to apply additional configuration settings:
Name | Command Line |
Configure - Windows 10 OS | %SCRIPTROOT%ApplyWin10Optimizations.ps1 |
Configure - Enable RDP | %SCRIPTROOT%EnableRDP.ps1 |
Configure - IPv6 Components | PowerShell script: %SCRIPTROOT%DisableIPv6.ps1 |
Configure - Disable Windows Firewall | %SCRIPTROOT%DisableFirewall.ps1 |
Before the Imaging group, add Run Command Line action item with the following settings:
Name | Command Line |
Run - Cleanup Before Sysprep | cscript.exe %SCRIPTROOT%CleanupBeforeSysprep.wsf |
The reason for running this script is to reduce the resulting OS disk footprint.
Note: Depending on the Horizon tennant version you are running, you may need to import basic DaaS Agent configuration during OSD to allow bootstrapping. This can be achieved by importing a reg file containing DesktopMgrAddresses. Below are two sample reg files for x86 / x64 systems:
x86:
x64:
Once you have created your task sequence, you are ready to create the VMware reference image. This will be performed by launching the task sequence from a VMware virtual machine (VMware Workstation or ESXi) which will then automatically perform the reference image creation process.
Note: If you are using VMware Workstation, you can automate this process further. Check out my Image Factory for VMware Workstation solution - it virtually eliminates the technical requirements for manually creating Windows images for VMware Environments.
Built for
Streaming
Cardio Classes
7.8 AT Studio Series Treadmill
$2,699$1,999
Guaranteed
refunds within 30 days
Free Shipping
In room delivery & setup available
Found at many premium
retailers, including:
retailers, including:
Run with the top fitness apps for a fraction of the cost
Studio App
Get a boutique fitness studio experience at home. High intensity interval workouts for beginners to advanced athletes.
Peloton App
Iscrapbox 1 3 0. Choose from daily live classes and thousands of on-demand classes led by world-class trainers.
AFG App
Control your machine & integrate your data w/Fitbit & Under Armour fitness apps. Exclusive Sprint 8 fat-burning program.
Stay in Sync With the Studio
Designed for:
Horizon Smart Treadmills are designed to work with any live or on-demand fitness app. Now you can get the thrill of Peloton or Studio.live running classes for a fraction of the cost.*
* Tablet and subscriptions not included. All trademarks are property of their respective owners, are used for identification purposes only, and do not imply endorsementGet exclusive discounts on
top fitness and wellness apps
top fitness and wellness apps
Save up to 30%
Best Treadmills
Trust Horizon for affordable treadmills that deliver the best quality and the latest technology. From exclusive interval training programs and responsive motors to easy one-touch controls, Horizon delivers straightforward fitness solutions that work.
From simple set-up to one-touch controls, these treadmills make it easy to get on and go
T101 Treadmill
Get Started
- Intuitive controls
- 1-Touch keys
- Integrated speakers
- Setup in 30 min or less
2.5 CHP
motor
motor
10 Mph &
10% Incline
10% Incline
Learn more arrow_right
T202 Treadmill
Pick Up the Pace
- Extended training range
- Longer running surface
- Integrated speakers
- Free app for touchscreen controls
2.75 CHP
motor
motor
12 Mph &
12% Incline
12% Incline
Learn more arrow_right
T303 Treadmill
Perfect Horizon 1 0 1 0
HIIT Your Stride
- Designed for high-intensity training
- Extra-large running surface
- Custom interval settings and timer
Perfect Horizon 1 0 14
3.0 CHP
motor
motor
12 Mph &
12% Incline
12% Incline
Perfect Horizon 1 0 12
Learn more arrow_right
High performance treadmills made for streaming cardio classes and interval training
7.0 AT Treadmill
Powerful
- Smart design works w/your devices and media
- Speed & incline dials for fast transitions
- Integrated speakers
3.0 CHP rapid
sync™ motor
sync™ motor
12 Mph &
15% Incline
15% Incline
Learn more arrow_right
7.4 AT Treadmill
Performance
- Speed & incline dials for fast transitions
- Robust performance training frame
- Highly responsive motor for interval changes
- Extra-large running surface
3.5 CHP rapid
sync™ motor
sync™ motor
12 Mph &
15% Incline
15% Incline
Learn more arrow_right
7.8 AT Treadmill
Premium
- Speed & incline dials for fast transitions
- Most powerful deck and motor combo
- Large, multi-color feedback display
- 20-min fat-burning program
4.0 CHP rapid
sync™ motor
sync™ motor
12 Mph &
15% Incline
15% Incline
Learn more arrow_right
Rapid Sync Motor Perfect For Interval Training
The Johnson Digital Drive System featuring Rapid Sync™ Technology ensures no lags or delays between speed and incline changes. It responds 33% faster than other treadmill motors, so you’ll never fall out of step with a fast-paced interval running class.
Found exclusively on Studio Series Treadmills by Horizon Fitness.