Preparing VM for Gluu Server Installation#
Attention
The official support end-of-life (EOL) date for Gluu Server 2.4.4 is December 31, 2018. Starting January 1, 2019, no further security updates or bug-fixes will be provided for Gluu Server 2.X. We strongly recommend upgrading to the newest version.
Gluu Server Community Edition (CE) has the following minimum requirements.
CPU Unit | RAM | Disk Space | Processor Type |
---|---|---|---|
2 | 4GB | 40GB | 64 Bit |
Warning
Please only post installation issues to Gluu Support if all the above requirements are met!
Ports#
The following ports are open to the Internet by default.
Port Number | Protocol | Notes |
---|---|---|
80 | tcp | Forwards to 443 |
443 | tcp | Apache HTTPD |
22 | tcp | ssh |
Memory allocated for Tomcat's heap.#
Tomcat's heap will require at least 3GB of RAM to spin up a test instance of Gluu CE 2.4.3 (and later). For production setups it is recommended to allocate at least 4-6GB of RAM to spin up a test instance of Gluu CE 2.4.3 and later.
Tomcat configuration will allow to enter the allocation of RAM amount during setup.py
script's phase of installation. Allocation of RAM could also be modified after the installation has completed, by editing /opt/tomcat/conf/gluuTomcatWrapper.conf
file inside of the container and setting wrapper.java.initmemory
and wrapper.java.maxmemory
properties to desired values.
File Descriptors#
The Gluu Server requires setting the file descriptors
to 65k.
Follow these steps or research how to do this on your Linux platform.
- Add the following lines in the
/etc/security/limits.conf
file.
* soft nofile 65536
* hard nofile 262144
-
Add the following lines to
/etc/pam.d/login
session required pam_limits.so
-
Increase the file descriptor limit to 65535. The system file limit is set in
/proc/sys/fs/file-max
.# echo 65535 > /proc/sys/fs/file-max
-
Use the
ulimit
command to set the file descriptor limit to the hard limit specified in/etc/security/limits.conf
.# ulimit -n unlimited
-
Restart your system.
Amazon AWS#
Amazon AWS instances provide a public and private IP address. While
running the /install/community-edition-setup/setup.py
script, use the
Private IP address. Also, use a hostname other then the long default
hostname that Amazon provides. Update your DNS or hosts files accordingly.
Microsoft Azure#
Accessing the Gluu Server on Azure can be a little bit tricky because of the Public/Private IP. Azure assigns a new Public/Private IP addresses each time the server is started.
Setting up VM#
-
Log into Windows Azure Administrative Panel
-
Click on
Virtual Machines
tab, and clickCreate a Virtual Machine
link -
From the menu, choose
Compute
>Virtual Machine
>From Gallery
branch. -
Choose Ubuntu Server 14.04 LTS or CentOS 6.7. Remember to set selinux to permissive if you choose CentOS.
-
Provide a name for the VM in the
Virtual Machine Name
field and useStandard
forTier
. -
Select a server with at least 4GB RAM in the
Size
dropdown menu. -
Provide a username/password to connect via ssh and upload ssh certificate. Click
Next
. -
Create a new cloud service and select
None
for theAvailability Set
option. * Endpoints Section: This is where port forwarding is set so that the internal IP address can be selectively reachable from the outside world. By default, only tcp /22 is there for ssh. The public ports forhttp
andhttps
(tcp ports 80 and 443) have to be added and mapped to the same private ports. If the cloud mappings are flagged conflicting, proceed without setting them. Remember to set them after the creation of the VM. Then, clickNext
. -
Choose not to install
VM Agent
and click thetick
button to finalize the VM. -
Go to the
Dashboard
tab of VM Management Panel and copy theDNS Name
. This is the name that is used to access the Gluu Server. -
You should now be able to ssh to the server and proceed with the installation.
Linode VM#
Linode Virtual Machines (VM) use a custom kernel which is not supported by the Gluu Server, therefore the kernel must be updated before the Gluu Server can be installed in a Linode VM. The following steps will guide you through kernel update in the Linode VM.
-
Check for the current version of the kernel. If the output contains
-Linode
, then proceed# uname -a
-
Run the following command to update the kernel:
# apt-get install linux-image-virtual grub2
-
Modify
grub
file in the/etc/default/
folder:# vim /etc/default/grub
-
Ensure that the following lines are present in the grub file
GRUB_TIMEOUT=10 GRUB_CMDLINE_LINUX="console=ttyS0,19200n8" GRUB_DISABLE_LINUX_UUID=true GRUB_SERIAL_COMMAND="serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1"
-
Finally run the following commands to update
grub
and reboot:# update-grub # reboot