Retry VM creation: Addressed review comments, added unit test.