[Users] [rhevm-api] Assign IP address to VM using Java SDK

Shahar Havivi shaharh at redhat.com
Thu Feb 13 08:29:16 UTC 2014


On 13.02.14 00:59, Oved Ourfalli wrote:
> 
> 
> ----- Original Message -----
> > From: "Shahar Havivi" <shaharh at redhat.com>
> > To: users at ovirt.org
> > Cc: "Juan Antonio Hernandez Fernandez" <jhernand at redhat.com>, rhevm-api at lists.fedorahosted.org, "Tejesh M"
> > <tejeshmk at gmail.com>
> > Sent: Wednesday, February 12, 2014 11:22:20 PM
> > Subject: Re: [Users] [rhevm-api] Assign IP address to VM using Java SDK
> > 
> > On 12.02.14 22:55, Itamar Heim wrote:
> > > On 02/12/2014 03:14 PM, Tejesh M wrote:
> > > >Hi,
> > > >
> > > >Can anyone share sample code on how to assign IP address to guest os &
> > > >changing the root password while creating VM from Template using Java SDK?
> > Hi Tejesh,
> > You should start here:
> > http://www.ovirt.org/Api
> > This link will explain the basics for fetching VM via the API using HTTP via
> > curl command line.
> > 
> > Every VM have a collection of networks and manipulating them can be seeing
> > here with the REST API examples:
> > http://www.ovirt.org/Features/Design/Network/SetupNetworks#REST
> > the section for you is "Attaching a network to a NIC" under the REST
> > category.
> > 
> > Shahar Havivi.
> > 
> 
> Actually it looks like Tejesh is referring to the Guests and not the hosts, so you can use cloud-init in order to do that.
> See more in "http://www.ovirt.org/Features/Cloud-Init_Integration".
> If the VM's operating system is defined as some kind of Linux, then you'll be able to set some stuff using cloud-init, either via the Run-Once Dialog, or in the regular VM properties dialog.
> 
> Omer - we have REST API support for cloud-init, right?
Yes, more on that can be found here:
http://www.ovirt.org/Features/vm-init-persistent
> 
> 
> > 
> > > >
> > > >
> > > >--
> > > >Thanks & Regards
> > > >Lucky
> > > >
> > > >
> > > >_______________________________________________
> > > >rhevm-api mailing list
> > > >rhevm-api at lists.fedorahosted.org
> > > >https://lists.fedorahosted.org/mailman/listinfo/rhevm-api
> > > >
> > > 
> > > this list isn't used any more, moving to users at ovirt.org
> > _______________________________________________
> > Users mailing list
> > Users at ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> > 



More information about the Users mailing list