Yesterday I took some time to setup HANA Express Edition on my home-server environment. It would probably have been easiest to just install the VM image. SAP indicates that the VM image is made for VMware and VirtualBox, but doesn’t indicate how much Hypervisor-specific magic it added to this image. As I’m running XenServer at home, I thought I’d not take the risk and go with the binary download instead. I did feel confident that HANA would be running on my Xen hypervisor as HANA runs on Amazon and Amazon runs Xen.
The whole process of installing HANA Express Edition is quite well documented, but getting the foundation going is left up to your imagination. So this is what I did…
Step 0: Prepare
To prepare, you need to download the Suse 12 SP1 for SAP media and of course HXE itself:
- Suse: https://www.suse.com/products/sles-for-sap/download (only DVD 1 is required)
- Hana Express Edition, use the download manager after registering: http://sap.com/sap-hana-express.
Step 1: pick the right dimensions for the VM
In a discussion between Robin van het Hof and Thomas Grassl for TechEd Online, Thomas mentioned that the server only version would run in a VM with as little as 8GB memory. However, I intended to run the version that includes XSA features, which would require a bit more memory. The minimum amount of memory seems to be 12GB, so that is what I assigned to my VM. Disk space wise, 50GB would be enough. If the partition order is chosen smartly, this can be extended easily if the need arises.
If you’re like me on XenServer, it’s better not to use the Suse template provided by Xen as it will create a para-virtualized machine and HANA will not run. Instead use e.g. “Ubuntu Xenial Xerus 16.04”, to make sure the machine will be a HVM guest.
Step 2: SUSE installation options
During installation registration is optional. At the time I was installing my instance, Novell’s registration servers didn’t accept my registration code, so I skipped this.
Other installation choices:
- Select profile: Proceed with Standard SLES installation
- No add on products
- Partitioning: partition 1: 2GB Linux Swap, partion 2: 48GB Linux Ext4.
- Package selection: remove
- Firewall and SSH service: switch firewall off. HXE exposes many ports, it would be quite in the way during installation
- Default SystemD target: Text, as it’s going to be a server.
- Remove the “Gnome Desktop Environment” and “X Windows System” installation patterns. The “SAP HANA Server” installation pattern doesn’t need to be selected. Everything that’s needed is contained in the HANA Express download.
After that, the installation can be started.
Step 3: OS post processing
After the installation of the operating system some OS post processing tasks need to be completed:
- Install the VM Guest tools
- Set the hostname. Mine get’s hostname hxehost through DHCP.
- Install openssl 0.9.8, as HANA Express is linked to exactly that version. You can install this version using the SUSE repositories, but this requires registration. As I mentioned earlier, registration didn’t work at the time I configured my machine, so I have downgraded openssl this way:
sudo zypper in ftp://ftp.icm.edu.pl/vol/rzm5/linux-opensuse/repositories/home:/mucflower/SLE_11_SP1/x86_64/libopenssl0_9_8-0.9.8r-4.3.x86_64.rpm
And there you have it, a nice foundation to get started with SAP HANA Express Edition.