LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   what does it mean to 'assign user's web session to a dedicated container' on openvz (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/what-does-it-mean-to-assign-users-web-session-to-a-dedicated-container-on-openvz-4175460263/)

charmin 05-01-2013 04:51 AM

what does it mean to 'assign user's web session to a dedicated container' on openvz
 
I have heard that OpenVZ container can be used in educational environment by assigning each student his own container.How is this exactly done
I now have OpenVZ containers in my host machine in a LAN,which afcourse can be managed using vzctl.How can a user login to a container from another system in the same network.
I am really new to all this and may sound dumb,but could anyone please provide suggestions.

unSpawn 05-01-2013 01:54 PM

Quote:

Originally Posted by charmin (Post 4942483)
I have heard that OpenVZ container can be used in educational environment by assigning each student his own container.How is this exactly done

http://openvz.org/Category:Concepts and the rest of the OpenVZ Wiki?


Quote:

Originally Posted by charmin (Post 4942483)
I now have OpenVZ containers in my host machine in a LAN,which afcourse can be managed using vzctl.How can a user login to a container from another system in the same network.

Configure its network like assigning an IP address and host name, etc, etc? See http://openvz.org/User_Guide/Operati...ring_Container or http://www.howtoforge.com/howtos/virtualization/openvz or http://wiki.centos.org/HowTos/Virtualization/OpenVZ ?


Quote:

Originally Posted by charmin (Post 4942483)
I am really new to all this and may sound dumb,but could anyone please provide suggestions.

You maybe may also be interested in http://code.google.com/p/ovz-web-panel/.

charmin 05-02-2013 11:37 AM

Thanks for those suggestions.But I had gone through all those sites before and had found no answer to my questions.As for that web panel,i have already installed it.My current situation is
1.In the LAN i m working from,the hardware node(HN) on which OpenVZ is installed has ip address 192.168.2.152.
2.three containers have been created so far with ip in the range 192.168.0.101/28.
3.SNAT and DNAT configurations have been made with the destination address as the external ip address of the LAN router.
4.Apache and MySQL has been installed on the HN.
5.Apache has been installed on a container(101).
6.Other systems in the LAN are able to view the website hosted on apache of HN by typing the ip address on the browser.

Now
1.How do I "assign a user session to a container"
2.How can containers be created dynamically so that when the user logs into the webserver,his session is assigned to a container
3.Does this require all the containers to run Apache(which is an overhead) and run similar application as in the HN
4.Will there be any dependency between the web server instance on the container and the HN ie will any updates made on the website hosted in Apache running on HN,be reflected in all the web server instances running on containers.
5.If a user telnets a container IP from another system in the network,what must she see?
6.Does all this involve bridging?

Habitual 05-02-2013 12:17 PM

Quote:

Originally Posted by unSpawn (Post 4942852)
http://openvz.org/Category:Concepts and the rest of the OpenVZ Wiki?

+1.

Quote:

Originally Posted by charmin (Post 4943493)
1.How do I "assign a user session to a container"
2.How can containers be created dynamically so that when the user logs into the webserver,his session is assigned to a container
3.Does this require all the containers to run Apache(which is an overhead) and run similar application as in the HN
4.Will there be any dependency between the web server instance on the container and the HN ie will any updates made on the website hosted in Apache running on HN,be reflected in all the web server instances running on containers.
5.If a user telnets a container IP from another system in the network,what must she see?
6.Does all this involve bridging?

What users are those?
Logs into what webserver?
What session?
dafuq is "HN"? spell it out.

User Guide/Operations on Virtual Private Servers
User Guide/Operations on Containers

Container have no users until you give an ip of a container to a user and that would be root.
root then is the user.

Apache will be whatever version is in the Template

charmin 05-02-2013 01:06 PM

->Users as in anyone trying to access the website hosted on apache,installed on the "Host Node(HN)", like the students on in an educational environment as mentioned in the beginning of this thread.

->session= web session
->HN=Host Node(OpenVZ host)

gdr 06-16-2013 12:21 PM

You don't need to put the containers in a separate subnet and do address translation; a much more easy option is to assign the containers to IPs from the main network. It will work transparently.

But, like others, I recommend that you first read the OpenVZ wiki or basically any resource explaining what virtualization is. Container ~= virtual machine.


All times are GMT -5. The time now is 02:18 AM.