[one-users] Network contextualization VM
Manuel Alfonso López Rourich
alfonso.lopez at cenits.es
Wed Dec 3 05:56:16 PST 2014
Good morning Jose Ángel,
Thank you very much for your response.
udev rules within the vm in /etc/udev/rules create eth0 or 1 depending on
the MAC.
In /dev/sr0 a file named context.sh contains the IP and the gw among other
data but I don't understand why eth0 doesn't have the IP associated or the
route table is empty.
I've tried to run a command on vm boot which executes "ifconfig eth0 IP"
and "route add default gw dir". The problem is that on boot the directory
containing context.sh is not mounted and I cannot access the
contextualization data.
I've also tried to execute a script in /etc/one-context.d/ but it doesn't
seem to execute.
Thank you very much,
Best regards
2014-12-02 15:18 GMT+01:00 Jose Angel Diaz <joseangel.diaz at cenatic.es>:
> Hi Manuel
>
> Have you test that the udev is not conflicting with your context
> interfaces?
>
> After install the context packages it's necesary to clean the resol.conf,
> delete some ifcfg-ethxx scripts on the system to make the context correctly
> change the info in the machine.
>
> Some time the /etc/udev/rules.d/70-persistent-net.rules
>
> To add some scripts to execute on the context stage you could add some
> scripts in the /etc/one-context.d dir with a correct secuential number and
> it could be launched inside the VM when is starting.
>
> Hope it helps..
>
>
>
>
>
> Enviado con MailTrack
> <https://mailtrack.io/install?source=signature&lang=es&referral=joseangel.diaz@cenatic.es&idSignature=23>
>
> 2014-12-02 15:01 GMT+01:00 Manuel Alfonso López Rourich <
> alfonso.lopez at cenits.es>:
>
>> Good morning,
>>
>> I'd like to ask you a question about network contextualization of VMs.
>>
>> I had created a template with CentOS (in Contextualization tag "Add
>> network contextualization" and "Add SSH contextualization" is enabled.
>>
>> After deploying a VM, I can see that there is a context.sh file with the
>> content of some network parameters (ETH0_GATEWAY, etc.) but network is not
>> configured correctly after the deployment of a vm (to fix it I have to
>> execute (1) *ifconfig eth0 some_ip* and (2) *route add default gw*)
>>
>> How could I modify some script so that after booting a vm those commands
>> are executed automatically?
>>
>> Thank you very much
>>
>> Best regards
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
> --
> Jose Angel Diaz Diaz
>
> Coordinador Tecnologico
> CENATIC
>
> ------------------------------------------------------------
> ---------------------------------------------
> Correo Corporativo Fundación Cenatic
>
> Este email ha sido enviado desde una plataforma perteneciente a la
> Fundación Cenatic
>
> Cualquier duda o modificacion contactar con Fundación Cenatic
> +34 924 67 73 16
> info at cenatic.es
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20141203/66f35dfb/attachment-0001.htm>
More information about the Users
mailing list