<div dir="ltr">Hi,<div><br></div><div style>Looks like that scenario is not supported with the current Context syntax.</div><div style>I've created a ticket [1], we'll fix it in future versions.</div><div style><br>

</div><div style>Thanks!</div><div style><br></div><div style>[1] <a href="http://dev.opennebula.org/issues/1927">http://dev.opennebula.org/issues/1927</a><br></div></div><div class="gmail_extra"><br clear="all"><div>--<br>

Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<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" style="color:rgb(42,93,176)" target="_blank"></a></span></div>

</div>
<br><br><div class="gmail_quote">On Wed, Apr 17, 2013 at 2:32 PM, David <span dir="ltr"><<a href="mailto:david1228@foxmail.com" target="_blank">david1228@foxmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>hi, all.</div><div>I need specify multiple card network IP,genreate context file IP info error, the <span style="font-size:14px;line-height:1.5">ETH0_IP and </span>ETH1_IP is the same.</div><div>context.sh as follows:</div>

<div><div># Context variables generated by OpenNebula</div><div>DISK_ID="1"</div><div>ETH0_DNS1="8.8.8.8"</div><div>ETH0_DNS2="4.4.4.4"</div><div>ETH0_GATEWAY="10.10.60.254"</div><div>

ETH0_IP="10.10.60.200"</div><div>ETH0_NETMASK="255.255.255.0"</div><div>ETH1_DNS1="8.8.8.8"</div><div>ETH1_DNS2="4.4.4.4"</div><div>ETH1_GATEWAY="10.10.60.254"</div><div>
ETH1_IP="10.10.60.200"</div>
<div>ETH1_NETMASK="255.255.255.0"</div><div>FILES="/opt/images/script/init.sh </div><div>GANGLIA_CLUSTER_NAME="unspecified""</div><div>GANGLIA_HOST_IP="192.168.39.80""</div><div>

HOSTNAME="BCI0000002b_TEST"</div><div>ROOT_PASSWD="test_123456"</div><div>TARGET="hdc"</div><div>VM_UUID="BCI0000002b_TEST"</div></div><div><br></div><div>but,  depolyment.0 file generated by OpenNebula no problem:</div>

<div>deployment.0 as follows:</div><div>.....</div><div><div><disk type='file' device='cdrom'></div><div><span style="white-space:pre-wrap">                      </span><source file='/one_images/0/31/disk.1'/></div>

<div><span style="white-space:pre-wrap">                  </span><target dev='hdc'/></div><div><span style="white-space:pre-wrap">                        </span><readonly/></div><div><span style="white-space:pre-wrap">                        </span><driver name='qemu' type='raw'/></div>

<div><span style="white-space:pre-wrap">          </span></disk></div><div><span style="white-space:pre-wrap">            </span><interface type='bridge'></div><div><span style="white-space:pre-wrap">                  </span><source bridge='onebr1060'/></div>

<div><span style="white-space:pre-wrap">                  </span><mac address='02:00:0a:be:3c:c8'/></div><div><span style="white-space:pre-wrap">                 </span><model type='virtio'/></div><div><span style="white-space:pre-wrap">             </span></interface></div>

<div><span style="white-space:pre-wrap">          </span><interface type='bridge'></div><div><span style="white-space:pre-wrap">                  </span><source bridge='onebr1060'/></div><div><span style="white-space:pre-wrap">                       </span><mac address='02:00:0a:be:3c:c9'/></div>

<div><span style="white-space:pre-wrap">                  </span><model type='virtio'/></div><div><span style="white-space:pre-wrap">             </span></interface></div></div><div>....</div><div><br></div><div><span style="line-height:1.5;font-size:14px">The virtual machine template as follows:</span></div>

<div>explain: <span style="font-size:14px;line-height:1.5">ETH0_IP = "$NIC[IP]" and </span><span style="font-size:14px;line-height:1.5">ETH0_IP = "$NIC[IP, NETWORK=\"10.10.60.0\"]", </span><span style="line-height:1.5;font-size:14px">Test results for the same problem. multiple card ip alike of context.sh .</span></div>

<div><span style="line-height:1.5;font-size:14px">NAME = BCI0000002b_TEST</span></div><div>MEMORY = 512</div><div>CPU = 1.0</div><div>VCPU = 1</div><div>RANK = "FREECPU"</div><div>OS = [ BOOT = hd, ARCH = x86_64 ]</div>

<div>DISK = [ IMAGE_ID = 28,TARGET = vda,BUS = virtio,READONLY = no ]</div><div>INPUT = [ TYPE = tablet,BUS = usb ]</div><div>GRAPHICS = [ TYPE = vnc,LISTEN = 0.0.0.0,PORT = -1 ]</div><div>NIC = [ MODEL = virtio,NETWORK = 10.10.60.0,IP = 10.10.60.200 ]</div>

<div>NIC = [ MODEL = virtio,NETWORK = 10.10.60.0,IP = 10.10.60.201 ]</div><div>CONTEXT = [ VM_UUID = $NAME,HOSTNAME = $NAME,ETH0_IP = "$NIC[IP]",ETH0_NETMASK = 255.255.255.0,ETH0_GATEWAY = 10.10.60.254,ETH0_DNS1 = 8.8.8.8,ETH0_DNS2 = 4.4.4.4,ETH1_IP = "$NIC[IP]",ETH1_NETMASK = 255.255.255.0,ETH1_GATEWAY = 10.10.60.254,ETH1_DNS1 = 8.8.8.8,ETH1_DNS2 = 4.4.4.4,GANGLIA_HOST_IP = 192.168.39.80",GANGLIA_CLUSTER_NAME = unspecified",ROOT_PASSWD = "test_123456",FILES = "/opt/images/script/init.sh ,TARGET = hdc ]</div>

<div><br></div><div><p>How to correctly specify the IP?</p><p>regards!</p><p>Thanks very much!</p><span class="HOEnZb"><font color="#888888"><p>David</p></font></span></div><div><br></div><br>_______________________________________________<br>


Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">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></blockquote></div><br></div>