Using getentity for the vm