Please provide your feedback in this short Flings' survey.
May 16, 2021

I have following errors.
./sperf.py esxi04-hp -d esxi04-hp04
2021-05-17 10:03:47,420 - sperf.py:450 - INFO - Using primary log sperf.log.
2021-05-17 10:03:47,421 - sperf.py:460 - INFO - The test results will be put into /home/kwholee/work/StoragePerformanceTester/sperf/results/6
Please enter the root password for esxi04-hp:
2021-05-17 10:03:51,029 - sperf.py:50 - INFO - Copy id_rsa.pub to the host.
2021-05-17 10:03:51,288 - sperf.py:59 - INFO - Geting basic info on esxi04-hp
2021-05-17 10:03:54,322 - sperf.py:80 - INFO - The sperf workloads will run on stack Plugin:HPP LS:0milliseconds Driver:smartpqi Disk:HPE LOGICAL VOLUME 1.99
2021-05-17 10:03:54,322 - sperf.py:110 - INFO - Check if the VM (esxi04-hp04_sperfVMv1) has been deployed.
2021-05-17 10:03:55,053 - sperf.py:122 - INFO - Host esxi04-hp does have a VM named esxi04-hp04_sperfVMv1.
2021-05-17 10:03:55,053 - sperf.py:134 - INFO - /usr/bin/ssh root@esxi04-hp 'f=`vim-cmd vmsvc/getallvms |grep 'esxi04-hp04_sperfVMv1 '|awk '{print $1}'` && vim-cmd vmsvc/get.guest $f |grep -m 1 ipAddress'
2021-05-17 10:03:56,247 - sperf.py:147 - INFO - Got ip(172.16.10.248) from esxi04-hp04_sperfVMv1.
2021-05-17 10:03:56,249 - sperf.py:245 - INFO - Run workload on 172.16.10.248
2021-05-17 10:03:56,893 - cpio.py:65 - INFO - Start to collect cpu cycles on esxi04-hp
2021-05-17 10:03:57,372 - sperf.py:194 - INFO - Running workload - fio_8thread_4dev_4krandread
2021-05-17 10:03:58,501 - cpio.py:71 - INFO - End to collect cpu cycles on esxi04-hp
2021-05-17 10:03:59,084 - sperf.py:211 - ERROR - run ./fio/fio --output=/home/kwholee/work/StoragePerformanceTester/sperf/results/6/rawdata/fio_8thread_4dev_4krandread_210517_100356_.txt --client=172.16.10.248 ./fio/fio_8thread_4dev_4krandread.fio meet error 1
2021-05-17 10:03:59,084 - sperf.py:212 - INFO - End workload - fio_8thread_4dev_4krandread
2021-05-17 10:03:59,084 - cpio.py:65 - INFO - Start to collect cpu cycles on esxi04-hp
2021-05-17 10:03:59,571 - sperf.py:194 - INFO - Running workload - fio_8thread_4dev_4kread
2021-05-17 10:04:00,655 - cpio.py:71 - INFO - End to collect cpu cycles on esxi04-hp
2021-05-17 10:04:01,131 - sperf.py:211 - ERROR - run ./fio/fio --output=/home/kwholee/work/StoragePerformanceTester/sperf/results/6/rawdata/fio_8thread_4dev_4kread_210517_100359_.txt --client=172.16.10.248 ./fio/fio_8thread_4dev_4kread.fio meet error 1
2021-05-17 10:04:01,132 - sperf.py:212 - INFO - End workload - fio_8thread_4dev_4kread
2021-05-17 10:04:01,132 - cpio.py:65 - INFO - Start to collect cpu cycles on esxi04-hp
2021-05-17 10:04:01,611 - sperf.py:194 - INFO - Running workload - fio_8thread_4dev_4kwrite
2021-05-17 10:04:02,713 - cpio.py:71 - INFO - End to collect cpu cycles on esxi04-hp

and also have this error.
./fio/fio --client=172.16.10.248 ./fio/fio_8thread_4dev_8krandwrite.fio
hostname=ubuntuMiniv1, be=0, 64-bit, os=Linux, arch=x86-64, fio=fio-3.20, flags=0
<ubuntuMiniv1> job5: (g=0): rw=randwrite, bs=(R) 8192B-8192B, (W) 8192B-8192B, (T) 8192B-8192B, ioengine=libaio, iodepth=128
<ubuntuMiniv1> ...
<ubuntuMiniv1> job5: (g=0): rw=randwrite, bs=(R) 8192B-8192B, (W) 8192B-8192B, (T) 8192B-8192B, ioengine=libaio, iodepth=128
<ubuntuMiniv1> ...
<ubuntuMiniv1> job5: (g=0): rw=randwrite, bs=(R) 8192B-8192B, (W) 8192B-8192B, (T) 8192B-8192B, ioengine=libaio, iodepth=128
<ubuntuMiniv1> ...
<ubuntuMiniv1> job5: (g=0): rw=randwrite, bs=(R) 8192B-8192B, (W) 8192B-8192B, (T) 8192B-8192B, ioengine=libaio, iodepth=128
<ubuntuMiniv1> ...
<ubuntuMiniv1> Starting 8 processes
<ubuntuMiniv1> fio: looks like your file system does not support direct=1/buffered=0
<ubuntuMiniv1> fio: looks like your file system does not support direct=1/buffered=0
<ubuntuMiniv1> fio: looks like your file system does not support direct=1/buffered=0
<ubuntuMiniv1> fio: destination does not support O_DIRECT
<ubuntuMiniv1> fio: looks like your file system does not support direct=1/buffered=0
<ubuntuMiniv1> fio: destination does not support O_DIRECT
<ubuntuMiniv1> fio: pid=16075, err=22/file:filesetup.c:713, func=open(/dev/sdc), error=Invalid argument
<ubuntuMiniv1> fio: looks like your file system does not support direct=1/buffered=0
<ubuntuMiniv1> fio: destination does not support O_DIRECT
<ubuntuMiniv1> fio: looks like your file system does not support direct=1/buffered=0
<ubuntuMiniv1> fio: looks like your file system does not support direct=1/buffered=0
<ubuntuMiniv1> fio: looks like your file system does not support direct=1/buffered=0
<ubuntuMiniv1> fio: pid=16076, err=22/file:filesetup.c:713, func=open(/dev/sdd), error=Invalid argument
<ubuntuMiniv1> fio: destination does not support O_DIRECT
<ubuntuMiniv1> fio: pid=16073, err=22/file:filesetup.c:713, func=open(/dev/sde), error=Invalid argument
<ubuntuMiniv1> fio: destination does not support O_DIRECT
<ubuntuMiniv1> fio: destination does not support O_DIRECT
<ubuntuMiniv1> fio: destination does not support O_DIRECT
<ubuntuMiniv1> fio: destination does not support O_DIRECT
<ubuntuMiniv1> fio: pid=16077, err=22/file:filesetup.c:713, func=open(/dev/sdd), error=Invalid argument
<ubuntuMiniv1> fio: pid=16072, err=22/file:filesetup.c:713, func=open(/dev/sde), error=Invalid argument
<ubuntuMiniv1> fio: pid=16071, err=22/file:filesetup.c:713, func=open(/dev/sdb), error=Invalid argument
<ubuntuMiniv1> fio: pid=16070, err=22/file:filesetup.c:713, func=open(/dev/sdb), error=Invalid argument
<ubuntuMiniv1> fio: pid=16074, err=22/file:filesetup.c:713, func=open(/dev/sdc), error=Invalid argument
<ubuntuMiniv1>
client <172.16.10.248>: exited with error 8
Jobs: 0 (f=0)
Run status group 0 (all jobs):

Could you fix these errorr?

May 06, 2021

Thank you very much for your tool.
Please, can you help me with this message?
My VMware is 6.7

Can I install SSHPASS? how?

[root@xuacsclhpx03:/vmfs/volumes/608a3091-d649b214-57a7-d89d67246524/tmp/sperf] ./sperf.py xuacsclhpx03 -d pro_vmfs_sas -n NOSSLVERIFY
2021-05-06 20:15:27,099 - sperf.py:450 - INFO - Using primary log sperf.log.
2021-05-06 20:15:27,120 - sperf.py:460 - INFO - The test results will be put into /vmfs/volumes/608a3091-d649b214-57a7-d89d67246524/tmp/sperf/results/4
Please enter the root password for xuacsclhpx03:
2021-05-06 20:15:31,632 - sperf.py:48 - INFO - Create new public key.
/bin/sh: ssh-keygen: not found
2021-05-06 20:15:31,637 - sperf.py:50 - INFO - Copy id_rsa.pub to the host.
/bin/sh: sshpass: not found
2021-05-06 20:15:31,641 - sperf.py:53 - ERROR - Setup automation failed on the host.
[root@xuacsclhpx03:/vmfs/volumes/608a3091-d649b214-57a7-d89d67246524/tmp/sperf]

May 06, 2021

This tool should be used in ubuntu or other linux environments. It'll install VM and run tests on ESXi remotely .

A good news is that I'm working on ESXi Performance Tester2.0, which could be used in ESXi directly, Linux and MAC os also.

Thanks,
Haitao

May 06, 2021

Excellent news!
Thanks a lot.
I run the tool on a Linux, however, the order to deploy virtual machines, apparently it is unique to the ESX Host.

root@iops-testing:~/vmware/StoragePerformanceTester/sperf# ./sperf.py xiotsclhpx03.nonames.local -d pro_vmfs_sas -n NOSSLVERIFY
2021-05-06 15:38:49,464 - sperf.py:450 - INFO - Using primary log sperf.log.
2021-05-06 15:38:49,464 - sperf.py:460 - INFO - The test results will be put into /root/vmware/StoragePerformanceTester/sperf/results/3
Please enter the root password for xiotsclhpx03.nonames.local:
2021-05-06 15:38:54,142 - sperf.py:50 - INFO - Copy id_rsa.pub to the host.
2021-05-06 15:38:54,385 - sperf.py:59 - INFO - Geting basic info on xiotsclhpx03.nonames.local
2021-05-06 15:38:57,709 - sperf.py:72 - ERROR - Didn't find the right hardware info based on pro_vmfs_sas
2021-05-06 15:38:57,710 - sperf.py:110 - INFO - Check if the VM (pro_vmfs_sas_sperfVMv1) has been deployed.
2021-05-06 15:38:58,227 - sperf.py:119 - INFO - Host xiotsclhpx03.nonames.local doesn't have a VM named pro_vmfs_sas_sperfVMv1.
Opening OVF source: ./ovftemplates/sperfVMv2.ovf
The manifest validates
Opening VI target: vi://root@xiotsclhpx03.nonames.local:443/
Warning:
- Line 178: Unable to parse 'tools.syncTimeWithHostAllowed' for attribute 'key' on element 'Config'.
Error:
- Access to resource settings on the host is restricted to the server that is managing it: '192.168.200.200'.
Completed with errors
2021-05-06 15:38:58,870 - sperf.py:102 - INFO - Deploy VM on pro_vmfs_sas Failed rc=1.

Apr 23, 2021

I am confused. I downloaded the zip file, now what? Copy the zip file to esx host or i need deploy some vm?

Apr 24, 2021

Please unzip it in a Linux os. And read the readme file. It has guidance.

Apr 21, 2021

Trying to setup on a different node and hitting this issue:
2021-04-21 14:54:27,401 - sperf.py:50 - INFO - Copy id_rsa.pub to the host.
/bin/sh: 1: sshpass: not found
2021-04-21 14:54:27,403 - sperf.py:53 - ERROR - Setup automation failed on the host.

Apr 21, 2021

sshpass is required by this tool, so you may need to install it on your linux.

Apr 22, 2021

Thanks. Did that but now when running I'm getting this known issue
Opening OVF source: ./ovftemplates/sperfVMv2.ovf
Error: Cannot parse locator: vi://root:LcYaykL?UKjuhxKUX7(G@10.169.112.43
Warning:
- No manifest file found.
Completed with errors
Traceback (most recent call last):
File "./sperf.py", line 484, in <module>
sys.exit(main())
File "./sperf.py", line 468, in main
status = sperf.DeployVM(args.vmname, args.ovfurl, args.nosslverify)
File "./sperf.py", line 97, in DeployVM
logging.info("Deploy VM on %s Failed rc=%d." % (ds, rc))
UnboundLocalError: local variable 'rc' referenced before assignment

I did applied the change from the bug section.