摘要 |
<p>Embodiments of the present invention provide a virtual machine allocation method and apparatus. The method comprises: acquiring configuration information of application software, the configuration information comprising a plurality of usable virtual machine types for the application software and a priority level of each virtual machine type; and allocating preferentially to the application software a virtual machine corresponding to a virtual machine type having a high priority level according to the priority level of each virtual machine type in the configuration information, so that the application software runs in the virtual machine. In the technical solutions in the embodiments of the present invention, based on priority levels of usable virtual machine types for application software in configuration information of the application software, a virtual machine corresponding to a virtual machine type having a high priority level is preferentially allocated to the application software, thereby enhancing a running effect of the application software.</p> |