Difference between revisions of "Install openQRM on Debian"
(adding note to add extra kernel) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | This How-To explains installing the openQRM Datacentre Management and Cloud Computing platform on Debian. It is the starting point for a set of openQRM How-Tos explaining different Use-cases with the focus on | + | This How-To explains installing the openQRM Datacentre Management and Cloud Computing platform on Debian. It is the starting point for a set of openQRM How-Tos explaining different Use-cases with the focus on virtualisation, automation and cloud computing. |
'''Requirements''' | '''Requirements''' | ||
Line 5: | Line 5: | ||
* One physical Server. Alternatively, the installation can be also done within a Virtual Machine | * One physical Server. Alternatively, the installation can be also done within a Virtual Machine | ||
* At least 1 GB of Memory | * At least 1 GB of Memory | ||
− | * at least | + | * at least 40 GB of Diskspace |
* Optional VT for Intel CPUs or AMD-V for AMD CPUs (Virtualization Technology) enabled in the Systems BIOS so that the openQRM Server can run Virtual Machines later | * Optional VT for Intel CPUs or AMD-V for AMD CPUs (Virtualization Technology) enabled in the Systems BIOS so that the openQRM Server can run Virtual Machines later | ||
− | === Install Debian | + | === Install Debian === |
# Install a minimal Debian on a physical Server. During the installation select 'manual network' configuration and provide a static IP address. In this tutorial we will use 192.168.178.5/255.255.255.0 as the IP configuration for the openQRM Server system. | # Install a minimal Debian on a physical Server. During the installation select 'manual network' configuration and provide a static IP address. In this tutorial we will use 192.168.178.5/255.255.255.0 as the IP configuration for the openQRM Server system. | ||
+ | # Remember to use/set a Fully Qualified Domain Name (FQDN) as the sytem's hostname and domain. It does not need to resolve, but its important to be set. | ||
# In the partitioning setup, select 'manual' and create one partition for the root-filesystem, one as swap space plus a dedicated partition to be used as storage space for the Virtual Machines later. In the configuration of the dedicated storage partition select 'do not use'. | # In the partitioning setup, select 'manual' and create one partition for the root-filesystem, one as swap space plus a dedicated partition to be used as storage space for the Virtual Machines later. In the configuration of the dedicated storage partition select 'do not use'. | ||
# In the software selection dialog select just 'SSH-Server' | # In the software selection dialog select just 'SSH-Server' | ||
# After the installation finished please login to the system and update its packaging system as 'root': | # After the installation finished please login to the system and update its packaging system as 'root': | ||
− | <blockquote>''apt-get update && apt-get upgrade'' </blockquote> | + | <blockquote>''apt-get update && apt-get upgrade'' </blockquote> |
− | + | === Install openQRM - the short version === | |
+ | 1. download and un-compress openQRM Community or Enterprise to /usr/src | ||
− | + | 2. un tar and install ; | |
− | |||
− | + | Community; | |
− | '' | + | ''tar -zxf openQRM-5.3.50-Community-Edition.tgz ; cd openQRM-5.3.50-Community-Edition/ ; ./install-openqrm.sh'' |
− | + | Enterprise; | |
− | === Install openQRM === | + | ''tar -zxf openQRM-5.3.50-Enterprise-Edition.tgz ; cd openQRM-5.3.50-Enterprise-Edition/ ; ./install-openqrm.sh'' |
+ | |||
+ | This process can take a short while, whilst it installs the supporting openQRM packages. Minimum 10 minutes if you have fast internet and a decent kvm. | ||
+ | |||
+ | 4. suggestion: add PVE kernel to KVM first, if used in conjunction with a Proxmox VE installation, | ||
+ | |||
+ | wget <nowiki>http://download.proxmox.com/debian/dists/bullseye/pve-no-subscription/binary-amd64/pve-kernel-5.11.22-3-pve_5.11.22-7_amd64.deb</nowiki> | ||
+ | |||
+ | 5. create mysql openqrm user and password, flush privileges | ||
+ | |||
+ | mysql -e "grant all on openqrm.* to 'openqrm'@'localhost' identified by 'openqrm'; flush privileges" | ||
+ | |||
+ | 6. reboot, this is useful to the current KVM kernel (now the pve kernel) will be used as the default linux kernel. | ||
+ | |||
+ | 7. then configure openqrm via web (remember the steps above the username and password are both openqrm), the last screen will take 5-10 minutes whilst openQRM rebuilds the current kernel's initrd into an openQRM compabille boot | ||
+ | |||
+ | === Install openQRM - the longer version === | ||
Purchase and download openQRM | Purchase and download openQRM | ||
Line 43: | Line 60: | ||
<blockquote>''tar -xvzf openqrm-enterprise.tar.gz''</blockquote>2. Then run as 'root'<blockquote>''cd openqrm-enterprise'' | <blockquote>''tar -xvzf openqrm-enterprise.tar.gz''</blockquote>2. Then run as 'root'<blockquote>''cd openqrm-enterprise'' | ||
− | ''./install-openqrm.sh''</blockquote> | + | ''./install-openqrm.sh''</blockquote>Make sure to set a password for the mysql-server and nagios4 package. |
− | |||
− | Make sure to set a password for the mysql-server and | ||
[[File:Csm 02-openqrm-install e007a58550.png|none|thumb|390x390px|Setting a password]] | [[File:Csm 02-openqrm-install e007a58550.png|none|thumb|390x390px|Setting a password]] | ||
The installation also asks for the mail-configuration. If unsure please select "local only" and go on with the suggested system name. | The installation also asks for the mail-configuration. If unsure please select "local only" and go on with the suggested system name. | ||
Line 51: | Line 66: | ||
The last step of the installation provides you with the URL, username and password to login to the openQRM Server | The last step of the installation provides you with the URL, username and password to login to the openQRM Server | ||
[[File:Csm 06-openqrm-install fa5cc24876.png|none|thumb|390x390px|openQRM login credentials]] | [[File:Csm 06-openqrm-install fa5cc24876.png|none|thumb|390x390px|openQRM login credentials]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Installation by packages === | === Installation by packages === | ||
Line 66: | Line 74: | ||
[[File:Csm 07-openqrm-install 602e7d0524.png|none|thumb|390x390px|Network Interface selection screen]]Then select 'mysql' as the database type | [[File:Csm 07-openqrm-install 602e7d0524.png|none|thumb|390x390px|Network Interface selection screen]]Then select 'mysql' as the database type | ||
[[File:Csm 08-openqrm-install 5a821c5713.png|none|thumb|390x390px|Database type selection]] | [[File:Csm 08-openqrm-install 5a821c5713.png|none|thumb|390x390px|Database type selection]] | ||
− | At the next step, provide the database credentials | + | At the next step, provide the database credentials. Ensure the database credentials are valid before proceeding. Please note this stage can take up to 8 minutes. The screen will be blank, please be patient. You can always; |
+ | |||
+ | tail -n 100 -f /var/log/syslog | ||
+ | |||
+ | for activity. | ||
[[File:Csm 09-openqrm-install 10b3d582f9.png|none|thumb|390x390px|Database configuration]] | [[File:Csm 09-openqrm-install 10b3d582f9.png|none|thumb|390x390px|Database configuration]] | ||
For the openQRM Enterprise Edition, the following page provides an simple option to upload the licence keys | For the openQRM Enterprise Edition, the following page provides an simple option to upload the licence keys | ||
[[File:Csm 10-openqrm-install 3a06f002ca.png|none|thumb|390x390px|Upload licence keys]] | [[File:Csm 10-openqrm-install 3a06f002ca.png|none|thumb|390x390px|Upload licence keys]] | ||
+ | |||
+ | |||
+ | Once the license keys are provided openQRM will rebuild the current kernel into an openQRM initramdisk, this may take 5-10 minutes. | ||
+ | |||
+ | |||
'''Congratulations!!''' | '''Congratulations!!''' | ||
Line 75: | Line 92: | ||
[[File:Csm 11-openqrm-install 8cdf50bf05.png|frameless|390x390px]] | [[File:Csm 11-openqrm-install 8cdf50bf05.png|frameless|390x390px]] | ||
+ | |||
+ | |||
+ | Note Well: | ||
+ | |||
+ | It is always wise to install a duplicate kernel (this process can take 5-10mins or more on slower computers); | ||
+ | |||
+ | To add the Kernel to openQRM. Replace KERNEL_NAME, KERNEL_VER, OPENQRM_UI_USER, OPENQRM_UI_PASS, SERVER_NAME with the appropriate variables | ||
+ | |||
+ | # /usr/share/openqrm/bin/openqrm kernel add -n KERNEL_NAME -v KERNEL_VER -u OPENQRM_UI_USER -p OPENQRM_UI_PASS -l / -i initramfs -m csiostor | ||
+ | # /usr/share/openqrm/bin/openqrm kernel add -n pve-5.11.22-6 -v 5.11.22-3-pve -u openqrm -p openqrm -l / -i initramfs -m csiostor | ||
* | * | ||
Line 80: | Line 107: | ||
[[Category:Tutorial]] | [[Category:Tutorial]] | ||
[[Category:Debian]] | [[Category:Debian]] | ||
+ | [[Category:Howto]] |
Latest revision as of 09:42, 25 November 2023
This How-To explains installing the openQRM Datacentre Management and Cloud Computing platform on Debian. It is the starting point for a set of openQRM How-Tos explaining different Use-cases with the focus on virtualisation, automation and cloud computing.
Requirements
- One physical Server. Alternatively, the installation can be also done within a Virtual Machine
- At least 1 GB of Memory
- at least 40 GB of Diskspace
- Optional VT for Intel CPUs or AMD-V for AMD CPUs (Virtualization Technology) enabled in the Systems BIOS so that the openQRM Server can run Virtual Machines later
Install Debian
- Install a minimal Debian on a physical Server. During the installation select 'manual network' configuration and provide a static IP address. In this tutorial we will use 192.168.178.5/255.255.255.0 as the IP configuration for the openQRM Server system.
- Remember to use/set a Fully Qualified Domain Name (FQDN) as the sytem's hostname and domain. It does not need to resolve, but its important to be set.
- In the partitioning setup, select 'manual' and create one partition for the root-filesystem, one as swap space plus a dedicated partition to be used as storage space for the Virtual Machines later. In the configuration of the dedicated storage partition select 'do not use'.
- In the software selection dialog select just 'SSH-Server'
- After the installation finished please login to the system and update its packaging system as 'root':
apt-get update && apt-get upgrade
Install openQRM - the short version
1. download and un-compress openQRM Community or Enterprise to /usr/src
2. un tar and install ;
Community;
tar -zxf openQRM-5.3.50-Community-Edition.tgz ; cd openQRM-5.3.50-Community-Edition/ ; ./install-openqrm.sh
Enterprise;
tar -zxf openQRM-5.3.50-Enterprise-Edition.tgz ; cd openQRM-5.3.50-Enterprise-Edition/ ; ./install-openqrm.sh
This process can take a short while, whilst it installs the supporting openQRM packages. Minimum 10 minutes if you have fast internet and a decent kvm.
4. suggestion: add PVE kernel to KVM first, if used in conjunction with a Proxmox VE installation,
wget http://download.proxmox.com/debian/dists/bullseye/pve-no-subscription/binary-amd64/pve-kernel-5.11.22-3-pve_5.11.22-7_amd64.deb
5. create mysql openqrm user and password, flush privileges
mysql -e "grant all on openqrm.* to 'openqrm'@'localhost' identified by 'openqrm'; flush privileges"
6. reboot, this is useful to the current KVM kernel (now the pve kernel) will be used as the default linux kernel.
7. then configure openqrm via web (remember the steps above the username and password are both openqrm), the last screen will take 5-10 minutes whilst openQRM rebuilds the current kernel's initrd into an openQRM compabille boot
Install openQRM - the longer version
Purchase and download openQRM
openQRM is available from openQRM Enterprise at
http://www.openqrm-enterprise.com/
You can also use the instructions below to install openQRM from the source repository or by packages.
The installation procedure for openQRM is straight forward.
- Unpack the openqrm-enterprise.tar.gz file:
tar -xvzf openqrm-enterprise.tar.gz
2. Then run as 'root'
cd openqrm-enterprise ./install-openqrm.sh
Make sure to set a password for the mysql-server and nagios4 package.
The installation also asks for the mail-configuration. If unsure please select "local only" and go on with the suggested system name.
The last step of the installation provides you with the URL, username and password to login to the openQRM Server
Installation by packages
To install openQRM by distribution packages please request the package installation from openQRM Enterprise
Configure and initialize openQRM
After a successful installation the openQRM Server web interface is available at
http://static-ip-configured-during-the-Debian-installation/openqrm
If you have set the suggested IP address for this howto the openQRM URL will be
http://192.168.178.5/openqrm
Open this URL in your Web browser. Login with the username 'openqrm' and the password 'openqrm'. Then select the network interface to use for the openQRM management network
Then select 'mysql' as the database type
At the next step, provide the database credentials. Ensure the database credentials are valid before proceeding. Please note this stage can take up to 8 minutes. The screen will be blank, please be patient. You can always;
tail -n 100 -f /var/log/syslog
for activity.
For the openQRM Enterprise Edition, the following page provides an simple option to upload the licence keys
Once the license keys are provided openQRM will rebuild the current kernel into an openQRM initramdisk, this may take 5-10 minutes.
Congratulations!!
openQRM is now installed and successfully initialized ready to manage all aspects of your datacentre
Note Well:
It is always wise to install a duplicate kernel (this process can take 5-10mins or more on slower computers);
To add the Kernel to openQRM. Replace KERNEL_NAME, KERNEL_VER, OPENQRM_UI_USER, OPENQRM_UI_PASS, SERVER_NAME with the appropriate variables
- /usr/share/openqrm/bin/openqrm kernel add -n KERNEL_NAME -v KERNEL_VER -u OPENQRM_UI_USER -p OPENQRM_UI_PASS -l / -i initramfs -m csiostor
- /usr/share/openqrm/bin/openqrm kernel add -n pve-5.11.22-6 -v 5.11.22-3-pve -u openqrm -p openqrm -l / -i initramfs -m csiostor