Patent ID: 8879398

Claim:
A method for connecting virtual machines in a cloud system, the cloud system having a plurality of switches, each switch respectively having several connecting ports, each switch inter-connected via the connecting ports, and connecting to a plurality of physical hosts in the cloud system, and the method including: a) one of the plurality of physical hosts creating a new virtual machine (VM); b) the cloud system executing an agent network management service (ANMS) process for detecting a creation of the new VM, and confirming which virtual local area network (VLAN) the new VM pertained to; c) the ANMS process searching a nearest boundary point from the new VM in the same VLAN; d) the ANMS process confirming a shortest connecting route from the new VM to the boundary point; and e) the ANMS process communicating sequentially with all switches of the shortest connecting route, and requesting the switches to set up internal VLAN tags, for permitting the transmission of data packets from the VLAN the new VM pertained to.