I'm in the process of building a home lab environment for Cisco and VMware that will also double as a NAS. The system runs ESXi v6.0 bare metal. Part of my design is that I have a Lenovo TS440 with LSI2008, which I've used VT-d to give to a guest, and that guest runs ZFS with LIO providing a LUN that I can then use as a datastore for other VMs.
This design was inspired by this:
The performance is amazing and it runs really well. However a problem that I'm running into is that if I ever reboot the ESXi host (which I do on occasion since this is a lab environment) then the VMs that are using the iSCSI datastore can't come up (they are greyed out and show inaccessible.)
I have to fix it every time after a reboot by re-adding the datastore, not only that but the boot stage takes longer because it tries to reach the iSCSI target and fails.
The main question is this:
Is it possible to configure ESXi to wait until a given VM is online before it attempts to load any datastores? If not, what are my alternatives? I understand I can just use a larger ESXi boot disk, but I'd rather be able to ZFSify the vmdisks.