Category: vCSA

vSphere 6.7 Update 1 Available

You have probably already seen this in the news already but vSphere 6.7 Update 1 has now released to download. Link Is below in case you need it:

vSphere 6.7 Update 1 Download Link

 

Also to get a bit more info on whats under the hood on the updated vSphere web client i would recommend the following:

https://blogs.vmware.com/vsphere/2018/10/fully-featured-vsphere-client-in-vsphere-6-7-update-1.html?src=so_5a314d05e49f5&cid=70134000001SkJn

https://docs.vmware.com/en/VMware-vSphere/6.5/rn/vsphere-client-65-html5-functionality-support.html

 

ISSUES

So far VEEAM is the only thing ive heard so far that has an issue: https://www.veeam.com/kb2784

vCSA 6.5 How To Reset The Root Password

A nice and easy one, but one that i must admit have fallen foul to a couple of times.

If your worried your going to break something then take a snapshot of the applicance prior to all this.

1. Start the appliance up and press the space bar to freeze the GRUB menu.  You need to be fairly quick on this bit (usually takes me a couple of times)

2. Press e to enable edit mode.

3. Append rw init=/bin/bash to the end of the line

4. Press F10 to reboot. The appliance will now boot up to a shell

5. Type passwd to change the root password. Type it twice and press Enter to confirm.

6. Reboot the appliance using the power options from the VMRC or vSphere client menu, or type reboot (which ever takes your fancy).

And your done…. (if you took a snapshot do your tests then dont forget to remove it)

vCSA 6.5 Update 1 VMDK and Partition Resizing

Sometimes we have a requirement to increase the size of the drives on the vCSA Appliance due to a need for extra space for logs or we have just increased the infrastructure and need to increase the DB sizing etc. To help identify the VMDK’S to there respective mount points I have listed below the there standard sizes.

DiskSizePurposeMount Point
VMDK112GB/ and Boot / and Boot
VMDK21.8GBVCSA’s RPM packagesNot Mounted
VMDK325GBSwapSWAP
VMDK425GBCore /storage/core
VMDK510GBLog /storage/log
VMDK610GBDB /storage/db
VMDK715GBDBLog /storage/dblog
VMDK810GBStats Events and Tasks /storage/seat
VMDK91GBNet Dumper /storage/netdump
VMDK1010GBAuto Deploy /storage/autodeploy
VMDK1110GBImage Builder/storage/imagebuilder
VMDK12100GBUpdate Manager /storage/updatemgr

For example if we need to increase the storage for the logs volume, vCSA 6.5 will allow us to do this via a hot addition (so no downtime). We just need first increase the size of VMDK5 from say 10GB to 15GB using either the vSphere Web Client or PowerCLI. Once this is complete we need to do a resize on the volume, as we like PowerCLI we will do it using some of the CIS cmdlets by doing the following:

1
2
3
Connect-CisServer -Server 192.168.1.5 -User administrator@vsphere.local -Password VMware123!
$diskResize = Get-CisService -Name 'com.vmware.appliance.system.storage'
$diskResize.resize()

(I will be doing a post later to go over some of the checks we can do on the vCSA using the CIS cmdlets)

PowerCLI Deploying 6.5u1 vCSA

Deploying vCSA in 6.5 normally means that you need to run through the manual process using your web browser. However there is another method,  vcsa-deploy.exe if you like the idea of having it scripted as a re-usable configured deployment.

I though i would give this a try using the following script i have put together for the recent 6.5u1 vCSA release.

The vcsa-cli-installer\templates folder hosts all the templates that can be selected and you can tailor your modified .json file by adding/removing attributes as required (however don’t forget the options depend on the template you will be using)

“new.vcsa”: {
         “esxi”: {
                   “hostname”: “”,
                   “username”: “root”,
                   “password”: “”,
                    “deployment.network”: “VM Network”,
                    “datastore”: “ESXi host datastore, or a specific datastore in a datastore cluster.>”

The script below will deploy a vCSA to esxi host 192.168.1.5, the deployment used will be an install (you could script migrate/upgrade) and use the database tiny option (as we are managing 10 or less hosts), it has been told all the relevant IP details to configure and the datastore it will be placed on.

Don’t forget the memory requirements, even a tiny vCSA required 10GB of RAM.

You of course need to be connected by a connect-viserver to the ESXi node to run

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Convert JSON file to PowerShell object
$configconfig = "D:\VMware-VCSA-all-6.5.0-8024368\vcsa-cli-installer\templates\install\embedded_vCSA_on_ESXi.json"
$deploy = "D:\VMware-VCSA-all-6.5.0-8024368\vcsa-cli-installer\win32\vcsa-deploy.exe install --accept-eula --acknowledge-ceip "
$UpdatedConfig = "D:\VMware-VCSA-all-6.5.0-8024368\config.json"
$config = (Get-Content -Raw $configconfig) | ConvertFrom-Json

# vCSA system information
$config."new.vcsa".os.password="[email protected]"
$config."new.vcsa".sso.password = "[email protected]"
$config."new.vcsa".sso."site-name" = "Default-Site"

# ESXi Host Information
$config."new.vcsa".esxi.hostname="192.168.1.5"
$config."new.vcsa".esxi.datastore="Datastore1"
$config."new.vcsa".esxi.username="root"
$config."new.vcsa".esxi.password="[email protected]"
$config."new.vcsa".esxi."deployment.network"="VM Network"
$config."new.vcsa".appliance."deployment.option"="tiny"
$config."new.vcsa".appliance.name="MGMT-vCSA65u1"

# Networking
$config."new.vcsa".network.mode = "static"
$config."new.vcsa".network.ip = "192.168.1.25"
$config."new.vcsa".network.prefix = "24"
$config."new.vcsa".network.gateway = "192.168.1.1"
$config."new.vcsa".network."dns.servers"="192.168.1.1"
$config."new.vcsa".network."system.name"="MGMT-vCSA65u1.local"
$config | ConvertTo-Json | Set-Content -Path "$UpdatedConfig"
iex "$deploy $UpdatedConfig"