Hi, Could you use ETH0_IP and ETH1_IP to set correct IP to two NICs?
In my opinion, the NIC with ID 0 will be the NIC interface eth0 in the guest OS, and NIC with ID 1 will be eth1. So it is no need to bother MAC. Sam 发件人: users-boun...@lists.opennebula.org [mailto:users-boun...@lists.opennebula.org] 代表 Michael Curran 发送时间: 2013年10月26日 2:41 收件人: Michael Curran; Carlos Martín Sánchez 抄送: users 主题: Re: [one-users] context mac address Just to make sure I am clear on what I am looking for , this is the set of fields in the onevm show <vmid> VM NICS ID NETWORK VLAN BRIDGE IP MAC 0 private1_10.7.0.0 yes private_1 10.7.3.248 02:00:0a:07:03:f8 fe80::400:aff:fe07:3f8 1 private1_10.7.0.0 yes private_1 10.7.3.249 02:00:0a:07:03:f9 fe80::400:aff:fe07:3f9 I want to create my own context variable that references ETH0_MAC �C the mac address in the last colume I have tried Carlos’ suggestion below and also these now ETH0_MAC="$NIC[MAC,ID=\"0\"]" ETH0_MAC="$VMNIC[MAC,ID=\"0\"]" ETH0_MAC="$VM_NIC[MAC,ID=\"0\"]" 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 What is the correct variable pattern to use �C is there a comprehensive list of these variables listed somewhere? Michael Curran | connectsolutions | Lead Network Architect Phone 614.568.2285 | Mobile 614.403.6320 | <http://www.connectsolutions.com> www.connectsolutions.com From: users-boun...@lists.opennebula.org [mailto:users-boun...@lists.opennebula.org] On Behalf Of Michael Curran Sent: Friday, October 25, 2013 1:26 PM To: Carlos Martín Sánchez Cc: users Subject: Re: [one-users] context mac address I tried that as you wrote it and I have tried a few of my own variables that did not work either. I would love to see a comprehensive list of variables to use, and I’m just not finding one. That page is explanatory on how to put them together, but not how to obtain what is available �C maybe MAC isn’t available with $NIC ?? Michael Curran | connectsolutions | Lead Network Architect Phone 614.568.2285 | Mobile 614.403.6320 | <http://www.connectsolutions.com> www.connectsolutions.com From: Carlos Martín Sánchez [mailto:cmar...@opennebula.org] Sent: Friday, October 25, 2013 12:53 PM To: Michael Curran Cc: users Subject: Re: [one-users] context mac address Hi, Do you mean like this? ETH0_NIC = "$NIC[MAC, NETWORK_ID=\"0\"]" The contextualization variables syntax is explained here [1]. Regards [1] http://opennebula.org/documentation:rel4.2:cong -- Carlos Martín, MSc Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | cmar...@opennebula.org | @OpenNebula <http://twitter.com/opennebula> On Fri, Oct 25, 2013 at 6:42 PM, Michael Curran <michael.cur...@connectsolutions.com> wrote: I’m working on contextualizing a windows VM with multiple NIC’s during VM creation 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. Michael Curran | connectsolutions | Lead Network Architect Phone 614.568.2285 | Mobile 614.403.6320 | <http://www.connectsolutions.com> www.connectsolutions.com _______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
_______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org