The document proposes a cost-aware virtual machine placement approach across distributed data centers using Bayesian networks. It designs a Bayesian network to model expert knowledge on cloud infrastructure management. It then uses the GQM method to define measures for criteria based on the Bayesian network outputs. Finally, it applies multi-criteria decision analysis to create a utility function for virtual machine allocation and migration decisions. The approach was evaluated using a cloud simulation framework and real workload and infrastructure data, showing improvements of up to 69% in total costs compared to baseline algorithms.