Elasticsearch and Kibana on two machines

I installed elasticsearch(Along with logstash, and they worked as expected) on a virtual machine, and currently I am trying to view my data on Kibana from local. What is the setup I need to change in the configs?

Thanks a lot in advance!

In your kibana/config directory, you should find kibana.yml and in there identify the location of ElasticSearch :
elasticsearch_url: "http://192.168.122.222:9200"

That allows the kibana webserver to find the ".kibana" index in ElasticSearch, where it stores all the user configuration (searches, dashboards, etc)

Thank you sir i'll look into it!