There are several articles on the subject. Perhaps
will help you get started.
Please note that FreePBX is expecting to have the “whole machine” and trying to run another big project such as a CRM system in the same image is asking for trouble. You need to set up FreePBX separately (though it could run in a VM on the same host as Odoo running in a different VM).