Running ES in VM is no different than physical server (from accessing
the API) point of view.
Since most usage of ES is through its REST API, and obviously your VM
will have an IP address,
there is really no problem using ES inside VM.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.