You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by "miloserdoff (via GitHub)" <gi...@apache.org> on 2026/06/15 09:24:30 UTC

[D] Adding persistent routes to a virtual router [cloudstack]

GitHub user miloserdoff created a discussion: Adding persistent routes to a virtual router

**Hello**

We're having trouble adding or changing routes on a Virtual Router in an Isolated Network. After rebooting the Virtual Router, all routes are lost and have to be updated manually.

Is there a way to save added or changed routes in the Virtual Router's startup configuration so they don't get lost?

GitHub link: https://github.com/apache/cloudstack/discussions/13419

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Adding persistent routes to a virtual router [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: Adding persistent routes to a virtual router

> [@weizhouapache](https://github.com/weizhouapache) Hello, could you please help me answer this question?

@miloserdoff 
you may need a script and a systemd service which run the script every time when the VR starts.

However, when you restart network with cleanup, the systemd service and script do not exist in the new VR.
so, to achieve it, you can refer to https://www.shapeblue.com/customise-system-vms-via-user-data/

please note, the userdata applies to all VRs, so the userdata should be smart enough, based on the boot args of the VR (check /var/cache/cloud/cmdline).

GitHub link: https://github.com/apache/cloudstack/discussions/13419#discussioncomment-17306042

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Adding persistent routes to a virtual router [cloudstack]

Posted by "miloserdoff (via GitHub)" <gi...@apache.org>.
GitHub user miloserdoff added a comment to the discussion: Adding persistent routes to a virtual router

@jeanvetorello I access the Virtual Router via VNC and use ip r del / ip r add to change network routes. I'm not using a VPC. I have an isolated network.

GitHub link: https://github.com/apache/cloudstack/discussions/13419#discussioncomment-17306040

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Adding persistent routes to a virtual router [cloudstack]

Posted by "miloserdoff (via GitHub)" <gi...@apache.org>.
GitHub user miloserdoff added a comment to the discussion: Adding persistent routes to a virtual router

@weizhouapache Hello, could you please help me answer this question?

GitHub link: https://github.com/apache/cloudstack/discussions/13419#discussioncomment-17306041

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Adding persistent routes to a virtual router [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: Adding persistent routes to a virtual router

> How did you add that route? Did you configure it under VPC → Static Routes?

this is not available for Isolated networks 

GitHub link: https://github.com/apache/cloudstack/discussions/13419#discussioncomment-17306039

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Adding persistent routes to a virtual router [cloudstack]

Posted by "jeanvetorello (via GitHub)" <gi...@apache.org>.
GitHub user jeanvetorello added a comment to the discussion: Adding persistent routes to a virtual router

How did you add that route? Did you configure it under VPC → Static Routes?

GitHub link: https://github.com/apache/cloudstack/discussions/13419#discussioncomment-17306038

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org