A Capacity Planning and Resource Allocation Method for Virtualized Servers