virttest.utils_test.libvirt: add utility for VM migration

This PR and PR 1875 help do VM migration.