[ovirt-users] VM autoconfiguration

J. Mikulec jiri at mikulec.name
Tue Sep 23 10:54:13 UTC 2014


Thanks. Cannot find such config file or entry :-/
So it seems cloud-init apply later than is needed to change root 
password. But don't know.

Dne 23.9.2014 v 8:49 Shahar Havivi napsal(a):
> On 22.09.14 18:25, J. Mikulec wrote:
>> Hello,
>>
>> so, first for Centos 6.5.
>>
>> I made a template with steps from
>> http://www.ovirt.org/Quick_Start_Guide:
>>
>> touch /.unconfigured
>> rm -rf /etc/ssh/ssh_host_*
>>
>> After starting system created from my template it stops on "set new root
>> password", I must set something (may be empty) and then shows up
>> authconfig-tui, must confirm.
> This may be an instruction from cloud-init to root password that it must
> change password, look at /etc/cloud-init/ for the config file - there is some
> entry for must_change_password...
>
>>
>> After this cloud-init set everything ok - network, hostname,
>> authorized_keys, root password. To have network working, must set network in
>> "Initial Run" to eth1, not eth0. So it is good to remove ifcfg-eth0 from
>> template. But works.
>>
>> Bad thing is that stop on root password and authconfig-tui. I think it is
>> some issue with unconfigured state, not with cloud-init - but don't know.
>>
>> cloud-init-0.7.4-2.el6.noarch from epel, don't know simple way to downgrade.
>> cloud-init logs:
>> http://pastebin.com/v7FS8hpj
>> http://pastebin.com/MnnTzKAq
>>
>> Thanks, Jiri
>>
>> Dne 22.9.2014 v 16:30 Shahar Havivi napsal(a):
>>> On 22.09.14 16:22, J. Mikulec wrote:
>>>> Hello,
>>>>
>>>> I followed instructions at
>>>> http://www.ovirt.org/Features/Cloud-Init_Integration
>>>> It works fine for Fedora, but it not works properly for Centos 6.5 and 7
>>>> (for example network settings changed, hostname only in one of them, system
>>>> start waiting for password in 6.5 etc.) - which are most common distros for
>>>> us.
>>>>
>>>> It seems to be problematically (by design ?) at future.
>>>>
>>>> So - is another alternative of cloud-init (maybe with more coding and
>>>> configuring) for automatically assign IP settings, hostname and root
>>>> password?
>>> Please post the version and log of cloud-init,
>>> If the version is more then 0.7.2 you can try to downgrade to this version.
>>>
>>>    Shahar.
>>>>
>>>> Thanks, Jiri
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at ovirt.org
>>>> http://lists.ovirt.org/mailman/listinfo/users
>> _______________________________________________
>> Users mailing list
>> Users at ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users



More information about the Users mailing list