VMware Cloud Community
Eds89
Enthusiast
Enthusiast

Start auto start sequence from SSH manually

Hi,

I have my VMs stored on an iSCSI datasource, which is hosted by FreeNAS, which in itself is a VM on the same host.

As such, by default, when the host starts and auto starts the FreeNAS VM, the iSCSI adaptor finds no datastores as it scans the HBA before FreeNAS has completely started.

I have a script which should run on the FreeNAS box after it has fully started, to connect to the host via SSH and run a rescan of the iSCSI HBA so the other VMs are then available.

The auto start sequence will fail as it stands, as it waits 30 seconds to start a VM after it has started FreeNAS. FreeNAS is not ready, the iSCSI datastore isn't mounted.

Is there a way to have a second auto start sequence that can be initiated via SSH, or can I only have one auto start sequence?

If I can have a second sequence, then I could have FreeNAS start, run it's iSCSI rescan, then start the second sequence to start remaining VMs.

If I cannot have a second sequence, would my only option be to increase the start delay on subsequent VMs to something like 5 minutes? to give FreeNAS enough time to start and scan iSCSI?

Cheers

Eds

Reply
0 Kudos
0 Replies