Handle virtual machine impi equivalent code.
Generalize routine to get physical machine for a vm.