The invention discloses a
particle swarm algorithm-based virtual-
machine deployment method under a cloud environment, and belongs to the field of
resource scheduling under
cloud computing environments. For solving problems of only carrying out optimization of a single objective and lacking consideration of multiple objectives; the invention provides the
particle swarm algorithm-based virtual-
machine deployment method under a cloud environment. According to the method, deployment mapping between virtual machines and physical machines is established at an IaaS (Infrastructure as a Service) layer. The method of deployment mapping includes: a user-oriented virtual-
machine deployment method, which includes receiving an application of a user for a
virtual machine, and deploying the same to an objective physical-host on the basis of an improved multi-objective-optimization
particle swarm optimization algorithm of congestion degree judgment; and a platform-oriented virtual-machine dynamic-management method, which includes deploying a
virtual machine to an objective physical-host, and then judging whether status of the objective physical-host is above or below a normal threshold value, anddetermine a mapping relationship of the objective physical-host and the virtual host on the basis of an improved multi-objective-optimization
particle swarm algorithm of sharing degree judgment. The virtual-machine deployment method is used for deploying the virtual machines on the objective physical-hosts.