diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-12-03 18:46:24 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-12-03 18:48:14 +0100 |
| commit | a2d178996b0844c378dd013dde53a5c1f5a17fbd (patch) | |
| tree | 7d883fb040026ee7cbe9048d3a5937497ad58e9b /executor/executor.cc | |
| parent | dfe2e9d84a64066fd15913c7cd02d1853adf3942 (diff) | |
vm: add workdir_template functionality
The new manager config argument workdir_template refers to a directory. Optional.
Each VM will get a recursive copy of the files that are present in workdir_template.
VM config can then use these private copies as needed. The copy directory
can be referenced with "{{TEMPLATE}}" string. This is different from using
the files directly in that each instance will get own clean, private,
scratch copy of the files. Currently supported only for qemu_args argument
of qemu VM type. Use example:
Create a template dir with necessary files:
$ mkdir /mytemplatedir
$ truncate -s 64K /mytemplatedir/fd
Then specify the dir in the manager config:
"workdir_template": "/mytemplatedir"
Then use these files in VM config:
"qemu_args": "-fda {{TEMPLATE}}/fd"
Diffstat (limited to 'executor/executor.cc')
0 files changed, 0 insertions, 0 deletions
