[one-users] There has no parameter to define subnet mask in Virtual Network template.

Carlos Martín Sánchez cmartin at opennebula.org
Wed Apr 27 07:47:22 PDT 2011


Hi,

You can define any extra attribute, like NETMASK, in the Virtual Network
template when you create it.
Those attributes can be accessed within the VM using contextualization. In
[1], there's a brief example with a DNS field.

Don't forget to make your vmcontext script do something useful with that new
attribute.

Regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.2:cong#defining_context

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org


On Tue, Apr 26, 2011 at 3:27 AM, qian.shen <sqhome at gmail.com> wrote:

> I think the "255.255.255.0" is not suitable for the "B" type network.
>
>
> wen.yang at cs2c.com.cn wrote:
>
>>
>> In script vmcontexttty ,the subnet mask of virtual machine is setted as
>> "255.255.255.0". If the subnet mask of physical PC isn't equal to
>> "255.255.255.0", then the physical PC can communicate with virtual machine
>> or not?
>>
>>
>> For example:
>>
>> The physical PC's IP is "10.1.29.105", subnet mask is "255.255.0.0".
>>
>> The virtual machine's IP is "10.1.29.106", subnet mask is "255.255.255.0".
>>
>> The physical PC ping the virtual machine failure.
>>
>>
>> I set virtual machine's subnet mask as "255.255.0.0" by using VNC, then
>> The physical PC ping the virtual machine success.
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110427/077ac4ba/attachment-0003.htm>


More information about the Users mailing list