<div dir="ltr"><div style>Ok, I think I figured it out. Seems that ttylinux doesn't support contextualization because Ubuntu spun up just fine with the network contextualized.</div><div style><br></div><div style>I definitely needed a new template, because my original Ubuntu template does not include the network auto contextualization settings.</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 27, 2013 at 4:39 PM, Jon <span dir="ltr"><<a href="mailto:three18ti@gmail.com" target="_blank">three18ti@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ok, I created a new template and it injected the network context settings. <div><br></div><div><table style="background-color:rgb(253,253,253);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;margin:0px 0px 18px;border-collapse:collapse;border-spacing:0px;font-family:'Open Sans',sans-serif;font-size:14px;line-height:28px;width:776px;background-image:none!important;border:0px!important">
<tbody><tr style="background-color:rgb(249,249,249);border:0px!important"><td style="padding:1px 10px 1px 35px;font-size:14px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border-top-style:none;border-right-style:none;border-left-style:none;border-bottom-width:0px">
ETH0_DNS</td><td style="padding:1px 10px;font-size:14px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border-top-style:none;border-right-style:none;border-left-style:none;border-bottom-width:0px;text-overflow:ellipsis">
$NETWORK[DNS,NETWORK_ID="0"]</td></tr><tr style="border:0px!important;background-image:none!important"><td style="padding:1px 10px 1px 35px;font-size:14px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border-top-style:none;border-right-style:none;border-left-style:none;border-bottom-width:0px">
ETH0_GATEWAY</td><td style="padding:1px 10px;font-size:14px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border-top-style:none;border-right-style:none;border-left-style:none;border-bottom-width:0px;text-overflow:ellipsis">
$NETWORK[GATEWAY,NETWORK_ID="0"]</td></tr><tr style="background-color:rgb(249,249,249);border:0px!important"><td style="padding:1px 10px 1px 35px;font-size:14px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border-top-style:none;border-right-style:none;border-left-style:none;border-bottom-width:0px">
ETH0_IP</td><td style="padding:1px 10px;font-size:14px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border-top-style:none;border-right-style:none;border-left-style:none;border-bottom-width:0px;text-overflow:ellipsis">
$NIC[IP,NETWORK_ID="0"]</td></tr><tr style="border:0px!important;background-image:none!important"><td style="padding:1px 10px 1px 35px;font-size:14px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border-top-style:none;border-right-style:none;border-left-style:none;border-bottom-width:0px">
ETH0_MASK</td><td style="padding:1px 10px;font-size:14px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border-top-style:none;border-right-style:none;border-left-style:none;border-bottom-width:0px;text-overflow:ellipsis">
$NETWORK[NETWORK_MASK,NETWORK_ID="0"]</td></tr><tr style="background-color:rgb(249,249,249);border:0px!important"><td style="padding:1px 10px 1px 35px;font-size:14px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border-top-style:none;border-right-style:none;border-left-style:none;border-bottom-width:0px">
ETH0_NETWORK</td><td style="padding:1px 10px;font-size:14px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border-top-style:none;border-right-style:none;border-left-style:none;border-bottom-width:0px;text-overflow:ellipsis">
$NETWORK[NETWORK_ADDRESS,NETWORK_ID="0"]</td></tr><tr style="border:0px!important;background-image:none!important"><td style="padding:1px 10px 1px 35px;font-size:14px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border-top-style:none;border-right-style:none;border-left-style:none;border-bottom-width:0px">
SSH_PUBLIC_KEY</td><td style="padding:1px 10px;font-size:14px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border-top-style:none;border-right-style:none;border-left-style:none;border-bottom-width:0px;text-overflow:ellipsis">
$USER[SSH_PUBLIC_KEY]</td></tr></tbody></table></div><div><br></div><div>Apparently, I was using a template I created before upgrading to the 4.0RC.</div><div><br></div><div>However, I am still unable to properly set the <span style="background-color:rgb(253,253,253);color:rgb(51,51,51);font-family:arial,sans-serif;font-size:14.44444465637207px;line-height:17.98611068725586px">NETWORK_MASK and </span><span style="background-color:rgb(253,253,253);color:rgb(51,51,51);font-family:arial,sans-serif;font-size:14.44444465637207px;line-height:17.98611068725586px">GATEWAY.</span></div>
<div><span style="background-color:rgb(253,253,253);color:rgb(51,51,51);font-family:arial,sans-serif;font-size:14.44444465637207px;line-height:17.98611068725586px">In my virtual network template I have</span></div><div>
<span style="background-color:rgb(253,253,253);color:rgb(51,51,51);font-family:arial,sans-serif;font-size:14.44444465637207px;line-height:17.98611068725586px"><br></span></div><div><span style="background-color:rgb(253,253,253)"><font color="#333333" face="arial, sans-serif"><span style="font-size:14.44444465637207px;line-height:17.98611068725586px">NETWORK_MASK="255.255.255.240"</span></font><br>
</span></div><div><span style="background-color:rgb(253,253,253)"><font color="#333333" face="arial, sans-serif"><span style="font-size:14.44444465637207px;line-height:17.98611068725586px"><br></span></font></span></div>
<div><font color="#333333" face="arial, sans-serif"><span style="font-size:14.44444465637207px;line-height:17.98611068725586px">do I need to set the "NETWORK_MASK" variable differently?</span></font></div>
<div><font color="#333333" face="arial, sans-serif"><span style="font-size:14.44444465637207px;line-height:17.98611068725586px"><br></span></font></div><div><font color="#333333" face="arial, sans-serif"><span style="font-size:14.44444465637207px;line-height:17.98611068725586px">Thanks,</span></font></div>
<div><font color="#333333" face="arial, sans-serif"><span style="font-size:14.44444465637207px;line-height:17.98611068725586px">Jon A</span></font></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">
On Sat, Apr 27, 2013 at 3:10 PM, Jon <span dir="ltr"><<a href="mailto:three18ti@gmail.com" target="_blank">three18ti@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hello All,<div><br></div><div>Can you please provide some guidance as to what I'm doing wrong.</div><div><br></div><div>I've added both, "ETH0_GATEWAY / ETH0_NETMASK" and "NETWORK_ADDRESS / NETWORK_MASK" custom attributes to my virtual network configuration as outlined in the docs I was pointed to: <a href="http://opennebula.org/documentation:rel4.0:cong" target="_blank">http://opennebula.org/documentation:rel4.0:cong</a></div>
<div><br></div><div>However, the VM still comes up with a gateway of .1 and netmask of 255.255.255.0</div><div><br></div><div>Also, these attributes are not reflected in the running VMs templage:</div>
<div><br></div><div><div>CPU="0.5"</div><div>GRAPHICS=[</div><div> LISTEN="0.0.0.0",</div><div> PORT="5953",</div><div> TYPE="VNC" ]</div><div>MEMORY="1024"</div>
<div>NAME="one-53"</div><div>TEMPLATE_ID="4"</div><div>VCPU="2"</div><div>VMID="53"</div><div><br></div><div><br></div><div>So I'm thinking there's something wrong with my network configuration because the correct network information is not being passed from the virtual network config to the VM config.</div>
<div><br></div><div>Can someone point me in the correct direction please?</div><div><br></div><div>Thanks,</div><div>Jon A</div></div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Apr 22, 2013 at 12:53 PM, Ruben S. Montero <span dir="ltr"><<a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Jon<div><br></div><div>You may also be interested in using a virtual router. OpenNebula includes a VR appliance that can be easily feed with the virtual networks information through context. This will set up a DHCP server (among other things) to configure the NICs that way....</div>
<div><br></div><div><a href="http://opennebula.org/documentation:rel4.0:router" target="_blank">http://opennebula.org/documentation:rel4.0:router</a><br></div><div><br></div><div>Cheers</div><div><br></div>
<div>
Ruben</div><div><br></div></div><div class="gmail_extra"><div><div><br><br><div class="gmail_quote">On Mon, Apr 22, 2013 at 6:14 PM, Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The contextualization cdrom is created on VM deployment so I fear you<br>
will have to configure the network interface manually.<br>
<div><div><br>
On Mon, Apr 22, 2013 at 4:00 PM, Jon <<a href="mailto:three18ti@gmail.com" target="_blank">three18ti@gmail.com</a>> wrote:<br>
> Hello Javier,<br>
><br>
> I see, so the network configuration is handled by VM contextualization not<br>
> the virtual network config. Got it. Thanks for the links to the docs.<br>
><br>
> How does that affect hot plug networking? E.g. is the new nic manually<br>
> configured by the VM user, or can a running VM be contextualized?<br>
><br>
> Thanks Again, everyone has been so helpful. I really appreciate it.<br>
> Jon A<br>
><br>
> On Apr 22, 2013 5:21 AM, "Javier Fontan" <<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>> wrote:<br>
>><br>
>> I forgot to mention that you can also use the CLI to add the network<br>
>> contextualization. When creating the template using parameters add<br>
>> "--net_context", for example:<br>
>><br>
>> $ onetemplate create --name "some name" --cpu 1 --memory 512 --disk<br>
>> centos --nic public --net_context --ssh ssh_keys/test.pub<br>
>><br>
>> <a href="http://opennebula.org/doc/4.0/cli/onetemplate.1.html" target="_blank">http://opennebula.org/doc/4.0/cli/onetemplate.1.html</a><br>
>><br>
>> On Mon, Apr 22, 2013 at 1:14 PM, Javier Fontan <<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>><br>
>> wrote:<br>
>> > It seems that you have the context packages installed in the VM but<br>
>> > you are not adding contextualization variables to the VM. When there<br>
>> > are no contextualization parameters the context packages will fallback<br>
>> > to default values. For example, the netmask will be /24.<br>
>> ><br>
>> > You can get more information on how to do that manually in the context<br>
>> > doc [1]. From Sunstone you can also check the network<br>
>> > contextualization checkbox when creating the template, that option<br>
>> > will add the variables needed to the template.<br>
>> ><br>
>> > [1] <a href="http://opennebula.org/documentation:rel4.0:context_overview" target="_blank">http://opennebula.org/documentation:rel4.0:context_overview</a><br>
>> ><br>
>> > On Sun, Apr 21, 2013 at 8:41 PM, Jon <<a href="mailto:three18ti@gmail.com" target="_blank">three18ti@gmail.com</a>> wrote:<br>
>> >> Hello All,<br>
>> >><br>
>> >> First the great news, it seems that the OpenVSwitch bug has been<br>
>> >> resolved:<br>
>> >><br>
>> >>>> Sun Apr 21 11:49:37 2013 [VMM][I]: post: Executed "sudo<br>
>> >>>> /usr/bin/ovs-ofctl add-flow ovsbr0<br>
>> >>>> in_port=24,dl_src=02:00:44:47:83:46,priority=40000,actions=normal".<br>
>> >>>> Sun Apr 21 11:49:37 2013 [VMM][I]: post: Executed "sudo<br>
>> >>>> /usr/bin/ovs-ofctl add-flow ovsbr0<br>
>> >>>> in_port=24,priority=39000,actions=drop".<br>
>> >><br>
>> >> This is awesome, as virtual machines deploy correctly now; I'm one step<br>
>> >> closer to getting a running OpenNebula deployment.<br>
>> >><br>
>> >> However, it seems that OpenNebula is not configuring the network quite<br>
>> >> right, I've assigned a /28 to my OpenNebula server, <a href="http://8.8.8.65/28" target="_blank">8.8.8.65/28</a>, and<br>
>> >> when I<br>
>> >> assign an IP to a VM, the VM configures the network as a /24<br>
>> >><br>
>> >> eth0 Link encap:Ethernet HWaddr 02:00:44:47:83:46<br>
>> >> inet addr:8.8.8.8.70 Bcast:8.8.8.8.255 Mask:255.255.255.0<br>
>> >> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
>> >> RX packets:6358 errors:0 dropped:0 overruns:0 frame:0<br>
>> >> TX packets:72 errors:0 dropped:0 overruns:0 carrier:0<br>
>> >> collisions:0 txqueuelen:1000<br>
>> >> RX bytes:385057 (376.0 KiB) TX bytes:6403 (6.2 KiB)<br>
>> >> Interrupt:11 Base address:0xc000<br>
>> >><br>
>> >> So my question is, how do I configure the network so it uses the<br>
>> >> correct<br>
>> >> subnet?<br>
>> >><br>
>> >> I've configured everything so far directly via SunStone.<br>
>> >><br>
>> >> Here's my VM template:<br>
>> >><br>
>> >>>> oneadmin@loki:~$ onetemplate show template-4<br>
>> >>>> TEMPLATE 4 INFORMATION<br>
>> >>>> ID : 4<br>
>> >>>> NAME : template-4<br>
>> >>>> USER : oneadmin<br>
>> >>>> GROUP : oneadmin<br>
>> >>>> REGISTER TIME : 03/28 02:04:14<br>
>> >>>><br>
>> >>>> PERMISSIONS<br>
>> >>>> OWNER : um-<br>
>> >>>> GROUP : ---<br>
>> >>>> OTHER : ---<br>
>> >>>><br>
>> >>>> TEMPLATE CONTENTS<br>
>> >>>> CPU="0.5"<br>
>> >>>> DISK=[<br>
>> >>>> IMAGE_ID="4" ]<br>
>> >>>> GRAPHICS=[<br>
>> >>>> LISTEN="0.0.0.0",<br>
>> >>>> TYPE="VNC" ]<br>
>> >>>> MEMORY="1024"<br>
>> >>>> NIC=[<br>
>> >>>> NETWORK_ID="0" ]<br>
>> >>>> REQUIREMENTS="ID=\"0\""<br>
>> >>>> UNDEFINED="2.00"<br>
>> >>>> VCPU="2"<br>
>> >><br>
>> >> _______________________________________________<br>
>> >> Users mailing list<br>
>> >> <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
>> >> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
>> >><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > Javier Fontán Muiños<br>
>> > Project Engineer<br>
>> > OpenNebula - The Open Source Toolkit for Data Center Virtualization<br>
>> > <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a> | @OpenNebula<br>
>><br>
>><br>
>><br>
>> --<br>
>> Javier Fontán Muiños<br>
>> Project Engineer<br>
>> OpenNebula - The Open Source Toolkit for Data Center Virtualization<br>
>> <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a> | @OpenNebula<br>
<br>
<br>
<br>
--<br>
Javier Fontán Muiños<br>
Project Engineer<br>
OpenNebula - The Open Source Toolkit for Data Center Virtualization<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a> | @OpenNebula<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br></div></div>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula
</div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>