Tim suggested me to repost this from the LwM project board, as others might be interested:
As specified here there are two ways of adding specific software to the VM that is to be deployed.
Software that is only needed in the specific VM
If the software is only needed in the specific VM, you just need to copy the default cloud init file (cloud-init-compute-vm.template.yaml, which is located in deployment/secure_research_environment/cloud_init/) to a file named cloud-init-compute-vm-sre-<SRE ID>.template.yaml in the same folder and add any additional required steps in the SRE-SPECIFIC COMMANDS block marked with comments. See for instance:
The command ./Add_DSVM.ps1 that deploy the VM will first look for a SRE ID specific template, otherwise it will employ the default one.
Software that is generally needed from now on in Safe Haven VMs
If the software will be needed from now on in any Safe Haven VM, this command should be placed in the following part of runcmd, outside of the BEGINNING OF SRE-SPECIFIC COMMANDS box, in the default yaml template: cloud-init-compute-vm.template.yaml
Tim suggested me to repost this from the LwM project board, as others might be interested:
As specified here there are two ways of adding specific software to the VM that is to be deployed.
Software that is only needed in the specific VM
If the software is only needed in the specific VM, you just need to copy the default cloud init file (
cloud-init-compute-vm.template.yaml
, which is located indeployment/secure_research_environment/cloud_init/
) to a file namedcloud-init-compute-vm-sre-<SRE ID>.template.yaml
in the same folder and add any additional required steps in the SRE-SPECIFIC COMMANDS block marked with comments. See for instance:The command
./Add_DSVM.ps1
that deploy the VM will first look for aSRE ID
specific template, otherwise it will employ the default one.Software that is generally needed from now on in Safe Haven VMs
If the software will be needed from now on in any Safe Haven VM, this command should be placed in the following part of
runcmd
, outside of theBEGINNING OF SRE-SPECIFIC COMMANDS
box, in the default yaml template:cloud-init-compute-vm.template.yaml