Doing the equivalent of above using Centos virtual machines
From MyWiki
I choose Centos 6.6 minimal install iso image, KVM hypervisor, java 7 and tomcat 7
First let us build the idp.
1. Install Centos 6.6 in a vm, then check the network IP address and convert from dhcp to static. and then disable selinux ( once the ip address is set and known it is much easier to perform all the rest of the operations via an ssh session rather than the vm console. Update hosts file top reflect ip address of eth0
2. Download java and tomcat. I downloaded jdk-7u79-linux-x64.tar.gz and apache-tomcat-7.0.61.tar.gz, and place them in /usr/local/. Uncompress and untar the packages, then create symbolic links in /usr/local/ so that both directories can be accesses as /usr/local/java and /usr/local/tomcat.