摘要 |
Provided are a virtual machine deployment method and device. The method comprises: firstly acquiring a virtual machine storage resource description file, parsing the storage resource description file to acquire the storage performance requirements of the virtual machine, then calling an IaaS-layer management interface according to the storage performance requirements to set a logic unit number corresponding to the virtual machine, thereby meeting the storage performance requirements of the virtual machine. Compared with determining a corresponding data storage cluster according to the storage capacity of a virtual machine in the prior art, in the embodiments of the present invention, when deploying a storage resource, a logic unit number corresponding to the virtual machine is directly set according to storage performance requirements, and thus a person skilled in the art could flexibly configure a virtual machine storage resource description file, to avoid the case where a main and a standby virtual machine, and a data disk and a system disk of the same virtual machine, correspond to the same logic unit number in a data storage cluster, thus improving reliability of virtual machine storage resources, and having a relatively high configuration efficiency. |