I am sharing my personal experience on Google Cloud for SAP HANA Cockpit Access(Post Installation).
In case you have not already signed up for GCP account, you can enable GCP from any of your gmail account from here and get $300 free credit for first year.
You will need to setup your billing info but Google won’t charge you anything unless you run out of your free credits and give your explicit consent for charge, till then enjoy the FREE GCP Tier but it’s provide limited CPU Quota (Due to Free Credit)
For Access GCP VM – Follow Below Steps
Please follow the below steps –
- Register your GCP account
- Setup Billing ( (Don’t worry, they will charge 1 INR & you will get back the same)
- Create a Project
- Enable Compute Engine API (as below)
- Once enable, Navigate to Compute Engine – VM Instances
- Create a New VM as per below specs – (I prefer to choose)
- e2-highmem-4 (4 vCPUs, 32 GB memory)
- SLES 12 SP5
- Add Standard Persistent Disk –
- SWAP – 100 GB
- hana – 500 GB
- Choose Network – Default
- Save & Start the VM
Once you create the VM in GCP then you need to enable SSH to access from outside & create SWAP size & also HANA partition – To do this perform SSH locally from Google Cloud Console
- Enable SSHD
- vi /etc/ssh/sshd_config
- Change PasswordAuthentication to yes
- save & exit & Restart the VM.
- Verify the SSH access from outside.
- Create SWAP for entire partition
- mkswap /dev/sdb
- swapon /dev/sdb
make permanent in /etc/fstab
/dev/sdb swap swap defaults 0 0
Restart the VM & verify SWAP partition should exists.
3. To create /hana/shared or any other partition in linux (I used EXT4, you can use XFS also)
- lsblk – /dev/sdc (is free)
- mkfs -t ext4 -L “HANA” /dev/sdc
- mkdir /hana/shared
- mount /dev/sdc /hana/shared
- get the UUID – blkid /dev/sdc (it will show the UUID)
- Add permanent entry in fstab file
UUID=48***************** /hana/shared ext4 defaults 0 0
Restart the VM & verify the access via Public IP from SSH(22) Port.
Please Note – It will only allow 22 Port, if you want to access other ports(50127, 51029, 39630) also which requires later after SAP HANA Cockpit Installation, you need to create new Firewall Rule as per your port requirement or any:any in GCP – create a TAG & assign the same TAG to your VM.
Follow the below nice SAP detailed blog to perform the SAP HANA Cockpit Installation.
Once HANA Cockpit installed Successfully, it will start the Cockpit HANA system & share the URL to access the SAP HANA Cockpit Page.
You will see below 2 URL in the end of the Installation –
Launch SAP HANA cockpit by opening https://<Local Host Name>:51027
Launch SAP HANA cockpit manager by opening https://<Local Host Name>:51029
Change this URL to VM Public IP & try to access the same but still not working.
As we have installed HANA cockpit in Cloud VM we need to update the below file with Public IP & restart the HANA box to make it working from Public IP.
Make a copy of above file & change the below 2 configuration from LOCAL Host Name to PUBLIC IP
default_domain = <Local Host Name>
api_url = https://<Local Host Name>:39630
Save the File & Restart the VM.
Verify the XSA URL Post Restart –
Now you are able to access your Test Environment of SAP HANA Cockpit from PUBLIC IP.
Please Note – if you are using Dynamic Public IP then after restart of VM, you need to update the above file again to get it working.
Thanks for reading..