大网数据广告活动
服务器运维问答

Multiple instances of the same OS

· 52CE 我爱测

I am soon teaching a hands-on class for which I need to spin around 20 VMs for each student. It's sort of a lab. I have about 15 students in my class. You can guess how fast this can go out of control. Running over 230+ VMs requi…

问题原文

原帖链接 · Andy · CC BY-SA 4.0

I am soon teaching a hands-on class for which I need to spin around 20 VMs for each student. It's sort of a lab. I have about 15 students in my class. You can guess how fast this can go out of control. Running over 230+ VMs requires a lot of resources for which my university refuses to pay for. What I would like to achieve, if possible is to have one single machine as a base OS which in one way replicates itself 15 times. I want each student to share the same system, but also have a an isolated environment with a dedicated IP address:

  • Base OS Windows or Linux
  • Student one connects to it on 192.168.1.2
  • Student two connects to it on 192.168.1.3
  • Each student share the same host however has some layers of isolation so that they don't interact with each other.

All machines will run as VM and some will be Linux and some will be Windows. I know some of you might say Docker but is not really quite what I'm looking for. Any ideas?

社区高分解答

原帖链接 · sla3k · CC BY-SA 4.0

I'd say go with OpenVZ, available only on Linux (tested by me on Centos 6.X host), this piece of software is used worldwide when it comes to VPS'es (Virtual Private Servers). You can spin an instance of guest operating systems from this link here. All the guest OS'es will be isolated from each other but share resources on the host system. If you are looking for Windows based guests, then KVM can do that but I am not sure how efficiently (I am more of a Linux person).

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-11-06)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。