Scheduling in virtual infrastructure