[ovirt-users] Add new IP in ubuntu VM will clear the existing configuration | cloud-init

Punit Dambiwal hypunit at gmail.com
Fri Dec 19 01:28:45 UTC 2014


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 at 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 at gmail.com>
> To: users at ovirt.org, "Itamar Heim" <iheim at redhat.com>, "Omer Frenkel" <
> ofrenkel at redhat.com>, "Oved Ourfali" <ovedo at redhat.com>, "Dan Kenigsberg"
> <danken at redhat.com>, "Martin Perina" <mperina at 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 at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20141219/8e4dac89/attachment-0001.html>


More information about the Users mailing list