VCAP-DCV Deploy Objective 1.1 – part 1

Home / autodeploy / VCAP-DCV Deploy Objective 1.1 – part 1

In this post we will discuss again VMware Auto Deploy feature but for the VCAP Deploy exam , i already have a post regrading host profile and auto deploy on this site so if you like you can refresh your memory on these subjects in the VCP study guide notes

This post will discuss the following from the blueprint :

  • Configure and Manage Auto Deploy configurations:
    • Determine use case for Stateless vs Stateful installs
    • Create / Modify rules and rule sets
    • Create and associate Host Profiles for an Auto Deploy reference host

Lab Setup:

Using VMware workstation:

  • Single ESXi Host
  • Microsoft Servers 2012R2 for Services
  • VMware vMA
  • VMware PowerCLI

Documents used:

  • VMware vSphere Installation and Setup

Determine use case for Stateless vs Stateful installs:

Stateless caching: Save the image and configuration on a local drive BUT perform stateless reboot, I there is a connection issue to the PXE the ESXi host will reboot from LOCAL DISK.

Stateful Install: initially boot from AutoDeploy – ALL subsequent reboot USE LOCAL DISKS.

Configure stateless caching:To configure Stateless caching, you will need to Enable stateless caching on the host in the host profile.

Configure stateful install:To configure stateful Install, you will need to Enable statelful install on the host in the host profile.

Important Practice:

Web Client >>Edit Host Profile >>Advanced Configuration Settings >>System Image Cache Configuration

statelessvsstateful

When you choose stateless/stateful on the host, you can to provide the followings information:

Specify the disk to use – Arguments for first disk and if to overwrite any VMFS volumes on that specific disk and to ignore any SSD drives connected to the host.

statelessvsstateful2

Create / Modify rules and rule sets:

Rules: We use PowerCLI to create rules, a rule can identify target host by boot MAC address, vendor, model static IP or DHCP and more.

Active Rule Set: When a newly started host contacts the Auto Deploy server with a request for an image profile, the Auto Deploy server checks the active rule set for matching rules.

Working Rule Set: The working rule set allows you to test changes to rules before making the changes active

Note: In the lab section we will create rules.

Create and associate Host Profiles for an Auto Deploy reference host:

In the lab section we will associate Profile for an Auto Deploy reference host. I am not going to talk about the basics of host profile, if you like to know more about host profile you can check the following blogs from my VCP study guide: http://vpentathlon.com/vcp6-dcv-blueprint-section-8-2customize-host-profile-settings/

Practice LAB: Auto Deploy Host using stateless cashing host profile.

  • Enable Auto Deploy Server on vCenter
  • Configure DHCP services (I am using MSFT DHCP server)
  • Configure TFTP services (I am using MSFT WDS server)
  • Download the boot zip file for the TFTP, Extract the zip file and locate them in your TFTP folder.
  • Create host profile to use stateless caching
  • Run the appropriate CLI command to perform the followings:
    • Enable Remote sign
    • Connect to vCenter
    • Connect to local depot
    • Create deployment rule to use the host profile
    • Active the deployment rule
  • Verify Host deployment

Enabling Auto Deploy service: vCenter >>Services>>Auto Deploy >>Start

VCAP_AutoDeploy1

Configure DHCP services: Regardless of your DHCP server you running you will need to enable the followings scope options:

  • 066 Boot server Host name
  • 067 boot file name

VCAP_AutoDeploy3

Configure TFTP services: Configure your TFTP services for the PXE boot options

VCAP_AutoDeploy4

Download the boot zip file for the TFTP, Extract the zip file and locate them in your TFTP folder:

 

  • Local TFTP dir = C:\Remote_Install
  • Filename = Deploy-tftp

VCAP_AutoDeploy5

Create host profile to use stateless caching:

Note: Remove all other options in the profile.

statelessvsstateful2

PowerCLI Commands:

Enable Remote sign: Set-ExecutionPolicy RemoteSigned

Connect to vCenter: Connect-VIServer -Server socalvcenter.vsphere6.lab.local -Protocol https -User administrator@vsphere.local -Password $VMwarel123

Connect to local depot: Add-EsxSoftwareDepot C:\AutoDeploy\ESXi-6.0.0-2494585-standard.zip

Create deployment rule to use the host profile: $img=Get-EsxImageProfile

New-DeployRule -Name “Stateless caching” -Item $img,”stateless caching” -pattern “ipv4=192.168.128.200-192.168.128.205”

Add-DeployRule -DeployRule “stateless caching”

Active the deployment rule: Get-DeployRuleset -Active

Verify Host deployment:

VCAP_AutoDeploy6

 

Thanks for reading

Mordi.

 

 

2 Comments

  • Hello Mordi, This is a really good job with the series. I just want to say thank you and let you know that it was very helpful for me during preparation to my exam. Of course I passed the exam. If you don’t mind, I’m going to share a link to your series on my blog to let more ppl use it.

Leave a Reply

Your email address will not be published. Required fields are marked *