[ovirt-users] VM autoconfiguration
J. Mikulec
jiri at mikulec.name
Wed Sep 24 10:37:12 UTC 2014
I spent a day with testing and went into two situations:
- cloud-init set up everything except root password
- cloud-init set up everything except network
What does it mean? Let me explain:
When I remove HWADDR from ifcfg-eth0 in template, everything works
(network, ssh with key), but can't login through console or ssh with
password. So I think it is not set.
When I forgot to remove HWADDR line, root password is set but network
not work ofcourse. I added custom command with runcmd to remove this
line and restart network - everything works. Stupid hack ...
So root password cloud-init setting depends on network settings. Is this
cloud-init bug?
Jiri
Dne 23.9.2014 v 8:30 Shahar Havivi napsal(a):
> On 22.09.14 19:37, J. Mikulec wrote:
>> Hello again,
>>
>> Centos 7:
>>
>> Everything works except network needs manually restart to work (but config
>> is done by cloud-init). Is workaround to send custom command through
>> cloud-init to restart network service?
> I think there is an open bug in cloud-init package:
> https://bugzilla.redhat.com/1139556
>>
>> It also neither do not setup resolv.conf nor add DNS settings to ifcfg-eth0
>> (workaround may be to let this settings in ifcfg-eth0 filled from template)
>>
>> 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