Re: [ovirt-users] VM autoconfiguration
On 24.09.14 12:37, J. Mikulec wrote: 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. I guess that if you cannot login via ssh/console cloud-init encounter some problem and didn't set the password, this may be oVirts problem. 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? I assume that we are talking about cloud-init 0.7.2, What version of oVirt are you using? I will try to reproduce it with rhel/fedora. Shahar. 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@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ 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 ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] VM autoconfiguration
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@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ 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
Re: [ovirt-users] VM autoconfiguration
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@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ 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
Re: [ovirt-users] VM autoconfiguration
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@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ 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
Re: [ovirt-users] VM autoconfiguration
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@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ 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
Re: [ovirt-users] VM autoconfiguration
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@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] VM autoconfiguration
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. 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@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] VM autoconfiguration
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? 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@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] VM autoconfiguration
Forgot to say I disabled selinux in Centos7 template. J.M. Dne 22.9.2014 v 19:37 J. Mikulec napsal(a): 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? 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@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ 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