如何在 Singularity 容器中启动虚拟机?

How to start a VM in a Singularity container?

所以我想吐出一个 Windows.iso 我在 集群 节点上使用 Singularity 图片。我尝试了 VirtualBox 但出现了这个异常:

ingularity virtualbox:~> virtualbox  WARNING: The vboxdrv kernel module is not loaded. Either there is no module  available for the current kernel (4.17.3-200.fc28.x86_64) or it failed to  load. Please recompile the kernel module and install it by 

sudo /sbin/rcvboxdrv setup 

You will not be able to start VMs until this problem is fixed.

请注意,奇点图像不能有 sudo,因此所有准备工作都在 Docker 图像中完成,我从中创建奇点图像

你需要在你的主机系统的容器外安装 virtualbox 的内核模块,然后在 运行 容器之前加载它。根据您拥有的发行版,可能需要从源代码构建它。