Custom VM hooks and LCM STATE

I am making hooks for all the VM states, however not all states have an LCM_STATE described here:

So to make a hook for a state for something like state=STOPPED I am using ON = CUSTOM, STATE = STOPPED but I am not sure what to add as LCM_STATE if I omit it or leave it blank I get an error and the hook is not created ([one.hook.allocate] Wrong LCM_STATE:)

What should I write for LCM_STATE ?

Hello @Sean_JC,

If you check the note in the documentation:

LCM_INIT state is used as LCM_STATE when the VM is in a state different than ACTIVE

So, if you don’t see LCM_STATE in the table row, you need to use LCM_INIT.