Installing NetWeaver AS ABAP 7.xx Developer Edition with Vagrant and openSUSE
The SAP NetWeaver AS ABAP 7.xx Developer Edition provides a great platform for trying out the ABAP language and toolsets.
But, I am a big friend of: keep the host system clean, so that’s why I like to use VirtualBox, Packer and Vagrant.
The installation instructions of ‘Installing SAP AS ABAP 752 SP01 on Linux – Virtual Box’ was just like reading a specification of vagrant boxes. Which prompted me to put the tutorial in a Vagrant script.
Vagrant makes it easy to create and manage virtual machines. The tool provides a command-line-interface, which is independent of the used virtualization tools (VirtualBox or VMware).
Once the VM is build with Vagrant the box can be ported to different platforms (Windows, Mac OS X, and Linux) local and cloud based.
Packer helps me to create boxes for Vagrant. Once created, the base boxes are provided for Vagrant. My pre-built Vagrant Boxes are available on HashiCorps Vagrant Cloud:
Current version: openSUSE Leap 15.1
- Install Vagrant
- Install VirtualBox
- Optional: Install Vagrant Manager (Manages Vagrant on one place)
- Optional: Install Packer (if you want to build the base vagrant box)
Clone the repository: wechris/SAPNW752SP04.
The vagrant file offers the possibility to modify the VM:
- Keyboard settings
Comment the line to not to modify the keyboard settings
# config.vm.provision "shell", path: "install/changetogerman.sh"
- With or without UI (Gnome, SAPGUI Java, Tools)
Comment the line to not to install Gnome, Java, some Tools
# config.vm.provision "shell", path: "install/gnome.sh"
- Installation of SAP after provisioning
Comment the line to not to run the sh
# config.vm.provision "shell", path: "install/sapinst.sh"
- SAP autostart option
Comment the line to not to modify the profile to autostart SAP
# config.vm.provision "shell", path: "install/autostart.sh"
Download and extract the TD752SP04.partXX.rar files to the folder: ./sapinst
(without the TD752SP04 folder)
Open the Shell/Cmd and run:
vagrant up –provision –provider virtualbox
Wait until the vagrant command is finished. Then restart the instance with:
Login with vagrant/vagrant and switch to user npladm with default password Down1oad in the console : su npladm.
Start the SAP system : startsap ALL and
stop the system with: stopsap ALL
Other Terminal commands
With the user npladm you can start and stop the server using the terminal commands startsap and stopsap or take a lokk at Useful sapcontrol commands.
- npladm/ pwd from file install_nw_expect Default: Down1oad
Start and stop the VM with SAP NetWeaver Dev. Edition
- vagrant up => starts the VM
- vagrant halt => stops the VM
- vagrant destroy => deletes the VM
- vagrant ssh => enables SSH into a running Vagrant machine and give you access to a shell,
or control the VM with the VirtualBox UI, but the /vagrant folder will only be synced
to the VM if the vagrant command is used. The /vagrant folder helps to share data between the host system and the VM.
Post and optional installation steps
Additional information’s, License key and first steps follow SAP NW AS ABAP 7.52 SP04 – Developer Edition to Download: Concise Installation Guide
SAPGUI JAVA installation
The folder /vagrant/sapinst/client/JavaGUI/ contains the installation files of SAPGUI JAVA: PlatinGUI750_5-80002496.JAR.
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:
Open the new JavaGUI Service:
If the VagrantBox is running, you can also connect to SAP using a SAPGUI installed on the host system.
Build your own Vagrant Box with Packer.
Take a look at the README.md in the Github repository