NPE when exporting vm

Should get vm instance via api not via new

Signed-off-by: walteryang <walteryang47@users.noreply.github.com>