<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 2, 2017 at 11:30 AM, Manuel Luis Aznar <span dir="ltr"><<a href="mailto:manuel.luis.aznar@gmail.com" target="_blank">manuel.luis.aznar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello there again,<div><br></div><div>Yes as I say, I have done several clean installations and the VM engine sometimes starts without any problem. So Simone any recommendation to make the engine VM starts properly?¿</div><div><br></div><div>While is installing the HA agent and HA broker are down, would I get good result by starting the services myself?¿</div><div><br></div><div>Any help from Simone or somebody would be appreciated</div><span class=""><div>Thanks for all in advance</div><div>Manuel Luis Aznar </div></span></div></blockquote><div><br></div><div>I suggest to check libvirt logs.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-05-02 7:54 GMT+01:00 Simone Tiraboschi <span dir="ltr"><<a href="mailto:stirabos@redhat.com" target="_blank">stirabos@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Mon, May 1, 2017 at 3:14 PM, Manuel Luis Aznar <span dir="ltr"><<a href="mailto:manuel.luis.aznar@gmail.com" target="_blank">manuel.luis.aznar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello there,<div><br></div><div>I have been looking in the internet using google why my installation of ovirt-hosted-engine is failing.</div><div><br></div><div>I have found this link:</div><div><br></div><div> <a href="https://www.mail-archive.com/users@ovirt.org/msg40864.html" target="_blank">https://www.mail-archive.com/<wbr>users@ovirt.org/msg40864.html</a> (Hosted engine install failed; vdsm upset about broker)</div><div><br></div><div>It seems to be the same error...</div><div><div><br></div><div>So to knarra and Jamie Lawrence my question is:</div><div><br></div><div> Did you manage to discover the problem?? In my instalation I am using nfs and not gluster...</div><div><br></div><div>I have read the error and is the same error "BrokerConnectionError: ...". The ovirt-ha-agent and ovirt-ha-broker did not start when the installation is creating the engine VM...</div></div></div></blockquote><div><br></div></span><div>This is just a false positive: the HA agent and the HA broker are still down so vdsm is complaining but at that point it's absolutely fine by itself since the engine VM still doesn't exists.</div><div>We already have an open bug to reduce the impact of that message.</div><div><br></div><div>The real issue is that for some reason the engine VM could not start on your system.</div><div><div class="m_-8918800194261185148h5"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br></div><div>As I have said before any help would be very appreciated...no matter whom will give it</div><span><div>Thanks for all in advance</div><div>Manuel Luis Aznar</div><div><br></div><div><br></div></span></div></div><div class="m_-8918800194261185148m_2169020602908146062HOEnZb"><div class="m_-8918800194261185148m_2169020602908146062h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-05-01 12:21 GMT+01:00 Manuel Luis Aznar <span dir="ltr"><<a href="mailto:manuel.luis.aznar@gmail.com" target="_blank">manuel.luis.aznar@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Simone and all the comunity,<div><br></div><div>I have been doing the instalation of ovirt hosted engine again and it fails, libvirtd and vdsmd services are failing. They are failing with the following errors:</div><div><br></div><div><br></div><div>libvirt daemon</div><div><br></div><div> libvirtd.service - Virtualization daemon<br></div><div><span><div> Loaded: loaded (/usr/lib/systemd/system/libvi<wbr>rtd.service; enabled; vendor preset: enabled)</div><div> Drop-In: /etc/systemd/system/libvirtd.s<wbr>ervice.d</div><div> ââunlimited-core.conf</div></span><div> Active: active (running) since lun 2017-05-01 11:43:49 WEST; 14min ago</div><span><div> Docs: man:libvirtd(8)</div><div> <a href="http://libvirt.org" target="_blank">http://libvirt.org</a></div></span><div> Main PID: 21993 (libvirtd)</div><div> CGroup: /system.slice/libvirtd.service</div><div> ââ21993 /usr/sbin/libvirtd --listen</div><div><br></div><div>may 01 11:43:49 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> systemd[1]: Starting Virtualization daemon...</div><div>may 01 11:43:49 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> systemd[1]: Started Virtualization daemon.</div><div>may 01 11:47:45 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> libvirtd[21993]: libvirt version: 2.0.0, package: 10.el7_3.5 (CentOS BuildSystem <<a href="http://bugs.centos.org" target="_blank">http://bugs.centos.org</a>>, 2017-03-03-02:09:45, <a href="http://c1bm.rdu2.centos.org" target="_blank">c1bm.rdu2.centos.org</a>)</div><div>may 01 11:47:45 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> libvirtd[21993]: hostname: <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a></div><div>may 01 11:47:45 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> libvirtd[21993]: Falló al conectar con el socket de monitor: No existe el proceso</div><div>may 01 11:47:45 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> libvirtd[21993]: internal error: process exited while connecting to monitor: /dev/random -device virtio-rng-pci,rng=objrng0,id=<wbr>rng0,bus=pci.0,addr=0x7 -msg timestamp=on</div><span><div> Could not access KVM kernel module: Permission denied</div><div> failed to initialize KVM: Permission denied</div></span></div><div><br></div><div>vdsm daemon</div><div><br></div><div><div> vdsmd.service - Virtual Desktop Server Manager</div><div> Loaded: loaded (/usr/lib/systemd/system/vdsmd<wbr>.service; enabled; vendor preset: enabled)</div><div> Active: active (running) since lun 2017-05-01 11:43:51 WEST; 15min ago</div><div> Main PID: 22119 (vdsm)</div><div> CGroup: /system.slice/vdsmd.service</div><div> ââ22119 /usr/bin/python2 /usr/share/vdsm/vdsm</div><div> ââ22612 /usr/libexec/ioprocess --read-pipe-fd 68 --write-pipe-fd 67 --max-threads 10 --max-queued-requests 10</div><div> ââ22630 /usr/libexec/ioprocess --read-pipe-fd 76 --write-pipe-fd 75 --max-threads 10 --max-queued-requests 10</div><div> ââ22887 /usr/libexec/ioprocess --read-pipe-fd 44 --write-pipe-fd 43 --max-threads 10 --max-queued-requests 10</div><div> ââ22893 /usr/libexec/ioprocess --read-pipe-fd 52 --write-pipe-fd 50 --max-threads 10 --max-queued-requests 10</div><div><br></div><div>may 01 11:58:37 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> vdsm[22119]: vdsm ovirt_hosted_engine_ha.lib.bro<wbr>kerlink.BrokerLink ERROR Failed to connect to broker, the number of errors has exceeded the limit (1)</div><div>may 01 11:58:37 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> vdsm[22119]: vdsm root ERROR failed to retrieve Hosted Engine HA info</div><span><div> Traceback (most recent call last):</div><div> File "/usr/lib/python2.7/site-packa<wbr>ges/vdsm/host/api.py", line 231, in _getHaInfo</div><div> stats = instance.get_all_stats()</div><div> File "/usr/lib/python2.7/site-packa<wbr>ges/ovirt_hosted_engine_ha/cli<wbr>ent/client.py", line 102, in get_all_stats</div><div> with broker.connection(self._retrie<wbr>s, self._wait):</div><div> File "/usr/lib64/python2.7/contextl<wbr>ib.py", line 17, in __enter__</div><div> return self.gen.next()</div><div> File "/usr/lib/python2.7/site-packa<wbr>ges/ovirt_hosted_engine_ha/lib<wbr>/brokerlink.py", line 99, in connection</div><div> self.connect(retries, wait)</div><div> File "/usr/lib/python2.7/site-packa<wbr>ges/ovirt_hosted_engine_ha/lib<wbr>/brokerlink.py", line 78, in connect</div><div> raise BrokerConnectionError(error_ms<wbr>g)</div><div> BrokerConnectionError: Failed to connect to broker, the number of errors has exceeded the limit (1)</div></span><div>may 01 11:58:52 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> vdsm[22119]: vdsm ovirt_hosted_engine_ha.lib.bro<wbr>kerlink.BrokerLink ERROR Failed to connect to broker, the number of errors has exceeded the limit (1)</div></div><div><br></div><div>I have been looking to the ovirt mailing list (and also internet looking up in google) but I dont get what is the problem.</div><div><br></div><div>I have attached to the mail the vdsm, ovirt-hosted-engine-setup and the answer of the installation. In the vdsm.log I got the following error:</div><div><br></div><div><div>libvirtError: internal error: process exited while connecting to monitor: /dev/random -device virtio-rng-pci,rng=objrng0,id=<wbr>rng0,bus=pci.0,addr=0x7 -msg timestamp=on</div><span><div>Could not access KVM kernel module: Permission denied</div><div>failed to initialize KVM: Permission denied</div></span></div><div><br></div><div>I have been looking for that error but I dont get anything clear, so I will greatly appreciate the help of somebody...</div><div><br></div><div>The KVM modules are loaded because if I fired up this "lsmod | grep kvm" I get the following:</div><span><div><br></div><div><div>kvm_intel 170181 0 </div><div>kvm 554609 1 kvm_intel</div><div>irqbypass 13503 1 kvm</div></div><div><br></div></span><div>Also the group owner of /dev/kvm is:</div><div><br></div><div><div>crw-rw-rw-+ 1 root kvm 10, 232 may 1 01:26 /dev/kvm</div></div><div><br></div><div>Hope somebody could help</div><span><div>Thanks for all in advance</div></span><span class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375HOEnZb"><font color="#888888"><div>Manuel Luis Aznar</div><div><br></div><div><br></div></font></span></div><div class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375HOEnZb"><div class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-03-15 11:58 GMT+00:00 Manuel Luis Aznar <span dir="ltr"><<a href="mailto:manuel.luis.aznar@gmail.com" target="_blank">manuel.luis.aznar@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello there again,<div><br></div><div>Yes that is correct. I interrupted the setup with Ctrl+C. That was because while I was answering, at the same time, I was looking at this file, and I saw this:</div><span><div><br></div><div><span style="color:rgb(80,0,80);font-size:12.8px">FAILED: conflicting vdsm and libvirt-qemu tls configuration.</span><br style="color:rgb(80,0,80);font-size:12.8px"><span style="color:rgb(80,0,80);font-size:12.8px">vdsm.conf with ssl=True requires the following changes:</span><br style="color:rgb(80,0,80);font-size:12.8px"><span style="color:rgb(80,0,80);font-size:12.8px">libvirtd.conf: listen_tcp=0, auth_tcp="sasl", listen_tls=1</span><br style="color:rgb(80,0,80);font-size:12.8px"><span style="color:rgb(80,0,80);font-size:12.8px">qemu.conf: spice_tls=1.</span><br></div><br></span>So I decided to interrupt the installation, because of the error, edit the files (vdsm.conf and qemu.conf) and then I executed the installation again and it was successful. It seams that the change of the values in that files, in my case, produced a successful instalation.<div><br></div><div>Sorry if my english is hard to understand, now you understand what I did.</div><div><br></div><div>Any question, remark just go ahead</div><div><br></div><div>Thanks,</div><div>Manuel<br><div><br></div><div><br></div></div></div><div class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314HOEnZb"><div class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-03-15 11:22 GMT+00:00 Simone Tiraboschi <span dir="ltr"><<a href="mailto:stirabos@redhat.com" target="_blank">stirabos@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div class="gmail_extra"><br><div class="gmail_quote"><span>On Wed, Mar 15, 2017 at 12:17 PM, Manuel Luis Aznar <span dir="ltr"><<a href="mailto:manuel.luis.aznar@gmail.com" target="_blank">manuel.luis.aznar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello Simone,<div><br></div><div>The quoted lines on your last message are on lines 1238-1245 on the attached log ovirt-hosted-engine-setup file.</div><div><br></div><div>That file is the first hosted-engine setup. But this log file is not the result of a host-engine-setup file. I start with the installation and while I was answering the question I was looking to this log file for errors and when I found this errors I stopped and done this:</div><span class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-"><div><br></div>FAILED: conflicting vdsm and libvirt-qemu tls configuration.<br>vdsm.conf with ssl=True requires the following changes:<br>libvirtd.conf: listen_tcp=0, auth_tcp="sasl", listen_tls=1<br>qemu.conf: spice_tls=1.</span><div><br>Previously to this installation I have done several installations without revising this log file and always getting failed installations.</div><div><br></div><div>Please its important to note that:</div><div><br></div><div> The currently setup which we are talking about was using repo "<span style="font-size:12.8px">ovirt-release41-pre.rpm". After correcting that two files I do the installation and in the end it was completed successfully.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">When I have some time I will try to install again using the realease repo "</span><span style="font-size:12.8px">ovirt-release41.rpm</span><span style="font-size:12.8px">"</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">If you have any explanation, question or remark, please go ahead...</span></div></div></blockquote><div><br></div></span><div>From the attached logs it seams that you voluntary interrupted the setup from keyboard here:<div><div>2017-03-07 11:23:17 DEBUG otopi.plugins.otopi.dialog.hum<wbr>an dialog.__logString:204 DIALOG:SEND iptables was detected on your computer, do you wish setup to configure it? (Yes, No)[Yes]: </div><div>2017-03-07 12:06:15 DEBUG otopi.context context._executeMethod:142 method exception</div><span><div>Traceback (most recent call last):</div></span><div> File "/usr/lib/python2.7/site-packa<wbr>ges/otopi/context.py", line 132, in _executeMethod</div><div> method['method']()</div><div> File "/usr/share/ovirt-hosted-engin<wbr>e-setup/scripts/../plugins/gr-<wbr>he-setup/network/firewall_mana<wbr>ger.py", line 157, in _customization</div><div> default=_('Yes'),</div><div> File "/usr/share/otopi/plugins/otop<wbr>i/dialog/human.py", line 177, in queryString</div><div> value = self._readline(hidden=hidden)</div><div> File "/usr/lib/python2.7/site-packa<wbr>ges/otopi/dialog.py", line 246, in _readline</div><div> value = self.__input.readline()</div><div> File "/usr/lib/python2.7/site-packa<wbr>ges/otopi/main.py", line 53, in _signal</div><div> raise RuntimeError("SIG%s" % signum)</div><div>RuntimeError: SIG2</div></div></div><div><div class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163h5"><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div><span style="font-size:12.8px">I will report back.</span></div><span class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-"><div><span style="font-size:12.8px">Thanks for all in advance</span></div></span><span class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-HOEnZb"><font color="#888888"><div><span style="font-size:12.8px">Manuel</span></div></font></span></div><div class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-HOEnZb"><div class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-03-13 17:29 GMT+00:00 Simone Tiraboschi <span dir="ltr"><<a href="mailto:stirabos@redhat.com" target="_blank">stirabos@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Mon, Mar 13, 2017 at 4:08 PM, Manuel Luis Aznar <span dir="ltr"><<a href="mailto:manuel.luis.aznar@gmail.com" target="_blank">manuel.luis.aznar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello to all there again,<div><br></div><div>I was having some troubles while installing ovirt Hosted Engine, I took some look at the hosted engine setup logs while I was running the hosted-engine --deploy and I found the following in the ovirt hosted engine setup logs:</div><div><br></div><div><div>lvm requires configuration</div><div>libvirt is not configured for vdsm yet</div><div>FAILED: conflicting vdsm and libvirt-qemu tls configuration.</div><div>vdsm.conf with ssl=True requires the following changes:</div><div>libvirtd.conf: listen_tcp=0, auth_tcp="sasl", listen_tls=1</div><div>qemu.conf: spice_tls=1.</div></div><div><br></div></div></blockquote><div><br></div></span><div>hosted-engine setup is already running vdsm-tool configure --force so it should configure libvirt and qemu for you, not sure why it failed.</div><div>Could you please attach the logs from the failed hosted-engine-setup run?</div><div><div class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-m_2831554741666845793h5"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div>When I saw this I stopped the setup and edited this two files (vdsm.conf and qemu.conf) set the stated configurations and run the deploy again. All was fine and I dont have any trouble the installation finished successfully. This was using ovirt-release41-pre.rpm repo.</div><div><br></div><div>I will be trying the same installation with ovirt-release41.rpm (when I have time) and I will report what happened.</div><div><br></div><div>Thanks for all</div><div>Manuel Luis Aznar</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-06 1:31 GMT+00:00 Manuel Luis Aznar <span dir="ltr"><<a href="mailto:manuel.luis.aznar@gmail.com" target="_blank">manuel.luis.aznar@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hey there,<div><br></div><div>I have been loking around, of course as of now the following I am going to say I suppose is not anything new to you:</div><div><br></div><div>This is the status of libvirtd:</div><div><br></div><div><div>â libvirtd.service - Virtualization daemon</div><span><div> Loaded: loaded (/usr/lib/systemd/system/libvi<wbr>rtd.service; enabled; vendor preset: enabled)</div><div> Drop-In: /etc/systemd/system/libvirtd.s<wbr>ervice.d</div><div> ââunlimited-core.conf</div></span><div> Active: active (running) since lun 2017-03-06 01:25:05 WET; 1min 37s ago</div><span><div> Docs: man:libvirtd(8)</div><div> <a href="http://libvirt.org" target="_blank">http://libvirt.org</a></div></span><div> Main PID: 24350 (libvirtd)</div><div> CGroup: /system.slice/libvirtd.service</div><div> ââ24350 /usr/sbin/libvirtd --listen</div><div><br></div><div>mar 06 01:25:05 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> systemd[1]: Starting Virtualization daemon...</div><div>mar 06 01:25:05 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> systemd[1]: Started Virtualization daemon.</div></div><div><br></div><div><br></div><div>After looking at the state I fire up the VM engine with the command "hosted-engine --vm-start" and I got the following:</div><div><br></div><div><br></div><div><div>VM exists and is down, destroying it</div><div>Machine destroyed</div><div><br></div><div>ed786811-0321-431e-be4b-2d0376<wbr>4c1b02</div><div> Status = WaitForLaunch</div><div> nicModel = rtl8139,pv</div><div> statusTime = <a href="tel:(437)%20410-0040" value="+14374100040" target="_blank">4374100040</a></div><div> emulatedMachine = pc</div><div> pid = 0</div><div> vmName = HostedEngine</div><div> devices = [{'index': '2', 'iface': 'ide', 'specParams': {}, 'readonly': 'true', 'deviceId': '506df4eb-e783-4451-a8a6-993fa<wbr>4dbb381', 'address': {'bus': '1', 'controller': '0', 'type': 'drive', 'target': '0', 'unit': '0'}, 'device': 'cdrom', 'shared': 'false', 'path': '', 'type': 'disk'}, {'index': '0', 'iface': 'virtio', 'format': 'raw', 'bootOrder': '1', 'poolID': '00000000-0000-0000-0000-00000<wbr>0000000', 'volumeID': '2bc39472-1a4b-4c7d-8ef9-12121<wbr>82ad802', 'imageID': '08288fcf-6b12-4bd1-84d3-25999<wbr>2e7aa6d', 'specParams': {}, 'readonly': 'false', 'domainID': 'f44afe8d-56f9-4e1e-beee-4daa5<wbr>48dbad8', 'optional': 'false', 'deviceId': '08288fcf-6b12-4bd1-84d3-25999<wbr>2e7aa6d', 'address': {'slot': '0x06', 'bus': '0x00', 'domain': '0x0000', 'type': 'pci', 'function': '0x0'}, 'device': 'disk', 'shared': 'exclusive', 'propagateErrors': 'off', 'type': 'disk'}, {'device': 'scsi', 'model': 'virtio-scsi', 'type': 'controller'}, {'nicModel': 'pv', 'macAddr': '00:16:3e:65:a6:4e', 'linkActive': 'true', 'network': 'ovirtmgmt', 'specParams': {}, 'deviceId': '84b82c6c-bcca-4983-82d5-8d1e3<wbr>ab3811a', 'address': {'slot': '0x03', 'bus': '0x00', 'domain': '0x0000', 'type': 'pci', 'function': '0x0'}, 'device': 'bridge', 'type': 'interface'}, {'device': 'console', 'specParams': {}, 'type': 'console', 'deviceId': '6236af73-8dab-4d14-b950-fb4ad<wbr>01d4420', 'alias': 'console0'}, {'device': 'vga', 'alias': 'video0', 'type': 'video'}, {'device': 'virtio', 'specParams': {'source': 'random'}, 'model': 'virtio', 'type': 'rng'}]</div><div> guestDiskMapping = {}</div><div> vmType = kvm</div><div> clientIp = </div><div> displaySecurePort = -1</div><div> memSize = 4096</div><div> displayPort = -1</div><div> cpuType = Broadwell</div><div> spiceSecureChannels = smain,sdisplay,sinputs,scursor<wbr>,splayback,srecord,ssmartcard,<wbr>susbredir</div><div> smp = 2</div><div> displayIp = 0</div><div> display = vnc</div><div> maxVCpus = 6</div></div><div><br></div><div><br></div><div>After that if I look again at the status of libvirtd I obtain:</div><div><br></div><div><br></div><div><div>â libvirtd.service - Virtualization daemon</div><span><div> Loaded: loaded (/usr/lib/systemd/system/libvi<wbr>rtd.service; enabled; vendor preset: enabled)</div><div> Drop-In: /etc/systemd/system/libvirtd.s<wbr>ervice.d</div><div> ââunlimited-core.conf</div></span><div> Active: active (running) since lun 2017-03-06 01:25:05 WET; 5min ago</div><span><div> Docs: man:libvirtd(8)</div><div> <a href="http://libvirt.org" target="_blank">http://libvirt.org</a></div></span><div> Main PID: 24350 (libvirtd)</div><div> CGroup: /system.slice/libvirtd.service</div><div> ââ24350 /usr/sbin/libvirtd --listen</div><div><br></div><div>mar 06 01:25:05 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> systemd[1]: Starting Virtualization daemon...</div><div>mar 06 01:25:05 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> systemd[1]: Started Virtualization daemon.</div><div>mar 06 01:29:39 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> libvirtd[24350]: libvirt version: 2.0.0, package: 10.el7_3.5 (CentOS BuildSystem <<a href="http://bugs.centos.org" target="_blank">http://bugs.centos.org</a>>, 2017-03-03-02:09:45, <a href="http://c1bm.rdu2.centos.org" target="_blank">c1bm.rdu2.centos.org</a>)</div><div>mar 06 01:29:39 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> libvirtd[24350]: hostname: <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a></div><div>mar 06 01:29:39 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> libvirtd[24350]: Falló al conectar con el socket de monitor: No existe el proceso</div><div>mar 06 01:29:39 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> libvirtd[24350]: internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied</div><span class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-m_2831554741666845793m_-6628641069456963202gmail-"><span><div> failed to initialize KVM: Permission denied</div></span></span></div><div><br></div><div><br></div><div>So the libvirtd is the problem, as i said this is nothing new to you of course...</div><div><br></div><div>Thanks again for any help</div><span class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-m_2831554741666845793m_-6628641069456963202gmail-m_8000025759679641052HOEnZb"><font color="#888888"><div>Manuel</div><div><br></div></font></span></div><div class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-m_2831554741666845793m_-6628641069456963202gmail-m_8000025759679641052HOEnZb"><div class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-m_2831554741666845793m_-6628641069456963202gmail-m_8000025759679641052h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-03-05 18:51 GMT+00:00 Manuel Luis Aznar <span dir="ltr"><<a href="mailto:manuel.luis.aznar@gmail.com" target="_blank">manuel.luis.aznar@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hey there again,</div><span class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-m_2831554741666845793m_-6628641069456963202gmail-"><span><div><br></div><div><br></div><div>Can you check if you have KVM modules loaded?</div><div><br></div></span></span><div> In order to check that I fire up the following command: "lsmod | grep kvm"</div><div><br></div><div> Result was:</div><div><br></div><div> kvm_intel 170181 0 </div><div> kvm 554609 1 kvm_intel</div><div> irqbypass 13503 1 kvm</div><div><br></div><div><br></div><div>Also check group owner for "/dev/kvm". I fire this: "ls -la /dev/kvm". The result was:</div><div><br></div><div> crw-rw-rw-+ 1 root kvm 10, 232 mar 5 03:35 /dev/kvm <br></div><div><br></div><div><br></div><div>Also I check if there were some remain packages pending to install for kvm and qemu and I got:</div><div><br></div><div> yum install \*kvm\*</div><div><br></div><div>The result is, that the system need to install the following:</div><div><br></div><div><div>Instalando:</div><div> centos-release-qemu-ev noarch 1.0-1.el7 extras 11 k</div><div> qemu-guest-agent x86_64 10:2.5.0-3.el7 base 133 k</div><div> qemu-kvm-ev-debuginfo x86_64 10:2.6.0-28.el7_3.3.1 ovirt-4.0 12 M</div><div> vdsm-hook-faqemu noarch 4.18.21-1.el7.centos ovirt-4.0 15 k</div><div> vdsm-hook-qemucmdline noarch 4.18.21-1.el7.centos ovirt-4.0 11 k</div><div>Instalando para las dependencias:</div><div> centos-release-virt-common noarch 1-1.el7.centos extras 4.5 k</div></div><div><br></div><div><br></div><div>Checking libvirtd service status I got:</div><div><br></div><div><div> libvirtd.service - Virtualization daemon</div><div> Loaded: loaded (/usr/lib/systemd/system/libvi<wbr>rtd.service; enabled; vendor preset: enabled)</div><div> Drop-In: /etc/systemd/system/libvirtd.s<wbr>ervice.d</div><div> ââunlimited-core.conf</div><div> Active: active (running) since dom 2017-03-05 15:56:11 WET; 2h 51min ago</div><div> Docs: man:libvirtd(8)</div><div> <a href="http://libvirt.org" target="_blank">http://libvirt.org</a></div><div> Main PID: 19415 (libvirtd)</div><div> CGroup: /system.slice/libvirtd.service</div><div> 19415 /usr/sbin/libvirtd --listen</div><div><br></div><div>mar 05 15:56:10 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> systemd[1]: Starting Virtualization daemon...</div><div>mar 05 15:56:11 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> systemd[1]: Started Virtualization daemon.</div><div>mar 05 16:00:04 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> libvirtd[19415]: libvirt version: 2.0.0, package: 10.el7_3.5 (CentOS BuildSystem <<a href="http://bugs.centos.org" target="_blank">http://bugs.centos.org</a>>, 2017-03-03-02:09:45, <a href="http://c1bm.rdu2.centos.org" target="_blank">c1bm.rdu2.centos.org</a>)</div><div>mar 05 16:00:04 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> libvirtd[19415]: hostname: <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a></div><div>mar 05 16:00:04 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> libvirtd[19415]: Failed to connect to the socket monitor: process does not exits</div><div> (Fallo al conectar con el socket de monitor: No existe el proceso)</div><div>mar 05 16:00:04 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> libvirtd[19415]: internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied</div><span class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-m_2831554741666845793m_-6628641069456963202gmail-"><span><div> failed to initialize KVM: Permission denied</div></span></span></div><div><br></div><span><div><br></div><span class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-m_2831554741666845793m_-6628641069456963202gmail-"><div>Thanks for all in advance</div></span></span><div>I will be waiting for you. Any help appreciated</div><span class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-m_2831554741666845793m_-6628641069456963202gmail-m_8000025759679641052m_-5675042159585824398HOEnZb"><font color="#888888"><div>Manuel</div></font></span></div><div><div class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-m_2831554741666845793m_-6628641069456963202gmail-h5"><div class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-m_2831554741666845793m_-6628641069456963202gmail-m_8000025759679641052m_-5675042159585824398HOEnZb"><div class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-m_2831554741666845793m_-6628641069456963202gmail-m_8000025759679641052m_-5675042159585824398h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-03-05 17:33 GMT+00:00 Artyom Lukianov <span dir="ltr"><<a href="mailto:alukiano@redhat.com" target="_blank">alukiano@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I found this one under the vdsm log:<div><div>libvirtError: internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied</div><div>failed to initialize KVM: Permission denied</div><div>Thread-70::INFO::2017-03-05 16:00:04,325::vm::1330::virt.v<wbr>m::(setDownStatus) vmId=`ed786811-0321-431e-be4b-<wbr>2d03764c1b02`::Changed state to Down: internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied</div><div>failed to initialize KVM: Permission denied (code=1)</div><div>Thread-70::INFO::2017-03-05 16:00:04,325::guestagent::430:<wbr>:virt.vm::(stop) vmId=`ed786811-0321-431e-be4b-<wbr>2d03764c1b02`::Stopping connection</div><div>Thread-70::DEBUG::2017-03-05 16:00:04,325::vmchannels::238:<wbr>:vds::(unregister) Delete fileno 52 from listener.</div><div>Thread-70::DEBUG::2017-03-05 16:00:04,325::vmchannels::66::<wbr>vds::(_unregister_fd) Failed to unregister FD from epoll (ENOENT): 52</div><div>Thread-70::DEBUG::2017-03-05 16:00:04,326::__init__::209::j<wbr>sonrpc.Notification::(emit) Sending event {"params": {"ed786811-0321-431e-be4b-2d03<wbr>764c1b02": {"status": "Down", "exitReason": 1, "exitMessage": "internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied\nfailed to initialize KVM: Permission denied", "exitCode": 1}, "notify_time": 4339924730}, "jsonrpc": "2.0", "method": "|virt|VM_status|ed786811-0321<wbr>-431e-be4b-2d03764c1b02"}</div></div><div><br></div><div>Can you check if you have KVM modules loaded? Also, check group owner for "<span style="background-color:rgb(252,253,254);color:rgb(51,51,51);font-family:sans-serif;font-size:13px">/dev/kvm".</span></div><div><span style="background-color:rgb(252,253,254);color:rgb(51,51,51);font-family:sans-serif;font-size:13px">Best Regards</span></div><div><span style="background-color:rgb(252,253,254);color:rgb(51,51,51);font-family:sans-serif;font-size:13px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote"><span>On Sat, Mar 4, 2017 at 4:24 PM, Manuel Luis Aznar <span dir="ltr"><<a href="mailto:manuel.luis.aznar@gmail.com" target="_blank">manuel.luis.aznar@gmail.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-m_2831554741666845793m_-6628641069456963202gmail-m_8000025759679641052m_-5675042159585824398m_9184098567430300640h5"><div dir="ltr">Hello there again,<div><br></div><div>The error on the first email was using the repo ovirt-release41.rpm (<a href="http://resources.ovirt.org/pub/yum-repo/ovirt-release41.rpm" target="_blank">http://resources.ovirt.org/pu<wbr>b/yum-repo/ovirt-release41.rpm</a><wbr>), so as I were getting the same error again and again I am currently trying with ovirt-release41-snapshot.rpm (<a href="http://resources.ovirt.org/pub/yum-repo/ovirt-release41-snapshot.rpm" target="_blank">http://resources.ovirt.org/pu<wbr>b/yum-repo/ovirt-release41-sna<wbr>pshot.rpm</a>) and the result is nearly the same.</div><div><br></div><div>After creating the VM on the installation I got the same error with the command "systemctl status vdsmd":</div><div><br></div><div><div>mar 04 14:10:19 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> vdsm[20443]: vdsm root ERROR failed to retrieve Hosted Engine HA info</div><span><div><br></div><div> Traceback (most recent call last):</div><div> File "/usr/lib/python2.7/site-packa<wbr>ges/vdsm/host/api.py", line 231, in _getHaInfo</div><div> stats = instance.get_all_stats()</div><div> File "/usr/lib/python2.7/site-packa<wbr>ges/ovirt_hosted_engine_ha/cli<wbr>ent/client.py", line 102, in get_all_stats</div><div> with broker.connection(self._retrie<wbr>s, self._wait):</div><div> File "/usr/lib64/python2.7/contextl<wbr>ib.py", line 17, in __enter__</div><div> return self.gen.next()</div><div> File "/usr/lib/python2.7/site-packa<wbr>ges/ovirt_hosted_engine_ha/lib<wbr>/brokerlink.py", line 99, in connection</div><div> self.connect(retries, wait)</div><div> File "/usr/lib/python2.7/site-packa<wbr>ges/ovirt_hosted_engine_ha/lib<wbr>/brokerlink.py", line 78, in connect</div><div> raise BrokerConnectionError(error_ms<wbr>g)</div><div> BrokerConnectionError: Failed to connect to broker, the number of errors has exceeded the limit (1)</div><div><br></div></span><div>mar 04 14:10:34 <a href="http://host1.bajada.es" target="_blank">host1.bajada.es</a> vdsm[20443]: vdsm ovirt_hosted_engine_ha.lib.bro<wbr>kerlink.BrokerLink ERROR Failed to connect to broker, the number of errors has exceeded the limit (1)</div></div><div><br></div><div>I have noticed that the ovirt-ha-agent and ovirt-ha-broker services was not running. I guess if this have something to do with the error in vsmd service log.</div><div><br></div><div>But in this case the ovirt-hosted-engine-installati<wbr>on prints the vnc connection and I can connect to the engine VM.</div><span><div><br></div><div>Thanks for all in advance</div></span><div>Any help would be appreciated</div><span class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-m_2831554741666845793m_-6628641069456963202gmail-m_8000025759679641052m_-5675042159585824398m_9184098567430300640m_8472367923753494193HOEnZb"><font color="#888888"><div>Manuel Luis Aznar</div></font></span></div><div class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-m_2831554741666845793m_-6628641069456963202gmail-m_8000025759679641052m_-5675042159585824398m_9184098567430300640m_8472367923753494193HOEnZb"><div class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-m_2831554741666845793m_-6628641069456963202gmail-m_8000025759679641052m_-5675042159585824398m_9184098567430300640m_8472367923753494193h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-03-03 21:48 GMT+00:00 Manuel Luis Aznar <span dir="ltr"><<a href="mailto:manuel.luis.aznar@gmail.com" target="_blank">manuel.luis.aznar@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello there,<div><br></div><div>I am having some trouble when deploying an oVirt 4.1 hosted engine installation.</div><div><br></div><div>When I m just to end the installation and the hosted engine setup script is about to start the Vm engine (appliance) it fails saying "The VM is not powring up".</div><div><br></div><div>If I double check the service vdsmd i get this error all the time:</div><div><br></div><div><div>vdsm root ERROR failed to retrieve Hosted Engine HA info</div><div> Traceback (most recent call last):</div><div> File "/usr/lib/python2.7/site-packa<wbr>ges/vdsm/host/api.py", line 231, in _getHaInfo</div><div> stats = instance.get_all_stats()</div><div> File "/usr/lib/python2.7/site-packa<wbr>ges/ovirt_hosted_engine_ha/cli<wbr>ent/client.py", line 102, in get_all_stats</div><div> with broker.connection(self._retrie<wbr>s, self._wait):</div><div> File "/usr/lib64/python2.7/contextl<wbr>ib.py", line 17, in __enter__</div><div> return self.gen.next()</div><div> File "/usr/lib/python2.7/site-packa<wbr>ges/ovirt_hosted_engine_ha/lib<wbr>/brokerlink.py", line 99, in connection</div><div> self.connect(retries, wait)</div><div> File "/usr/lib/python2.7/site-packa<wbr>ges/ovirt_hosted_engine_ha/lib<wbr>/brokerlink.py", line 78, in connect</div><div> raise BrokerConnectionError(error_ms<wbr>g)</div><div>BrokerConnectionError: Failed to connect to broker, the number of errors has exceeded the limit (1)</div></div><div><br></div><div>Did anyone have experimented the same problem?¿? Any hint on How to solved it?¿? I have tried several times with clean installations and always getting the same...</div><div><br></div><div>The host where I am trying to do the installation have CentOS 7...</div><div><br></div><div><br></div><div>Thanks for all in advance</div><div>Will be waiting for any hint to see what I am doing wrong...</div><span class="m_-8918800194261185148m_2169020602908146062m_-3801761828377257375m_-2240208827085158314m_-2862391051596645163m_-3524520767794149181gmail-m_2831554741666845793m_-6628641069456963202gmail-m_8000025759679641052m_-5675042159585824398m_9184098567430300640m_8472367923753494193m_7321373239852252032HOEnZb"><font color="#888888"><div>Manuel Luis Aznar</div></font></span></div>
</blockquote></div><br></div>
</div></div><br></div></div><span>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
<br></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>