You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Rémi Paeta <si...@gmail.com> on 2022/10/21 10:51:23 UTC

Re: Help with virtual router

Hi there,

I'm reviving this topic.
I saw that it is possible to set the MAC address of an instance thanks to
this pull request:
https://github.com/apache/cloudstack/pull/2143

Do you think it would be possible to apply the same for the virtual router?

Concerning, the addition of script, is it planned to give the possibility
of defining personalized scripts for keepalived or conntrackd?

Thank you in advance for your answers.

Le jeu. 22 sept. 2022 à 15:00, Alex Mattioli <Al...@shapeblue.com>
a écrit :

> Hi Remi,
>
> You first need to get the instance ID of the VM , with that you can find
> the NICS of that VM in the NICS table, then you can update the MAC address
> with something like:
> update nics set mac_address="$macaddress" where id="$nicID";
>
> Am pretty sure you can add a script to the systemvm ISO, but that would
> pose issues when you upgrade ACS. If it's just for a POC then probably no
> issues.
>
> Regards,
> Alex
>
>
>
>
> -----Original Message-----
> From: Rémi Paeta <si...@gmail.com>
> Sent: 21 September 2022 18:25
> To: users@cloudstack.apache.org
> Subject: Re: Help with virtual router
>
> Thank you for the suggestion.
> Could you please tell me which table I need to modify?
> I still have some questions:
> Is it possible to add a script to the virtual router template to handle
> this?
> Is it also possible to modify the HAProxy/conntrackd template to add the
> use of a script?
> I can't find documentation for creating a custom Virtual Router template.
> Thank you all for your help 😁
>
> Le mer. 21 sept. 2022, 22:18, Alex Mattioli <Al...@shapeblue.com>
> a écrit :
>
> > You could potentially change the MAC Address in the NICs table in the
> > database, but that would be possible only after the VR has been deployed.
> > Hope it works for you.
> > If you need help with the command I can send you the MySQL statement,
> > let me know.
> >
> > Cheers
> > Alex
> >
> >
> >
> >
> > -----Original Message-----
> > From: Rémi Paeta <si...@gmail.com>
> > Sent: 21 September 2022 16:33
> > To: users@cloudstack.apache.org
> > Subject: Help with virtual router
> >
> > Hello,
> > I contact you because I am studying the possibility of using
> > Cloudstack for my company.
> > I currently use bare-metal servers that are rented from a hosting
> provider.
> > I encounter a problem for the management of Public IPs. My hosting
> > provider gives me public IPs that are associated with a specific mac
> > address. I must use this mac address for an IP ou a group of IP.
> > Is there a way to specify the MAC address of the virtual router's
> > external network interface?
> > Thanks for your expert advice!
> >
>