A Dynamic Resource Allocation Model for Virtual Machine Management on Cloud