[ovirt-users] Deploying selfhosted engine

Maton, Brett matonb at ltresources.co.uk
Wed Sep 14 09:56:50 UTC 2016


Ah ok, the VM I'm running hosted-engine --deploy on indeed doesn;t have the
vmx flag.

( the previous result was from the physical host running the VM ).

I've had a quick look through the options, but can't see where I could
enable vmx or change the settings for the VM itself..


On 14 September 2016 at 10:50, Simone Tiraboschi <stirabos at redhat.com>
wrote:

>
>
> On Wed, Sep 14, 2016 at 11:40 AM, Simone Tiraboschi <stirabos at redhat.com>
> wrote:
>
>>
>>
>> On Wed, Sep 14, 2016 at 11:39 AM, Maton, Brett <matonb at ltresources.co.uk>
>> wrote:
>>
>>> The vmx cpu flag is present, is that what you mean ?
>>>
>>
>> Yes, let me double check VDSM logs.
>>
>>
> The issue is indeed here:
> Thread-89::ERROR::2016-09-13 19:45:58,188::vm::765::virt.vm::(_startUnderlyingVm)
> vmId=`1ed592d3-2b69-4901-9ff6-fe21d1dff8c5`::The vm start process failed
> Traceback (most recent call last):
>   File "/usr/share/vdsm/virt/vm.py", line 706, in _startUnderlyingVm
>     self._run()
>   File "/usr/share/vdsm/virt/vm.py", line 1996, in _run
>     self._connection.createXML(domxml, flags),
>   File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", line
> 123, in wrapper
>     ret = f(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 916, in
> wrapper
>     return func(inst, *args, **kwargs)
>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3611, in
> createXML
>     if ret is None:raise libvirtError('virDomainCreateXML() failed',
> conn=self)
> libvirtError: invalid argument: could not find capabilities for
> arch=x86_64 domaintype=kvm
> Thread-89::INFO::2016-09-13 19:45:58,192::vm::1308::virt.vm::(setDownStatus)
> vmId=`1ed592d3-2b69-4901-9ff6-fe21d1dff8c5`::Changed state to Down:
> invalid argument: could not find capabilities for arch=x86_64
> domaintype=kvm  (code=1)
>
> And VDSM returns just
> 'cpuFlags': 'fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,
> cmov,pat,pse36,clflush,mmx,fxsr,sse,sse2,syscall,nx,
> rdtscp,lm,constant_tsc,rep_good,nopl,eagerfpu,pni,
> pclmulqdq,ssse3,fma,cx16,pcid,sse4_1,sse4_2,x2apic,movbe,
> popcnt,tsc_deadline_timer,aes,xsave,avx,f16c,rdrand,
> hypervisor,lahf_lm,fsgsbase,bmi1,avx2,smep,bmi2,erms,
> invpcid,xsaveopt,model_Haswell-noTSX,model_Nehalem,
> model_Conroe,model_Penryn,model_IvyBridge,model_
> Westmere,model_SandyBridge'
>
> without vmx!
>
>
>
>
>>
>>
>>>
>>> # grep flags /proc/cpuinfo | grep -c ' vmx '
>>> 48
>>>
>>> Trying to avoid rebooting the server if possible...
>>>
>>> On 14 September 2016 at 10:16, Simone Tiraboschi <stirabos at redhat.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Wed, Sep 14, 2016 at 11:05 AM, Maton, Brett <
>>>> matonb at ltresources.co.uk> wrote:
>>>>
>>>>> Oops :)
>>>>>
>>>>> hosted setup log attached.
>>>>>
>>>>
>>>> Your issue is probably here:
>>>> 2016-09-13 19:41:52 DEBUG otopi.ovirt_host_deploy.hardware
>>>> hardware.detect:210 Cannot detect virualization
>>>> Traceback (most recent call last):
>>>>   File "/usr/lib/python2.7/site-packages/ovirt_host_deploy/hardware.py",
>>>> line 199, in detect
>>>>     if self._isVirtualizationEnabled():
>>>>   File "/usr/lib/python2.7/site-packages/ovirt_host_deploy/hardware.py",
>>>> line 175, in _isVirtualizationEnabled
>>>>     bios_ok = self._vmx_enabled_by_bios()
>>>>   File "/usr/lib/python2.7/site-packages/ovirt_host_deploy/hardware.py",
>>>> line 134, in _vmx_enabled_by_bios
>>>>     self._prdmsr(0, MSR_IA32_FEATURE_CONTROL) & (
>>>>   File "/usr/lib/python2.7/site-packages/ovirt_host_deploy/hardware.py",
>>>> line 121, in _prdmsr
>>>>     ret = struct.unpack('L', f.read(8))[0]
>>>> IOError: [Errno 5] Input/output error
>>>> 2016-09-13 19:41:52 WARNING otopi.plugins.gr_he_setup.vdsmd.cpu
>>>> cpu._setup:156 Cannot detect if hardware supports virtualization
>>>>
>>>> Can you please check if vmx is enabled in the bios of your host?
>>>> Otherwise vdsm/libvrit will refuse to start the VM.
>>>>
>>>>
>>>>
>>>>>
>>>>> On 14 September 2016 at 09:59, Simone Tiraboschi <stirabos at redhat.com>
>>>>> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Sep 14, 2016 at 10:46 AM, Maton, Brett <
>>>>>> matonb at ltresources.co.uk> wrote:
>>>>>>
>>>>>>> Log attached as request
>>>>>>>
>>>>>>>
>>>>>> Sorry, I was asking for hosted-engine-setup logs; you can find them
>>>>>> under /var/log/ovirt-hosted-engine-setup/
>>>>>>
>>>>>>
>>>>>>> On 14 September 2016 at 08:48, Simone Tiraboschi <
>>>>>>> stirabos at redhat.com> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Sep 14, 2016 at 8:19 AM, Maton, Brett <
>>>>>>>> matonb at ltresources.co.uk> wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> I'm having trouble deploying selfhosted engine following this
>>>>>>>>> guide http://www.ovirt.org/develop/developer-guide/engine/migrate-
>>>>>>>>> to-hosted-engine/
>>>>>>>>>
>>>>>>>>> It gets close to deploying the vm, but fails with
>>>>>>>>>
>>>>>>>>> 2016-09-13 19:46:04 ERROR otopi.plugins.gr_he_common.core.misc
>>>>>>>>> misc._terminate:180 Hosted Engine deployment failed: this system is not
>>>>>>>>> reliable, please check the issue,fix and redeploy
>>>>>>>>>
>>>>>>>>
>>>>>>>> can you please attach the whole log to let us check where it's
>>>>>>>> failing?
>>>>>>>>
>>>>>>>>
>>>>>>>>>
>>>>>>>>> For storage I chose a random NFS share on a remote host that was
>>>>>>>>> empty, I did notice that something kept removing 'nameserver' entries from
>>>>>>>>> resolv.conf
>>>>>>>>>
>>>>>>>>> vdsm log show issues connecting to the broker,
>>>>>>>>>
>>>>>>>>
>>>>>>>> ovirt-hosted-engine-setup will enable and start the broker if and
>>>>>>>> only if the deployment went fine; that errors at deploy time are harmless
>>>>>>>> since the broker is really down.
>>>>>>>>
>>>>>>>>
>>>>>>>>>
>>>>>>>>> periodic/0::ERROR::2016-09-13 19:49:49,704::brokerlink::75::
>>>>>>>>> ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(connect)
>>>>>>>>> Failed to connect to broker, the number of errors has exceeded the limit (1)
>>>>>>>>> periodic/0::ERROR::2016-09-13 19:49:49,704::api::253::root::(_getHaInfo)
>>>>>>>>> failed to retrieve Hosted Engine HA info
>>>>>>>>> periodic/1::WARNING::2016-09-13 19:49:49,748::periodic::269::v
>>>>>>>>> irt.periodic.VmDispatcher::(__call__) could not run <class
>>>>>>>>> 'vdsm.virt.periodic.DriveWatermarkMonitor'> on
>>>>>>>>> [u'1ed592d3-2b69-4901-9ff6-fe21d1dff8c5']
>>>>>>>>> periodic/2::WARNING::2016-09-13 19:49:51,749::periodic::269::v
>>>>>>>>> irt.periodic.VmDispatcher::(__call__) could not run <class
>>>>>>>>> 'vdsm.virt.periodic.DriveWatermarkMonitor'> on
>>>>>>>>> [u'1ed592d3-2b69-4901-9ff6-fe21d1dff8c5']
>>>>>>>>> periodic/3::WARNING::2016-09-13 19:49:53,749::periodic::269::v
>>>>>>>>> irt.periodic.VmDispatcher::(__call__) could not run <class
>>>>>>>>> 'vdsm.virt.periodic.DriveWatermarkMonitor'> on
>>>>>>>>> [u'1ed592d3-2b69-4901-9ff6-fe21d1dff8c5']
>>>>>>>>> periodic/0::WARNING::2016-09-13 19:49:55,750::periodic::269::v
>>>>>>>>> irt.periodic.VmDispatcher::(__call__) could not run <class
>>>>>>>>> 'vdsm.virt.periodic.DriveWatermarkMonitor'> on
>>>>>>>>> [u'1ed592d3-2b69-4901-9ff6-fe21d1dff8c5']
>>>>>>>>> periodic/1::WARNING::2016-09-13 19:49:57,750::periodic::269::v
>>>>>>>>> irt.periodic.VmDispatcher::(__call__) could not run <class
>>>>>>>>> 'vdsm.virt.periodic.DriveWatermarkMonitor'> on
>>>>>>>>> [u'1ed592d3-2b69-4901-9ff6-fe21d1dff8c5']
>>>>>>>>> periodic/2::WARNING::2016-09-13 19:49:59,751::periodic::269::v
>>>>>>>>> irt.periodic.VmDispatcher::(__call__) could not run <class
>>>>>>>>> 'vdsm.virt.periodic.DriveWatermarkMonitor'> on
>>>>>>>>> [u'1ed592d3-2b69-4901-9ff6-fe21d1dff8c5']
>>>>>>>>>
>>>>>>>>> What should I check next ?
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Users mailing list
>>>>>>>>> Users at ovirt.org
>>>>>>>>> http://lists.ovirt.org/mailman/listinfo/users
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160914/8046b368/attachment-0001.html>


More information about the Users mailing list