Multiple installations of pandora on localhost #2288

Closed
opened 2014-02-12 14:58:34 +00:00 by 0x2620 · 4 comments
Owner

Hi,

I want to install multiple instances of pandora in localhost. I followed the README file with changing all names to my new installation name. But, how can I point it to refer to both to be able to access them. Do I need to refer to diff ports or something like that?

Hi, I want to install multiple instances of pandora in localhost. I followed the README file with changing all names to my new installation name. But, how can I point it to refer to both to be able to access them. Do I need to refer to diff ports or something like that?
j added the
general
label 2014-02-12 14:58:34 +00:00
0x2620 was assigned by j 2014-02-12 14:58:34 +00:00
j added the
normal
task
labels 2014-02-12 14:58:34 +00:00
Owner

this is not recommended right now since you have to configure a set of upstart scripts for each instance and change etc/init/pandora.conf to listen to another port (default 2620)

after that you have to make sure the vhost setup points to the right port based on a name

the names you have to write into /etc/hosts like this:

127.0.0.1 pandora1 
127.0.0.1 pandora2

possibly some other things need to be adjusted.

an easier way is to install lxc and create a linux container for each instance.

this is not recommended right now since you have to configure a set of upstart scripts for each instance and change etc/init/pandora.conf to listen to another port (default 2620) after that you have to make sure the vhost setup points to the right port based on a name the names you have to write into /etc/hosts like this: ``` 127.0.0.1 pandora1 127.0.0.1 pandora2 ``` possibly some other things need to be adjusted. an easier way is to install lxc and create a linux container for each instance.
Author
Owner

ummm ok

ummm ok
0x2620 added the
fixed
label 2014-02-12 15:16:27 +00:00
Author
Owner

I figured out LXC and created two containers. How to associate it to pandora installation?

I figured out LXC and created two containers. How to associate it to pandora installation?
0x2620 removed the
fixed
label 2014-02-13 12:24:05 +00:00
0x2620 reopened this issue 2014-02-13 12:24:05 +00:00
Owner

i tend to copy vm/firestboot.sh from the pandora repository into a new lxc container and run this as root:

apt-get -y install avahi-daemon
sed -i s/ubuntu/pandora/g /etc/passwd /etc/shadow /etc/group
mv /home/ubuntu /home/pandora
echo "pandora:pandora" | chpasswd
locale-gen en_US.UTF-8
dpkg-reconfigure locales
./firstboot.sh

Added LXC_README.txt to the repository outlining the full process

i tend to copy [vm/firestboot.sh](https://wiki.0x2620.org/browser/pandora/vm/firstboot.sh) from the pandora repository into a new lxc container and run this as root: ``` apt-get -y install avahi-daemon sed -i s/ubuntu/pandora/g /etc/passwd /etc/shadow /etc/group mv /home/ubuntu /home/pandora echo "pandora:pandora" | chpasswd locale-gen en_US.UTF-8 dpkg-reconfigure locales ./firstboot.sh ``` Added [LXC_README.txt](https://wiki.0x2620.org/browser/pandora/vm/LXC_README.txt) to the repository outlining the full process
rlx added this to the 14.01 milestone 2014-02-17 13:21:26 +00:00
rlx modified the milestone from 14.04 to 14.03 2014-02-17 13:21:36 +00:00
0x2620 added the
fixed
label 2014-02-18 14:10:41 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/pandora#2288
No description provided.