facebooktwitteryoutube
Home About VCP Virtual Home Lab VCP6 Study Guide VCAP6-DCV Deploy Study guide VCAP6 – DCV Design Collection
in blueprint - 21 Mar, 2016
by mordi - no comments
VCAP-DCV Deploy Objective 1.1 – part 2
In this post we will continue to discuss objective 1.1 from the blueprint
Objectives:
  • 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:

  • HTTP/HTTPS
  • FTP
  • NFS
  • CDROM
  • USB

In addition you can also PXE boot the ESXi installer

scripted_install1

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

Example:

ks=nfs://192.168.1.11/vol0/ks.cfg nameserver=192.168.1.1 ip=192.168.1.12 netmask=255.255.255.0 gateway=192.168.1.1

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

scripted_install2

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

Installation/Upgrade:

  • 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

 

logsandmore2

logsandmore3

 

Edit System Swap Configuration:

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

logsandmore4

 

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

Thanks for reading

Mordi.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Leave a Reply