He will do that surprise attack if these conditions are met:
In battle of corporation: You will be force to choose between Holoryx and Nikolaos. (Choose Nikolaos)
After you finish the quest. There's a chance that Holoryx will bust the Room A to fight you. You should atleast defeat him in that ambysh and choose to imprison him in the ship.
If you already have Isaac (the former ship's captain/a metahuman). He'll persuade Holoryx to join your crew.
How to get Isaac in this order:
-Harmonia (planet) should be unlocked
-You should be atleast getting classes on it to learn Magic in the University of Magic
-Talk to Arthur about Magic (and the Aurosynth)
-Find Isaac's corpse by exploring the galaxy.
-Talk to Arthur few more times on reviving him.
Let me know more if you have any more questions, specified in this quest.
If Holoryx done the thingy maybe you should walk to and fro the ship's Room A. I don't know how many days he will be because it is a surprise attack and the ship is docked in Akra when that happens to me.
Room A (Is where the room of the Captain, Rylan, Bradley, Asmodeus and Arthur is in).