HOWTO: Installing and running SAP / Sybase SQL Server 11.0.3.3 esd 6 on Ubuntu using KVM
You can run KVM on just about any modern Linux distribution provided that your host is capable of providing virtualization. The folks over at HowtoForge go through the steps for Ubuntu 12.10.
What you will need for the KVM virtual machine:
- Ubuntu Server 6.06.2 for Intel x86
- Sybase SQL Server 11.0.3.3 esd 6 for Linux 32bit (if anyone knows of a location to legally download these let me know)
I used virt-viewer to create the virtual machine but you can create the xml file yourself if you want to. Make sure you specify:
- Disk bus: IDE using native threads and no caching
- 1GB of RAM or more
- VNC or Spice display
my Sybase_11033.xml file:
Go through the install of Ubuntu Server 6.06.2. After it is completed, you will need to modify a few files:
Replace /etc/apt/sources.list with:
Modify /boot/grub/menu.lst adding elevator=deadline:
Modify /etc/fstab to increase the size of tmpfs and to set noatime,nodiratime:
Modify /etc/sysctl.conf to set up the shared memory and virtual memory settings:
OPTIONAL: Install samba and winbind so you want to connect to your vm by name but don’t want to set up dns:
OPTIONAL (needed for samba/winbind) Modify /etc/nsswitch.conf:
OPTIONAL (needed for samba/winbind) Modify /etc/samba/smb.conf:
*RESTART* the VM
Convert the Sybase RPMs to debian packages (dpkg):
Install Sybase SQL Server:
This will install the software into /opt/sybase.
Add a sybase os user and change the owner of /opt/sybase to the sybase user:
I created a /opt/sybase/.bash_profile script but you can also put this in /etc/profile if you wish:
Start the Sybase configuration by running as the sybase user:
I would recommend a 100MB or larger master device and sybsystemprocs device for 11.0.3.3. It will install just fine but if you try to start Sybase with more the 32MB of memory, it will fail. If you want to increase it you need to do two things:
- Increase max shared memory (kernel.shmmax and kernel.shmall) in /etc/sysctl.conf – which we already did
- Set the stack size to unlimited
Setting the stack size to unlimited is easy so in your RUN_server file:
Since this is SQL Server 11.0.3.3, we don’t have to mess with LD_POINTER_GUARD.
Why you would use such an old DBMS version? You might have software that requires this version and the software vendor went out of business or discontinued the software with no upgrade path. In any case, Sybase’s SQL Server 11.0.3.3 ESD 6 for Linux is still useful. 😀
Follow my posts at my blog