wechris / SAPNW752SP04

Vagrant Box to install SAP NetWeaver AS ABAP 752 SP04 Developer Edition
9 stars 6 forks source link
abap hashicorp opensuse packer sap sap-netweaver sapnw vagrant vagrant-boxes virtualbox virtualization

Introduction

The openSUSE Leap 15.1 Vagrant box can be used to create a VirtualBox instance with Vagrant to install SAP NW AS ABAP 752 SP04 Developer Edition .

All recommended system preparations are done by packer and vagrant, as described at Installing ABAP AS on Oracle VirtualBox.

The pre-built Vagrant Box is now avaiable on HashiCorps Vagrant Cloud:

https://app.vagrantup.com/wechris

The Packer calls are no longer necessary. If you want to create your own Vagrant Box with Packer see the optional section below.

The Vagrantfile makes the following settings automatically:

Prerequisites

On OS X VirtualBox and Vagrant, is available via Homebrew on Windows via Chocolatey.

OS X:

$ brew install virtualbox
$ brew install vagrant

optional:

$ brew install vagrant-manager

Usage

Clone the reporitory wechris/SAPNW752SP04.

Download and extract the TD752SP04.partXX.rar files to the folder: ./sapinst

The actual download (in the form of several .rar files), along with more information, is available here:

SAPStore: ABAP 7.52SP04

Search for “7.52 SP04” for convenience.

Download and uncompress all files to:

./sapinst/

without the folder: ./TD752SP04

sapinst

Vagrantfile

Only VirtualBox:

If the german keyboard is not desired, comment the following line in the Vagrantfile

# config.vm.provision "shell", path: "install/changetogerman.sh"

If the gnome desktop is not desired, comment the following line in the Vagrantfile

# config.vm.provision "shell", path: "install/gnome.sh"

If the autom. installation of the SAP Netweaver 7.52SP04 is not desired, comment the following line in the Vagrantfile

# config.vm.provision "shell", path: "install/sapinst.sh"

If the Autostart function is not desired, comment the following line in the Vagrantfile

# config.vm.provision "shell", path: "install/autostart.sh"

Disable the UI of VirtualBox, comment the following line in the Vagrantfile

# vb.gui = true

Vagrant start

vagrant up --provision --provider virtualbox

or with debug option for more details:

vagrant up --provision --provider virtualbox --debug 2>&1 | Tee-Object -FilePath ".\vagrant.log"

On Windows Powershell

vagrant up --provision --provider virtualbox &> vagrant.log

or with debug option for more details:

vagrant up --provision --provider virtualbox --debug &> vagrant.log

Wait until the vagrant command is finished. Then restart the instance with:

vagrant reload

The vagrant box SAPNetWeaver7.52SP04 comes up with the login screen of Gnome Desktop.

Now you can use the VirtualBox UI, if the UI option was activated:

Gnome login

Login

Logins:

or use SSH into a running Vagrant machine:

vagrant ssh

Start/Stop the VBox with:

vagrant up
vagrant halt

or with the virtualbox UI. (The /vagrant folder will not be avaiable without the vagrant command!) Oracle_VM_VirtualBox_Manager

Post and optional installation steps

SAPGUI JAVA installation

The folder `/vagrant/sapinst/client/JavaGUI/contains the installation files of SAPGUI JAVA: _PlatinGUI7505-80002496.JAR.

run:

java -jar PlatinGUI750_5-80002496.JAR

and follow the installation. Click on the New icon, fill the fields and enter the following connection on the panel Advanced:

conn=/H/127.0.0.1/S/3200

Open the new JavaGUIService:

SAGUI

Manual install of SAP NW AS ABAP 752 SP04 Developer Edition

The files and folder, on the same level as the vagrant file, will be available under /vagrant

sudo -i
<enter pwd Default: vagrant>
cd /vagrant/sapinst
./install.sh -s

Installation options:

Read and accept the license agreement. When prompted for the OS users password enter your master password of the virtual Linux OS instance.

Start the SAP system:

SAPNetWeaver7_52SP04__Running

Additional informations, License key and first steps follow SAP NW AS ABAP 7.52 SP04 – Developer Edition to Download: Concise Installation Guide

Optional

The Packer template to build the openSUSE Leap 15.1 Vagrant box is available here

Packer

cd packer
cd openSUSE-15.1
$ packer build -only=virtualbox-iso template.json

And change the following line in the Vagrant file:

config.vm.box = "openSUSE-15.1"
config.vm.hostname = "vhcalnplci"
config.vm.box_url = "./packer/openSUSE-15.1/openSUSE-15.1-virtualbox.box"

#  config.vm.box = "wechris/OpenSUSE-15.1_sapnw752"
#  config.vm.hostname = "vhcalnplci"
#  config.vm.box_version = "1.0.0"

The Vagrant box will be loaded locally.