In recent years, virtualization technologies, especially referring to ones which provide virtual environment, have been used extensively in many places. Therefore, the demand for efficient and secure virtualization solutions have become more and more important. Container and virtual machine are two main types of virtual en- vironment that provide different levels of abstraction in terms of virtualization and isolation. In this thesis, we introduce two virtualization solutions and analyze the reason behind performance overhead. At the end, we give a full comparison of their features and restrictions.