# Setting up RocketChat with Multiple VM's

**URL:** https://forums.rocket.chat/t/setting-up-rocketchat-with-multiple-vms/16095
**Category:** Rocket.Chat Apps
**Created:** [March 1, 2023, 9:51am UTC](https://forums.rocket.chat/t/setting-up-rocketchat-with-multiple-vms/16095 "2023-03-01T09:51:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![aaronng](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@aaronng](https://forums.rocket.chat/u/aaronng)
#### Post date: [March 1, 2023, 9:51am UTC](https://forums.rocket.chat/t/setting-up-rocketchat-with-multiple-vms/16095/1 "2023-03-01T09:51:30Z")

</div>

Hi all!

I would like to ask on whether it’s possible to set up Rocketchat application inside 2 separate VM’s using the free edition license. (I am using Manual Installation Ubuntu guide for this). I am getting **“You are operating multiple instances without an active enter**

 ![Rocketchat app log](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/a/ac91be796c4fa146b9336a1010bc3301d9909eb9.png)   
**prise license - some features may not behave as designed”**

Meaning, instead of having 2 RocketChat instances inside a single VM, I would like to have it separated. 1 RocketChat per VM.

My goal is to have:

1. 2 RocketChat VM’s, each VM having it’s own IP but load balanced to a single DNS
2. 1 Nginx VM to enable SSL
3. 3 MongoDB VM’s, replicaset, both RocketChat VM’s to connect here

Any help is much appreciated, Thanks in advance!

**Node 1 VM “systemctl edit rocketchat”**

[Service]  
Environment=ROOT\_URL=[http://localhost:3000/](http://localhost:3000/)  
Environment=PORT=3000  
#Environment=MONGO\_URL=mongodb://192.168.9.205:27017/rocketchat?replicaSet=rs01  
#Environment=MONGO\_OPLOG\_URL=mongodb://192.168.9.205:27017/local?replicaSet=rs01  
Environment=MONGO\_URL=mongodb://mongo-db1:27017,mongo-db2:27017,mongo-db3:27017/rocketchat?replicaSet=rs01  
Environment=MONGO\_OPLOG\_URL=mongodb://mongo-db1:27017,mongo-db2:27017,mongo-db3:27017/rocketchat?replicaSet=rs01

**Node 2 VM “systemctl edit rocketchat”**  
[Service]  
Environment=ROOT\_URL=[http://localhost:3000/](http://localhost:3000/)  
Environment=PORT=3000  
#Environment=MONGO\_URL=mongodb://192.168.9.205:27017/rocketchat?replicaSet=rs01  
#Environment=MONGO\_OPLOG\_URL=mongodb://192.168.9.205:27017/local?replicaSet=rs01  
Environment=MONGO\_URL=mongodb://mongo-db1:27017,mongo-db2:27017,mongo-db3:27017/rocketchat?replicaSet=rs01  
Environment=MONGO\_OPLOG\_URL=mongodb://mongo-db1:27017,mongo-db2:27017,mongo-db3:27017/rocketchat?replicaSet=rs01

If i have both RC application running in both of my VM’s, only 1 of the VM’s RocketChat application I am able to access
