<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:11pt; color:black">Thanks Carlos!!! The --all is what I really needed...missed that in the readings, just dirty sightedness on my part!<br>
<br>
<br>
<br>
Sent from my Android phone using TouchDown (www.nitrodesk.com)<br>
<br>
<span style="color:black">-----Original Message----- <br>
<b>From:</b> Carlos Martín Sánchez [cmartin@opennebula.org]<br>
<b>Received:</b> Monday, 28 Oct 2013, 8:24am<br>
<b>To:</b> Michael Curran [michael.curran@connectsolutions.com]<br>
<b>CC:</b> users [users@lists.opennebula.org]<br>
<b>Subject:</b> Re: [one-users] context mac address<br>
<br>
</span></span>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>On Fri, Oct 25, 2013 at 8:40 PM, Michael Curran <span dir="ltr"><<a href="mailto:michael.curran@connectsolutions.com" target="_blank">michael.curran@connectsolutions.com</a>></span> wrote:</div>
<div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-color:rgb(204,204,204); border-left-style:solid; padding-left:1ex">
<span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)">I have tried Carlos’ suggestion below and also these now<br>
</span><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"> <br>
</span><span style="font-size:14pt; font-family:'Lucida Console'">ETH0_MAC="$NIC[MAC,ID=\"0\"]"<br>
</span><span style="font-size:14pt; font-family:'Lucida Console'">ETH0_MAC="$VMNIC[MAC,ID=\"0\"]"<br>
</span><span style="font-size:14pt; font-family:'Lucida Console'">ETH0_MAC="$VM_NIC[MAC,ID=\"0\"]"<br>
</span><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"> <br>
</span><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)">With no such luck in finding the MAC so I can do MAC matching to assign IP’s across multiple NICs based on that MAC</span></blockquote>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"><br>
</span></p>
</div>
<div>The example I gave in my first email is working for me.</div>
<div><br>
</div>
<div>For this template:</div>
<div><br>
</div>
<div>
<div><font face="courier new, monospace">CPU="0.1"</font></div>
<div><font face="courier new, monospace">MEMORY="128"<br>
</font></div>
<div><font face="courier new, monospace">NIC=[</font></div>
<div><font face="courier new, monospace"> NETWORK_ID="0" ]</font></div>
</div>
<div>
<div><font face="courier new, monospace">CONTEXT=[</font></div>
<div><font face="courier new, monospace"> ETH0_MAC="$NIC[MAC, NETWORK_ID=\"0\"]",</font></div>
<div><font face="courier new, monospace"> NETWORK="yes" ]</font></div>
</div>
<div><br>
</div>
<div>I get this VM:</div>
<div><br>
</div>
<div class="gmail_extra"><font face="courier new, monospace">[...]</font></div>
<div class="gmail_extra">
<div class="gmail_extra"><font face="courier new, monospace">CONTEXT=[</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> DISK_ID="0",</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> ETH0_DNS="192.168.0.1",</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> ETH0_GATEWAY="192.168.0.1",</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> ETH0_IP="192.168.0.3",</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> ETH0_MAC="02:00:c0:a8:00:03",</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> ETH0_MASK="255.255.255.0",</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> ETH0_NETWORK="192.168.0.0",</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> NETWORK="yes",</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> TARGET="hda" ]</font></div>
</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-color:rgb(204,204,204); border-left-style:solid; padding-left:1ex">
> The contextualization variables syntax is explained here [1].<br>
> [1] <a href="http://opennebula.org/documentation:rel4.2:cong" target="_blank">http://opennebula.org/documentation:rel4.2:cong<br>
</a><span style="color:rgb(31,73,125); font-family:Calibri,sans-serif; font-size:15px">That page is explanatory on how to put them together, but not how to obtain what is available – maybe MAC isn’t available with $NIC ??</span></blockquote>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-color:rgb(204,204,204); border-left-style:solid; padding-left:1ex">
</blockquote>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-color:rgb(204,204,204); border-left-style:solid; padding-left:1ex">
<span style="color:rgb(31,73,125); font-family:Calibri,sans-serif; font-size:15px">What is the correct variable pattern to use – is there a comprehensive list of these variables listed somewhere?</span></blockquote>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">No, we don't have a complete list of variables, because you can use any attribute. To see all your available attributes, instantiate a VM, and use the --all or -x options of onevm show.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">For example, I get this output for the previous VM:</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra"><font face="courier new, monospace">$ onevm show 1 --all</font></div>
<div class="gmail_extra"><font face="courier new, monospace">[...]</font></div>
<div class="gmail_extra">
<div class="gmail_extra"><font face="courier new, monospace">VM NICS </font></div>
<div class="gmail_extra"><font face="courier new, monospace"> ID NETWORK VLAN BRIDGE IP MAC </font></div>
<div class="gmail_extra"><font face="courier new, monospace"> 0 ranged no virbr0 192.168.0.3 02:00:c0:a8:00:03</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> fe80::400:c0ff:fea8:3</font></div>
<div><font face="courier new, monospace"><br>
</font></div>
</div>
<div class="gmail_extra"><font face="courier new, monospace">VIRTUAL MACHINE TEMPLATE<br>
</font></div>
<div class="gmail_extra"><font face="courier new, monospace">[...]<br>
</font></div>
<div class="gmail_extra">
<div class="gmail_extra"><font face="courier new, monospace">NIC=[</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> BRIDGE="virbr0",</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> IP="192.168.0.3",</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> IP6_LINK="fe80::400:c0ff:fea8:3",</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> MAC="02:00:c0:a8:00:03",</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> NETWORK="ranged",</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> NETWORK_ID="0",</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> NIC_ID="0",</font></div>
<div class="gmail_extra"><font face="courier new, monospace"> VLAN="NO" ]</font></div>
</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">This means that I can use any of the following expressions inside the CONTEXT section:</div>
<div class="gmail_extra">
<div class="gmail_extra"><font face="courier new, monospace">ETH0_IPV6="$NIC[IP6_LINK, NIC_ID=\"0\"]",</font></div>
<div class="gmail_extra"><font face="courier new, monospace">ETH0_MAC="$NIC[MAC, NETWORK=\"ranged\"]",</font></div>
<div class="gmail_extra"><font face="courier new, monospace">ETH0_NETWORK_NAME="$NIC[NETWORK, BRIDGE=\"virbr0\"]"</font></div>
</div>
<div class="gmail_extra"><font face="courier new, monospace"><br>
</font></div>
<div class="gmail_extra"><font face="courier new, monospace"><br>
</font></div>
<div class="gmail_extra"><font face="courier new, monospace"><br>
</font></div>
<div class="gmail_extra">But instead of doing this, maybe we should add the ETHx_MAC attribute with the rest of the network contextualization, when the CONTEXT/NETWORK=YES attribute is found. This could be easily added to the next release.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Regards<br clear="all">
<div>
<div dir="ltr">--<br>
<div>Carlos Martín, MSc<br>
Project Engineer</div>
<div>OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<div><span style="border-collapse:collapse; color:rgb(136,136,136); font-family:arial,sans-serif; font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> |
<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> |
<a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse; color:rgb(136,136,136); font-family:arial,sans-serif; font-size:13px"><a href="mailto:cmartin@opennebula.org" target="_blank" style="color:rgb(42,93,176)"></a></span></div>
</div>
</div>
</div>
<br>
<br>
<div class="gmail_quote">On Fri, Oct 25, 2013 at 8:40 PM, Michael Curran <span dir="ltr">
<<a href="mailto:michael.curran@connectsolutions.com" target="_blank">michael.curran@connectsolutions.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-color:rgb(204,204,204); border-left-style:solid; padding-left:1ex">
<div lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)">Just to make sure I am clear on what I am looking for , this is the set of fields in the onevm show <vmid><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><b><span style="font-size:14pt; font-family:'Lucida Console'">VM NICS<u></u><u></u></span></b></p>
<p class="MsoNormal" style="text-autospace:none"><b><u><span style="font-size:14pt; font-family:'Lucida Console'">ID NETWORK VLAN BRIDGE IP MAC<u></u><u></u></span></u></b></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:14pt; font-family:'Lucida Console'"> 0 private1_10.7.0.0 yes private_1 10.7.3.248 02:00:0a:07:03:f8<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:14pt; font-family:'Lucida Console'"> fe80::400:aff:fe07:3f8<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:14pt; font-family:'Lucida Console'"> 1 private1_10.7.0.0 yes private_1 10.7.3.249 02:00:0a:07:03:f9<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:14pt; font-family:'Lucida Console'"> fe80::400:aff:fe07:3f9<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)">I want to create my own context variable that references ETH0_MAC – the mac address in the last colume<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)">I have tried Carlos’ suggestion below and also these now<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:14pt; font-family:'Lucida Console'">ETH0_MAC="$NIC[MAC,ID=\"0\"]"</span><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:14pt; font-family:'Lucida Console'">ETH0_MAC="$VMNIC[MAC,ID=\"0\"]"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:14pt; font-family:'Lucida Console'">ETH0_MAC="$VM_NIC[MAC,ID=\"0\"]"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)">With no such luck in finding the MAC so I can do MAC matching to assign IP’s across multiple NICs based on that MAC
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)">What is the correct variable pattern to use – is there a comprehensive list of these variables listed somewhere?
<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)">Michael Curran | connectsolutions | Lead Network Architect<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)">Phone
<a href="tel:614.568.2285" value="+16145682285" target="_blank">614.568.2285</a> | Mobile
<a href="tel:614.403.6320" value="+16144036320" target="_blank">614.403.6320</a> |
<a href="http://www.connectsolutions.com" target="_blank"><span style="color:rgb(5,99,193)">www.connectsolutions.com</span></a><u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"><u></u> <u></u></span></p>
</div>
<div>
<div style="border-style:solid none none; border-top-color:rgb(225,225,225); border-top-width:1pt; padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11pt; font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt; font-family:Calibri,sans-serif">
<a href="mailto:users-bounces@lists.opennebula.org" target="_blank">users-bounces@lists.opennebula.org</a> [mailto:<a href="mailto:users-bounces@lists.opennebula.org" target="_blank">users-bounces@lists.opennebula.org</a>]
<b>On Behalf Of </b>Michael Curran<br>
<b>Sent:</b> Friday, October 25, 2013 1:26 PM<br>
<b>To:</b> Carlos Martín Sánchez</span></p>
<div>
<div><br>
<b>Cc:</b> users<br>
<b>Subject:</b> Re: [one-users] context mac address<u></u><u></u></div>
</div>
<p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)">I tried that as you wrote it and I have tried a few of my own variables that did not work either.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)">I would love to see a comprehensive list of variables to use, and I’m just not finding one.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)">That page is explanatory on how to put them together, but not how to obtain what is available – maybe MAC isn’t available with $NIC ??</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)">Michael Curran | connectsolutions | Lead Network Architect</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)">Phone
<a href="tel:614.568.2285" value="+16145682285" target="_blank">614.568.2285</a> | Mobile
<a href="tel:614.403.6320" value="+16144036320" target="_blank">614.403.6320</a> |
<a href="http://www.connectsolutions.com" target="_blank"><span style="color:rgb(5,99,193)">www.connectsolutions.com</span></a></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:11pt; font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt; font-family:Calibri,sans-serif"> Carlos Martín Sánchez [<a href="mailto:cmartin@opennebula.org" target="_blank">mailto:cmartin@opennebula.org</a>]
<br>
<b>Sent:</b> Friday, October 25, 2013 12:53 PM<br>
<b>To:</b> Michael Curran<br>
<b>Cc:</b> users<br>
<b>Subject:</b> Re: [one-users] context mac address</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Do you mean like this?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">ETH0_NIC = "$NIC[MAC, NETWORK_ID=\"0\"]"<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">The contextualization variables syntax is explained here [1].<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Regards<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">[1] <a href="http://opennebula.org/documentation:rel4.2:cong" target="_blank">http://opennebula.org/documentation:rel4.2:cong</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal">--<u></u><u></u></p>
<div>
<p class="MsoNormal">Carlos Martín, MSc<br>
Project Engineer<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">OpenNebula - Flexible Enterprise Cloud Made Simple<u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:10pt; font-family:Arial,sans-serif; color:rgb(136,136,136)"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> |
<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> |
<a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><u></u><u></u></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12pt"> <u></u><u></u></p>
<div>
<p class="MsoNormal">On Fri, Oct 25, 2013 at 6:42 PM, Michael Curran <<a href="mailto:michael.curran@connectsolutions.com" target="_blank">michael.curran@connectsolutions.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border-style:none none none solid; border-left-color:rgb(204,204,204); border-left-width:1pt; padding:0in 0in 0in 6pt; margin:5pt 0in 5pt 4.8pt">
<div>
<div>
<p class="MsoNormal">I’m working on contextualizing a windows VM with multiple NIC’s during VM creation<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Does anyone know the correct Variable for the MAC by network ID number? I just want to add it to context settings in the VM Template so it picks it up everytime.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Michael Curran | connectsolutions | Lead Network Architect<u></u><u></u></p>
<p class="MsoNormal">Phone <a href="tel:614.568.2285" target="_blank">614.568.2285</a> | Mobile
<a href="tel:614.403.6320" target="_blank">614.403.6320</a> | <a href="http://www.connectsolutions.com" target="_blank">
<span style="color:rgb(5,99,193)">www.connectsolutions.com</span></a><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12pt"><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><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</body>
</html>