The employment of customized remote laboratories becomes very relevant for the teaching community in distance education, since lecturers have the necessity to use real equipment through the Internet, which is adapted to the students' skills. In addition to this, the creation and publication of utilities as services (being infrastructure as a service, platform as a service, or software as a service) have been a hot topic in recent years. This paper describes how the adaptation of real scientific laboratories based on OpenSocial has been performed in order to create laboratories as a service, which allow lecturers to create versatile scenarios depending on the learning/teaching process. This is possible due to its deconstruction, which can be seen as a set of services located in a specific Web container.