Hi Martin,

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)...

To Reproduce :- 
1. Create VM with one nic and run-once and push the cloud-init to configure the eth0
2. shutdown the VM.
3. add new nic
4. run-once and push the cloud-init to configure eth1
5. login to server with console and check through ifconfig...you will see eth1 only....
6. check the config file (/etc/network/interfaces)...you will find eth1 config only...

Thanks,
Punit

On Thu, Dec 18, 2014 at 4:05 PM, Martin Pavlik <mpavlik@redhat.com> wrote:
Hi Punit,

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?

Regards

Martin Pavlik
RHEV Quality Engineer
irc nick: mpavlik ; irc channels: #tlv #brno #rhev-dev #rhev-qe

----- Original Message -----
From: "Punit Dambiwal" <hypunit@gmail.com>
To: users@ovirt.org, "Itamar Heim" <iheim@redhat.com>, "Omer Frenkel" <ofrenkel@redhat.com>, "Oved Ourfali" <ovedo@redhat.com>, "Dan Kenigsberg" <danken@redhat.com>, "Martin Perina" <mperina@redhat.com>
Sent: Thursday, December 18, 2014 3:21:44 AM
Subject: [ovirt-users] Add new IP in ubuntu VM will clear the existing  configuration | cloud-init

Hi,

I tired ubuntu 14.04 and debian 7.6....both has the same issue...

1. Create VM with one NIC "eth0"...then run once and insert the cloud-init data and make it up...
2. Powerdown the VM.
3. Add extra ip "eth1"...
4. run once and insert the cloud-init data and make it up...
5. VM successfully come up but removed the eth0 and loopback address config from /etc/network/interfaces file....
6. Now from ifconfig it displays only eth1...becasue eth0 and loopback config removed by eth1..

Thanks,
Punit

_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users