<div dir="ltr">Hi Martin,<div><br></div><div>I created the VM through template...i have created OS template of ubuntu and debian with one nic....now when i deploy the VM through the template...it deployed successfully and i can pass the cloud-init data successfully....problem start when i add new nic...shutdown the VM and add new nic and push the cloud-init to configure this new nic(eth1)....the nic configured and VM will up but it will destroy the previous configurtion from the OS network config file (/etc/network/interfaces)...</div><div><br></div><div>To Reproduce :- </div><div>1. Create VM with one nic and run-once and push the cloud-init to configure the eth0</div><div>2. shutdown the VM.</div><div>3. add new nic</div><div>4. run-once and push the cloud-init to configure eth1</div><div>5. login to server with console and check through ifconfig...you will see eth1 only....</div><div>6. check the config file (/etc/network/interfaces)...you will find eth1 config only...</div><div><br></div><div>Thanks,</div><div>Punit</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 18, 2014 at 4:05 PM, Martin Pavlik <span dir="ltr">&lt;<a href="mailto:mpavlik@redhat.com" target="_blank">mpavlik@redhat.com</a>&gt;</span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Punit,<br>
<br>
at which phase do you put operating system(OS) in this machine? You have installed VM with OS and the you use run once + cloud init (without reinstalling OS)? Just o be sure by adding extra IP (step 3) you mean new adding new network card (aka vNIC) to the VM, right?<br>
<br>
Regards<br>
<br>
Martin Pavlik<br>
RHEV Quality Engineer<br>
irc nick: mpavlik ; irc channels: #tlv #brno #rhev-dev #rhev-qe<br>
<div><div class="h5"><br>
----- Original Message -----<br>
From: &quot;Punit Dambiwal&quot; &lt;<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>&gt;<br>
To: <a href="mailto:users@ovirt.org">users@ovirt.org</a>, &quot;Itamar Heim&quot; &lt;<a href="mailto:iheim@redhat.com">iheim@redhat.com</a>&gt;, &quot;Omer Frenkel&quot; &lt;<a href="mailto:ofrenkel@redhat.com">ofrenkel@redhat.com</a>&gt;, &quot;Oved Ourfali&quot; &lt;<a href="mailto:ovedo@redhat.com">ovedo@redhat.com</a>&gt;, &quot;Dan Kenigsberg&quot; &lt;<a href="mailto:danken@redhat.com">danken@redhat.com</a>&gt;, &quot;Martin Perina&quot; &lt;<a href="mailto:mperina@redhat.com">mperina@redhat.com</a>&gt;<br>
Sent: Thursday, December 18, 2014 3:21:44 AM<br>
Subject: [ovirt-users] Add new IP in ubuntu VM will clear the existing  configuration | cloud-init<br>
<br>
Hi,<br>
<br>
I tired ubuntu 14.04 and debian 7.6....both has the same issue...<br>
<br>
1. Create VM with one NIC &quot;eth0&quot;...then run once and insert the cloud-init data and make it up...<br>
2. Powerdown the VM.<br>
3. Add extra ip &quot;eth1&quot;...<br>
4. run once and insert the cloud-init data and make it up...<br>
5. VM successfully come up but removed the eth0 and loopback address config from /etc/network/interfaces file....<br>
6. Now from ifconfig it displays only eth1...becasue eth0 and loopback config removed by eth1..<br>
<br>
Thanks,<br>
Punit<br>
<br>
</div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
</blockquote></div></div>