Support to create VM objects for migrate_vms.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Merge pull request #1866 from yumingfei/unit_migration

Support to create VM objects for migrate_vms.