[ovirt-users] Start VM function using ovirt api

Shanil S xielesshanil at gmail.com
Wed Sep 3 08:19:00 UTC 2014


Hi Juan,

Okay.. Thanks.. Its working now.. :)

-- 
Regards
Shanil


On Wed, Sep 3, 2014 at 1:44 PM, Juan Hernandez <jhernand at redhat.com> wrote:

> On 09/03/2014 10:12 AM, Shanil S wrote:
> > Hi All,
> >
> > We are using the /api/vm/ID/start function to start the virtual machine
> > but it seems the vm is start in the run once mode. We want to start the
> > vm in the Run mode rather than the run once, How can we do this ? Is
> > there any other option to start the vm in the run mode ? it is possible
> > from the ovirt admin panel. The following xml is used for the start vm
> > action
> >
> > $xml_data = "
> >     <action><boot dev='cdrom'/></os>
> > <vm></vm></action>";
> >
>
> Use an empty <action/> element. The presence of the nested <vm></vm>
> element means "run once".
>
> --
> Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
> 3ºD, 28016 Madrid, Spain
> Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20140903/8e72c8b3/attachment-0001.html>


More information about the Users mailing list