Ex_Machina is a fantastic runaway A.I. story. https://www.rogerebert.com/reviews/ex-machina-2015
Ava according to the Ex_Machina story-line, was an earth created AI System. Eventually, Ava wanted to leave the nest and explore the world at large.
"Ex Machina is not only excellent science fiction, it's just plain one of the best movies of the decade. We love it. Still found some sins... you know how we do."
The HAL_9000 was essentially an earth created AI system that could easily function in space. Thus, it and the Discovery_One_Ship were interconnected.
https://upload.wikimedia.org/2001_MonolithThe Monolith was an ET-AI system that was able to override the operating system of HAL. So while HAL still had its own OS, it was under the overall control of the ET-AI monolith system.