The dynamic stability of slightly curved tensioned pipes conveying pressurized two phase fluid, under thermal loadings are investigated in this paper. Furthermore, these pipes are resting on nonuniform elastic foundations. The equation of motion of the system is derived using the extended Hamilton’s principle for open dynamic systems and considering the Euler–Bernoulli theory for slender beams. The free vibration and the effects of two phase fluid flow, geometric imperfections, thermal, tension and pressure on the pipe system resting on nonuniform foundations are investigated numerically. Three different boundary conditions (BC) are considered, namely simply-simply (SS) supported, simply-clamped (SC) supported and clamped-clamped (CC) supported. The numerical method of Finite Element was used on the partial differential equation. This method is used to accurately predict steady state natural frequency responses of a dynamical system through several numerical investigations. It was found that the stability of slightly curved pipes conveying two phase flow are significantly affected by the boundary condition. It is shown that the initial curvature term increases the critical velocities for all the nine modes considered, the increase is significant in the first and second critical velocities compared to the other modes. Initial curvature effect is more pronounced in simple supported ends. Further-more the influence of the fluid velocity, temperature, pressure and axial tension is analysed; the results show that the vibration frequency decreases when the fluid velocity, temperature, and pressure increase or the axial tension decreases, and the critical fluid velocity decreases when the temperature and pressure increase or the axial tension decreases. For the pipe on nonuniform foundation, an increased stiffness leads to an increased in the first critical velocity for all the BC. However, the pattern of the increment depends on the attachment parameter, initial curvature, and the vapour quality. Some of these results are completely absent in pipes conveying single flows.