
On 01.06.14 11:20, Omer Frenkel wrote:
----- Original Message -----
From: "Nathanaël Blanchet" <blanchet@abes.fr> To: "users" <users@ovirt.org> Sent: Friday, May 30, 2014 6:49:34 PM Subject: [ovirt-users] yaml cloud-init custom scripts
Hello,
I've been unsuccessfully trying to make work a custom yalm script with the cloud-init option in 3.4.1. All other native UI parameters are correctly configured (hostname...)
My goal is to change the keyboard layout: write_files: - content: | # My new /etc/sysconfig/keyboard file KEYTABLE="fr" MODEL="pc105" LAYOUT="fr" KEYBOARDTYPE="pc" path: /etc/sysconfig/keyboard permissions: '0644'
I can't see what is wrong and there is nothing into cloud-init logs on the guest (/var/log/clou-init-output.log).
isn't it in /var/log/cloud-init.log ?
Is it possible to see the whole yalm file generated by the engine somewhere?
the cloud init data is attached to the vm as a cd-rom you can mount it locally and look inside the drive name is config-2 (look for it with blkid) for me on fedora 19 it always appear in /dev/sr1
First look at the mounted content as Omer suggested and take a look if the YAML output as you expected. You can also try to set the data that is written in the "custom script" commit: http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=d46ebd8712f369b... see if adding this content is working for your setup: write_files: - content: | # some file content path: /root/myfile This sample was tested and worked under RHEL 6 and Fedora 19. Please note that you need to add a tab/4 spaces as shown above. What OS and what version of cloud-init you are using?
-- Nathanaël Blanchet
Supervision réseau Pôle exploitation et maintenance Département des systèmes d'information 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users