[Vm-dev] How to create headless VM without some primitives?

Eliot Miranda eliot.miranda at gmail.com
Tue Apr 14 15:39:58 UTC 2020


Hi Erik,

> On Apr 13, 2020, at 1:06 PM, Erik Stel <erik.stel at gmail.com> wrote:
> 
> 
> Hi,
> 
> I'd like to create a headless VM without some primitives. I want a VM
> without file support and without FFI support (for example). The idea is to
> be able to run the image in a kind of sandboxed environment without the risk
> of reaching (at least some of) the OS from code. The only interface should
> probably be the network.
> 
> How would I go about creating such a VM? Should I 'simply' use the existing
> VM build scripts and configure it such that no unwanted primitives are
> compiled? Or do I need to change the VM-Maker? Any pointers are welcome!

As Tim says, eliminating plugins from plugins.int/plugins.ext, except MiscPrimitivePlugin and the math plugins, is one thing to do.  Another is to use the build.minheadless build to produce a truly headless vm that has no platform support for the GUI.

> 
> Thx for any advice!
> 
> Regards,
> Erik
> 
> 
> 
> 
> --
> Sent from: http://forum.world.st/Squeak-VM-f104410.html


More information about the Vm-dev mailing list