Prepare CentOS VM for SAP Netweaver 7.3

Publié le Auteur manu2 commentaires

This article describe the preparation of a SAP server running in a virtual machine.
It does not explain how to setup SAP software.

SAP Netweaver 2004 and 7.0 (2004s) do run fine on Debian OS. SAP does not support this linux OS, you are supposed to use RedHat or Suse. However after doing some changes to install scripts and using some tricks you can achieve a complete setup successfully.
The next SAP Netweaver version is 7.3. This one does not accept Debian (may be I did not investigate enough to have it working, if you do mail me at, thanks !) and requires a 64bits OS. So I tryed to set it up on a free RedHat like platform: CentOS.

Finaly I will have this test system run in a virtual machine. It is far more convenient as having one physical server per system. For that I am using VirtualBox.
I have tryed the free version of VMWare and had trouble: each update of the kernel host system implys the need to recompile the VMWare software.

As host machine I am using a Debian 64bits and as VirtualBox guest it is a CentOS 6.0 64bits.

VM creation
– OS type Linux
– version Linux 2.6 (64bit)
– base memory size 5500MB
– create a new harddisk VMDK
– fixed size
– size 200Go

VM settings
– System tab: Enable IO APIC, hardware clock in UTC time, 2 CPUs, 90% execution Cap, Enable VT-x, Enable Nested Paging
– Display tab: 128MB video, no extended features, enable temote display server, port 600x
– Audio tab: disable audio
– Network tab adapter 1 ethx enabled bridged, adapter 2 vboxnet0 host only
– USB tab: disabled unless you want to connect an external drive to your guest system
– Shared folder: very useful to avoid putting all SAP software sources on the guest machine, define what you will use

CentOS installation
– get ISO file CentOS-6.0-x86_64-bin-DVD1.iso
– use this ISO as boot drive for the VM and start the VM
– create the following partitions: 20Go for root, 30Go for /SAP, 160Go for /oracle
– at the end choose « desktop minimal » version to setup
– run system-config-network to setup network
– install extra packages kernel-devel and gcc

CentOS config for SAP
Sapnote 1391070 gives some tips:

yum install uuidd libXp -y
yum groupinstall base compat-libraries debugging directory-client
hardware-monitoring large-systems network-file-system-client
perl-runtime storage-client-multipath x11 development

Modify /etc/selinux/config


Add in /etc/sysctl.conf

# SAP settings
kernel.sem=1250 256000 100 1024

Add in /etc/security/limits.conf

@sapsys hard nofile 32800
@sapsys soft nofile 32800
@dba hard nofile 32800
@dba soft nofile 32800

@sapsys hard nofile 32800
@sapsys soft nofile 32800
@dba hard nofile 32800
@dba soft nofile 32800

CentOS config for Oracle

yum install libaio libaio-devel compat-libstdc++-33
elfutils-libelf-devel libgcc libstdc++ unixODBC unixODBC-devel ksh (ou mksh)

VBoxGuestAdditions special case
Get the VBox guest additions in the same version as the host VirtualBox softaxre


There might be some trouble with a symlink

ln -s /usr/src/kernels/2.6xxx /usr/src/kernel/currentkernel

Then modify the symlink that is in /lib/module it has to be /usr/src/kernel/currentkernel
Then launch VBox guest addition setup


In case of compilation error check the symlinks.
After guest setup reboot the VM..

Extra software
In order to get a desktop secure access install NX sofware

rpm -i nxclient-3.5.0-7.x86_64.rpm
rpm -i nxnode-3.5.0-6.x86_64.rpm
rpm -i nxserver-3.5.0-8.x86_64.rpm

2 réponses a Prepare CentOS VM for SAP Netweaver 7.3

Laisser un commentaire