The analysis of the energy efficiency in Cloud Computing infrastructures has become an important research domain as the utilization rate of the various on-demand services is daily higher and higher and its management is now considered as a main objective. Today, to tackle this challenging issue, Cloud providers integrate renewable energy sources to feed their infrastructure. Energy saving is part often an integral many companies goal. Unlike the classic supply of grid energy, the production of green energy is unstable and depends on nature of the weather or wind. It introduces new challenges as pervasive jobs to reduce a server consumption. In this article, studies based on the use and the storage of photovoltaic energy are exposed. We detail our design of a scheduler which uses solar energy production to make an off-line decision. This enables us to schedule virtual machines into a datacenter via different algorithms which consumes the least amount of brown energy as possible. We based our analysis through an existing workload from Google. We describe and study this workload to create one corresponding to our need. We also proposed to evaluate the storage size of a smartgrid related to the solar panel size. It is an analysis of the reliance between both storage (battery) and renewable energy production (solar panel) components sizing.