Create nested ESXi for vSAN experiments with SSD disk

From Notes_Wiki

Home > VMWare platform > VMWare vSphere or ESXi > Create nested ESXi for vSAN experiments with SSD disk

If we want to experiment with vSAN in nested environment then we need to emulate SSD disk for cache or even for capacity (all-flash). In such cases there are two options to configure disk as SSD in nested ESXi

Configure normal disk and write rules in ESXi to treat it as SSD

To do this use:

  1. List the hard-disks using:
    esxcli storage core device list | grep 'mpx\|Size\|SSD'
    Note that output size in in MB
  2. Note the ID such as mpx.vmhba0:C0:T4:L0 for the disk that you want to get recognized as SSD
  3. Write rule to recognize chosen device as SSD using:
    esxcli storage nmp satp rule add -s VMW_SATP_LOCAL -d mpx.vmhba1:C0:T2:L0 -o enable_ssd
  4. Check the rules using:
    esxcli storage nmp satp rule list
  5. No check the hard-disk list again using:
    esxcli storage core device list | grep 'mpx\|Size\|SSD'
    This time the configured disks should be recognized as SSDs

Refer:


Configure ESXi to present disk as SDD to guest OS

The advantage of this method is that this is guest OS independent. This way we can present a disk as SSD to other guest OS (Linux/Windows) for appropriate guest OS action, if it is dependent upon disk being SSD. To do this use:

  1. Create a VM with required CPU (Enable IOMMU, Exposting virtualization to guest, etc.), RAM and disks
  2. For disk to be shown as SSD note the controller ID and disk ID of virtual disk (Eg scsi0:1)
  3. Create the VM without powering it on.
  4. Download the VMs .vmx file and edit it using any text editor (Wordpad in windows)
  5. Add option such as:
    scsiX:Y.virtualSSD = 1
    where X is controller ID and Y is the disk ID. In the above example use:
    scsi0:1.virtualSSD = 1
  6. Upload the edited vmx file back to datastore
  7. (Optional) deregister and register the VM back using the edited VMX file.

Refer:


Refer:


Home > VMWare platform > VMWare vSphere or ESXi > Create nested ESXi for vSAN experiments with SSD disk