[Users] Adding Host

Rene Rosenberger r.rosenberger at netbiscuits.com
Tue Mar 27 11:01:59 UTC 2012


Hi,

so you mean ist saver and better to let bootstrap do its work instead of doing it manualy, right?

Ok, but I have already kmv hosts I wanna add to ovirt. Whats the best way todo? Save the vms somewhere and reinstall the host via bootstrap and move the vms back via virt-v2v?

Regards, rene

-----Ursprüngliche Nachricht-----
Von: Doron Fediuck [mailto:dfediuck at redhat.com] 
Gesendet: Dienstag, 27. März 2012 12:58
An: Rene Rosenberger
Cc: Haim Ateya; users at ovirt.org
Betreff: Re: AW: AW: [Users] Adding Host

Basically the bootstrap process is making sure the relevant RPM files are installed, and conflicting packages are either removed or causes failure. There are some conflicts that are not in RPM level, which bootstrap knows how to handle. These will not be handled in the path you're taking. Similar issues you should expect is bios virt flags and kernel / OS validations bootstrap is doing.

Furthermore, bootstrap is auto-generating a vdsm configuration, as well as other things such as networking (which you stumbled upon), time-sync, key & certificate generation signed by the engine-core, along with setting up a core-dump folder and probably some other things which I forgot.

So as you can understand bootstrap is handling many issues, and manual installation, although possible, will not b e a simple one. If you're heading this way I suggest you read the vdsm_bootstrap, vdsm_bootstrap_complete, deployUtil and vds_installer python scripts. All should be available on your engine-core machine.

On 27/03/12 12:46, Rene Rosenberger wrote:
> 
> Hi,
> 
> lets assume that i have a running system and i already did a yum groupinstall "Virtualization*". Then I have a completely running kvm system with virtual machine manager and so on. What do I have to do to add this host to ovirt? Can you explain the steps?
> 
> Regards, rene
> 
> -----Ursprüngliche Nachricht-----
> Von: Doron Fediuck [mailto:dfediuck at redhat.com]
> Gesendet: Dienstag, 27. März 2012 12:39
> An: Rene Rosenberger
> Cc: Haim Ateya; users at ovirt.org
> Betreff: Re: AW: [Users] Adding Host
> 
> Rene,
> Standard bootstrap assumes base OS is installed, with access to relevant yum repo in order to fetch vdsm and dependent RPM's. From this point of view, we concentrate on VDSM, while kvm is simply a kernel module which should be loaded. Anything beyond will probably cause manual intervention as you just had.
> 
> 
> On 27/03/12 12:32, Rene Rosenberger wrote:
>> Hi,
>>
>> I think I will give it a new try from the scratch. What is the procedure to add a centos 6.2 host where is already kvm running with vms? Lets forget the vms for a while and think only about that kvm is already installed on the host I want to add to ovirt.
>>
>> Regards,
>> rene
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Doron Fediuck [mailto:dfediuck at redhat.com]
>> Gesendet: Dienstag, 27. März 2012 12:09
>> An: Rene Rosenberger
>> Cc: Haim Ateya; users at ovirt.org
>> Betreff: Re: [Users] Adding Host
>>
>> Rene,
>> Having an ovirtmgmt bridge manually setup, causes the bootstrap process to avoid over-running it, assuming it's working.
>>
>> In normal flow it should be auto-generated for you, unless something goes wrong. So you should have it working, but if you find the earlier issue, please let us know so we could try and fix it.
>>
>> Doron
>>
>> On 27/03/12 12:01, Rene Rosenberger wrote:
>>> Hi,
>>>
>>>  
>>>
>>> i think i got it. When i create a bridge manualy like this:
>>>
>>>  
>>>
>>> Add ovirt management bridge manually. Here the examples of ifcfg 
>>> files, resides in /etc/sysconfig/network-scripts
>>>
>>> vim /etc/sysconfig/network-scripts/ifcfg-eth0
>>>
>>>  
>>>
>>> DEVICE=eth0
>>>
>>> BOOTPROTO=none
>>>
>>> NM_CONTROLLED=no
>>>
>>> ONBOOT=yes
>>>
>>> BRIDGE=ovirtmgmt
>>>
>>> vim /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt
>>>
>>>  
>>>
>>> DEVICE=ovirtmgmt
>>>
>>> BOOTPROTO=static
>>>
>>> GATEWAY=xxx.xxx.xxx.xxx
>>>
>>> IPADDR=xxx.xxx.xxx.xxx
>>>
>>> NETMASK=255.255.255.0
>>>
>>> NM_CONTROLLED=no
>>>
>>> ONBOOT=yes
>>>
>>> TYPE=Bridge
>>>
>>>  
>>>
>>> It will work. I think this working installation has now overwritten my not working log. So I cant post. It is a centos 6.2 host.
>>>
>>>  
>>>
>>> Regards,
>>>
>>>  
>>>
>>> rene
>>>
>>>  
>>>
>>>  
>>>
>>> *Von:*users-bounces at ovirt.org [mailto:users-bounces at ovirt.org] *Im 
>>> Auftrag von *Haim Ateya
>>> *Gesendet:* Dienstag, 27. März 2012 11:59
>>> *An:* users at ovirt.org
>>> *Betreff:* Re: [Users] Adding Host
>>>
>>>  
>>>
>>> On 03/27/2012 11:52 AM, Rene Rosenberger wrote:
>>>
>>> Hi,
>>>
>>>  
>>>
>>> i have installed ovirt successfully. When I now want to add a host on which KVM is already installed I get an error. I try to add it over the web gui with add new host. Thne a installation progress is starting on the remote host and I get an error during this progress:
>>>
>>>  
>>>
>>> Step: SetNetworking; Details: addNetwork error trying to add management bridge.
>>>
>>>  
>>>
>>> What can I do?
>>>
>>>
>>> could you please attach installation logs located under /tmp/ on installed host ?
>>> what type of host are you trying to add ? is it RHEL or Fedora ?
>>>
>>>
>>>  
>>>
>>> Regards, rene
>>>
>>>  
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>>
>>> Users mailing list
>>>
>>> Users at ovirt.org <mailto: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