VCAP-DCV Deploy Objective 1.1 – part 2

Home / blueprint / VCAP-DCV Deploy Objective 1.1 – part 2
In this post we will continue to discuss objective 1.1 from the blueprint
  • Configure Kernel Boot Parameters for scripted install according to a deployment plan:
    • Modify scripted weasel install (ks.cfg)
    • Create / Modify scripted installation
  • Configure Advanced System Settings according to a deployment plan:
    • Edit System Swap / Scratch Configuration
    • Configure ESXi host to use a central Syslog Server
  • Manage/Edit the Core Dump configuration of an ESXi host

Using VMware workstation:

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

Documents used:

  • VMware vSphere Installation and Setup


Scripted ESXi Installation:

We can use scripts to deploy multiple ESXi hosts to automate our deployment. The script includes the hosts configuration settings , In the following locations you can store your script:

  • FTP
  • NFS
  • USB

In addition you can also PXE boot the ESXi installer

Source: VMware vSphere Installation and Setup


The install script name is ks.cfg which an example of that script is located at : /etc/vmware/weasel/ks.cfg

once we edit the ks.cfg file we will need to boot the host and quickly click on SHIFT+O  which we will get a prompt to provide the boot option and the location of the ks.cfg file, lets start first with the boot options.

Boot Options: 


  • ip=<ip address> : Set static IP
  • netmask=<subnet mask> : Set the netmask
  • gateway=<ip address> : set the network gateway (Default)
  • vlanid=<vlanid> : Set the VLAN id if needed
  • ks=cdrom:/<path\> :Location of the ks.cfg file on a CD-ROM
  • ks=file://<path> : Location of the ks.cfg file on a specific path
  • ks=usb:</path> :Location of the ks.cfg file on a USB device
  • ks=protocol://<serverpath> :Use protocol such as HTTP/S, FTP or NFS.
  • nameserver=<ip address> : IP of your DNS server
  • netdevice=<device> = Use a specific NIC or MAC


ks=nfs:// nameserver= ip= netmask= gateway=

Customize ks.cfg file:

As mention before you can look at the ks.cfg file that included in the ESXi host under : /etc/vmware/weasel/ks.cfg


The minimum requirements is to have the highlighted lines included in the script : Install or upgrade , vmaccepteula and rootpw , which are self explanatory

here are some of the commands that you can use to customized the ks.cfg script

Handling the partitions during install:

  • clearpart – Clear any existing partitions
  • part or partition – creates new partition


  • install – Fresh install
  • upgrade – Upgrade
  • keyboard – Keyboard language
  • dryrun – Test the script but dont install
  • vmaccepteula – Accepting EULA
  • rootpw – Root password
  • paranoid – Any warning errors stop the install

These are just the commands and most of the commands has parameters , to get more info about the parameters on each command please look the VMware vSphere Installation and Setup document.

Note to Self: if asked in the exam to modify the script with more advanced settings remember the following pages in the doc 61-69 🙂

Edit System Scratch Configuration:

for this lab practice I used my NFS shared storage here are the steps to change the scratch location:

  • Create location for the scratch directory on a shared storage
  • In the ESXi host Advanced settings change the ScratchConfig.ConfiguredScratchLocation configuration option, specifying the full path to the directory.
  • Enter the host into maintenance mode
  • Reboot the host
  • Verify





Edit System Swap Configuration:

To change the system Swap location Click on the ESXi host >> Manage >> System >> system Swap >> Edit



The rest of the objective will be covered in part 3 of this objective

Thanks for reading





































  • Sunil

    Can you please tell me of your lab setup for the VCAP 6 deployment exam? I have read your post on your VCP lab and wondering if you can use the same setup for the VCAP deployment exam?


    • mordi

      for my VCP I used VMware workstation, for my VCAP I added a new server (Dell T130)
      I was using both my workstation and my server with nested configuration
      as for the VCAP exam, I my opinion you can use only a desktop but you will have to manage your resources, I think 64GB of RAM will do the trick

Leave a Reply

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