[ovirt-users] [ovirt 3.5.1] Attach sysprep floppy from the API

Juan Hernández jhernand at redhat.com
Fri Jun 19 07:11:03 EDT 2015


On 06/19/2015 11:33 AM, Jiri Belka wrote:
>> I would like to attach a sysprep floppy to a Windows VM.
>>
>> Currently, I am able to configure the sysprep custom script from the API
>> :
>>
>> PUT https://HOSTNAME/api/vms/{id}
>> <vm>
>>      <initialization>
>>         <custom_script>{my content}</custom_script>
>>      </initialization>
>> </vm>
>>
>> After that, when I start the VM from the Web UI in RunOnce mode, I can
>> attach the sysprep floppy to the VM.
>>
>> But how can I attach the sysprep floppy and start the VM in RunOnce mode
>> from the API ?
> 
> iiuc it's payload stuff, see http://www.ovirt.org/Features/VMPayload
> 
> j.

The sysprep support is only triggered the first time that the VM is
started. If you already started that VM during your tests (from the GUI
or from the API) then the sysprep configuration will be ignored. Create
the VM again (from a template, I guess) and it should work.

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


More information about the Users mailing list