| 358 | |
| 359 | Qemu images also mount users home directories as DETER physical nodes do. In order to do this scalably the Qemu VMs mount the users' directories from the physical node. The DETER infrastrcuture cannot support exporting users' directories to thousands of containers. |
| 360 | |
| 361 | However, a Qemu VM can only mount a few tens of user directories this way. The limit is 23 user directories (24 in experiments that are not instantiated in a group). Many projects have more than 23 users, but in practice only a few experimenters need access to the containers. |
| 362 | |
| 363 | To tell the container systems which user to mount, use the {{{--prefer-qemu-users}}} option to {{{containerize.py}}}. That option takes a comma-separated list of usernames (no spaces). When the Qemu nodes will always mount those users' home directories. Others will be mounted if there is room. |
| 364 | |
| 365 | For example: |
| 366 | |
| 367 | {{{ |
| 368 | users:~$ /share/containers/containerize.py --prefer-qemu-users=faber,jjh DeterTest example4 ~/example4.tcl |
| 369 | }}} |
| 370 | |
| 371 | Will make sure that users {{{faber}} and {{{jjh}}} have their home directories mounted in any Qemu containers. |