In this paper, we propose virtualization based cyber-functions for mobile cyber-physical systems (CPSs). If a physical object of a CPS has a high level of mobility, and as the network path length from the cyber-function box gets larger, it becomes very difficult to satisfy the data exchange delay requirement. The proposed scheme can perform the migration of the cyber-functions to an appropriate location on the cyber-infrastructure using virtualization techniques.