嘿,我刚刚开始使用 GCP,最近我在 GCP 中遇到了嵌套虚拟化。 如果您可以帮我提供一些需要在虚拟机中实现嵌套虚拟化的示例。
最佳答案
嵌套虚拟化允许两件事:
- 在虚拟机内运行虚拟机:如果您想运行虚拟机并且您已经在虚拟机上(Google 计算引擎),这非常有用
- 在同一台计算机上运行多个虚拟机:这对于降低成本或轻松地在虚拟机之间共享相同的环境非常有用。
Google itself gives these example use cases:
Nested virtualization makes it easier for enterprise users to move their on-premises, virtualized workloads to the cloud without having to import and convert VM images. Dev/test and CI/CD workloads that need to validate software in multiple environments are a good match for nested virtualization. Nested virtualization also enables more cost-effective, cloud-based disaster recovery solutions and is ideal for technical training and certification courses where students need identical environments to practice the exercises.
还有一个现实生活中的客户案例,他们在同一计算引擎实例上的多个虚拟 Android 环境中同时测试应用程序。
This is a huge win for QA and development teams who need native mobile systems, such as Android, for testing/validating mobile apps. Using Google’s new hardware-accelerated nested virtualization, Functionize now enables QA teams to dramatically reduce costs, time-to-test, and the pain of maintaining a complex device inventory. — Tamas Cser, Founder and CEO, Functionize
关于cloud - 嵌套虚拟化的实际应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59052259/