I thought about this too, but then I have to keep multiple scripts for each 
template based on number of nics , instead of creating one script that walks 
through the nics by Mac address

Sent from my Android phone using TouchDown (www.nitrodesk.com)

-----Original Message-----
From: Sam Song [[email protected]]
Received: Friday, 25 Oct 2013, 10:13pm
To: [email protected] [[email protected]]
Subject: [one-users] 答复: context mac address

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

发件人: [email protected] 
[mailto:[email protected]] 代表 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 | 
www.connectsolutions.com<http://www.connectsolutions.com>

From: 
[email protected]<mailto:[email protected]> 
[mailto:[email protected]] 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 | 
www.connectsolutions.com<http://www.connectsolutions.com>

From: Carlos Martín Sánchez [mailto:[email protected]]
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<http://www.OpenNebula.org> | 
[email protected]<mailto:[email protected]> | 
@OpenNebula<http://twitter.com/opennebula>

On Fri, Oct 25, 2013 at 6:42 PM, Michael Curran 
<[email protected]<mailto:[email protected]>>
 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<tel:614.568.2285> | Mobile 614.403.6320<tel:614.403.6320> | 
www.connectsolutions.com<http://www.connectsolutions.com>


_______________________________________________
Users mailing list
[email protected]<mailto:[email protected]>
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to