Problem installing Discourse on virtual machine

What do you mean? You need a domain for users to access your site.

Sorry, I misunderstood. It sounds like you’re running a Production version of Discourse on your VM. You should run a dev install instead: