[ovirt-users] Add multiple files to a VM via cloud-init
Shahar Havivi
shaharh at redhat.com
Thu Oct 30 07:22:46 UTC 2014
On 29.10.14 17:35, Branimir Pejakovic wrote:
> Hi list,
>
> I was wondering is there a way to add multiple files to a vm via cloud-init
> using python SDK. I was able to add /etc/resolv.conf and additionally I
> would like to add config files for NICs (ifcfg-ethX) with appropriate
> values (ip,gw,netmask). I used an example given here:
> http://www.ovirt.org/Features/Cloud-Init_Integration . But unfortunately I
> cannot do the same thing If I want to write multiple files to a vm in
> params.Action class.
>
> Thank you in advance!
you can use the custom script text box in oVirts cloud-init section,
there you can add any cloud-init section - adding files examples can be found
here:
http://cloudinit.readthedocs.org/en/latest/topics/examples.html#writing-out-arbitrary-files
Shahar Havivi.
>
>
> Best regards,
>
> Branimir
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
More information about the Users
mailing list