GitHub user daviftorres added a comment to the discussion: Custom routes for 
System VMs

Hey @mahdiadnan ,

I raised similar issues before:
- https://github.com/apache/cloudstack/issues/11020
- 
https://github.com/apache/cloudstack/discussions/11562#discussioncomment-14305414

There is a way to customize the SSVM when it loads a compressed archive at 
startup. This is what I’d put in the “non-clean way” category you mentioned. 
See steps:

```
cd /usr/share/cloudstack-common/vms/
cp cloud-scripts.tgz cloud-scripts.tgz_bkp
mkdir tmp
cd tmp/
tar xzvf ../cloud-scripts.tgz

  #   ADD YOUR CHANGES HERE

rm ../cloud-scripts.tgz
tar -czvf ../cloud-scripts.tgz *
cd ..
rm -rf tmp
```

The downside. It requires manual edits to the .tgz, which get overwritten 
whenever cloudstack-agent is updated.

In our setup, we still use this method, because we want to control access to 
`/copy*` on reverse-proxy rules. But you can create the route you described 
with the same technique.

GitHub link: 
https://github.com/apache/cloudstack/discussions/11638#discussioncomment-14405841

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to