This is a proof of concept code, don't rely on this.
Taskotron VM Builder should provide an easy way to create customized virtual machines to be used in Taskotron as disposable clients. The machine will be built according to specified parameters, mainly:
This image can then be snapshotted and used to spawn virtual machines, throwing away any disk changes before each new boot.
If historical images are archived, they can provide a way to have reproducible environment for re-executing tasks.
And then everything from requirements.txt
:
$ virtualenv --system-site-packages env_vmbuilder $ source env_vmbuilder/bin/activate $ pip install -r requirements.txt
You can generate a simple VM image like this:
$ ./vmbuilder.py templates/f21-minimal.yaml
Run ./vmbuilder.py --help
to see full help.
Each VM image is described by its template. You can find some templates
predefined in templates/
directory. See templates/README.templates
for
instructions how to define your own template.