[Paper Review] Comparative Study of Virtual Machines and Containers for DevOps Developers
This paper compares virtual machines (VMs) and containers for DevOps workloads through empirical experiments, evaluating performance, resource usage, and security. It finds containers outperform VMs in startup time, memory usage, and scalability, but VMs offer superior isolation and security, especially for sensitive workloads.
This paper presents a comparative study of virtual machines (VMs) and containers for DevOps developers. The study explores the benefits and drawbacks of each technology in terms of their functionality, performance, security, and resource utilization. The paper examines the underlying architecture of VMs and containers, and how they differ from each other. The study includes a series of experiments that compare the performance and resource utilization of VMs and containers in different scenarios. The experiments evaluate factors such as startup time, memory usage, disk I/O, network latency, scalability, and administrative overhead. Finally, the paper provides recommendations for DevOps developers on which technology to choose based on their specific requirements and use cases. Overall, the study aims to provide a comprehensive understanding of the strengths and limitations of VMs and containers, helping developers to make informed decisions when choosing between them.
Motivation & Objective
- To evaluate the performance and resource efficiency of virtual machines (VMs) and containers in real-world DevOps scenarios.
- To identify the strengths and limitations of each technology in terms of startup time, memory usage, disk I/O, network latency, and administrative overhead.
- To assess security trade-offs, particularly around kernel sharing, privilege escalation, and network exposure in containerized environments.
- To provide actionable recommendations for DevOps developers based on application-specific requirements and deployment priorities.
Proposed method
- Conducted controlled experiments comparing VMs (using KVM/QEMU) and containers (using Docker with cgroups and namespaces) on identical hardware.
- Measured performance across key metrics: startup time, memory consumption, disk I/O, network latency, and CPU utilization.
- Evaluated scalability by deploying multiple instances of the same workload and monitoring resource consumption and response time.
- Assessed security risks through attack surface analysis, including privilege escalation, network exposure, and kernel-level vulnerabilities.
- Tested live migration using CRIU (Checkpoint and Restore in Userspace) to evaluate operational resilience and support maturity.
- Employed security tools such as AppArmor, BlackDuck, Cilium, and Dockscan to detect and mitigate vulnerabilities in containerized workloads.
Experimental results
Research questions
- RQ1How do VMs and containers compare in terms of startup time, memory usage, and disk I/O performance?
- RQ2What is the impact of shared kernel architecture on container security compared to VM isolation?
- RQ3How do network access and privilege escalation risks differ between VMs and containers?
- RQ4Can live migration of containers be reliably achieved using existing tools like CRIU, and how does this compare to VM migration?
- RQ5Under what conditions should DevOps teams prefer VMs over containers, and vice versa?
Key findings
- Containers demonstrated significantly faster startup times—measured in milliseconds—compared to VMs, which required several seconds due to full OS booting.
- Memory usage was substantially lower in containers, with up to 70% reduction in overhead compared to VMs when running similar workloads.
- Disk I/O performance was consistently better in containers due to direct access to the host’s file system, while VMs incurred additional virtualization layer latency.
- Network latency was lower in containers, but they exhibited higher exposure to lateral attack vectors due to shared network stack and unrestricted inter-container communication.
- The use of privileged containers posed a critical security risk, as a compromise in one container could lead to full host compromise, unlike VMs which provide stronger isolation.
- Live migration using CRIU failed in the authors’ testing due to insufficient documentation and tooling support, highlighting a key operational limitation of containers compared to mature VM migration solutions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.