On Tue, Jan 5, 2016 at 9:00 AM, Yedidyah Bar David <didi(a)redhat.com> wrote:
On Tue, Jan 5, 2016 at 12:17 AM, Yaniv Kaul <ykaul(a)redhat.com>
wrote:
> On Mon, Jan 4, 2016 at 10:22 PM, Charles Tassell <ctassell(a)gmail.com> wrote:
>>
>> Hi Budur,
>>
>> Try running the command "kvm-ok" I'm not sure what package
it's from,
>> but it will tell you if your system supports the CPU virtualization commands
>> required to run KVM. If kvm-ok isn't installed, you can try running
"egrep
>> '(vmx|svm)' /proc/cpuinfo" vmx means you have Intel virtualization
support,
>> while svm is the AMD implementation. IE, on my Intel i5 I get a bunch of
>> lines like this: (**'s added for emphasis)
>
>
> This will only tell you if the CPU supports virtualization - it may still be
> disabled by the BIOS.
> Looking at the KVM module is the best approach:
> [root@reserved-0-250 lago]# lsmod |grep kvm
> kvm_intel 167936 20
> kvm 499712 1 kvm_intel
>
> Y.
You might also want to see what our code checks, see e.g. [1],
which is part of ovirt-host-deploy and is used also by
ovirt-hosted-engine-setup.
If you want to use it directly, you can do something like:
# yum install ovirt-host-deploy
# python -c 'from ovirt_host_deploy import hardware; v =
hardware.Virtualization(); print "OK" if
v.detect()==v.DETECT_RESULT_SUPPORTED else "Not OK"'
Sorry, this should have been all on one line but wrapped by my
mail client. Let's try again:
# python -c '\
from ovirt_host_deploy import hardware; \
v = hardware.Virtualization(); \
print( \
"OK" if \
v.detect()==v.DETECT_RESULT_SUPPORTED \
else "Not OK" \
)'
[1]
https://gerrit.ovirt.org/gitweb?p=ovirt-host-deploy.git;a=blob;f=src/ovir...
>
>>
>>
>> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
>> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
>> rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology
>> nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl **vmx**
>> smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt
>> tsc_deadline_timer aes xsave avx lahf_lm ida arat epb xsaveopt pln pts
>> dtherm tpr_shadow vnmi flexpriority ept vpid
>>
>>
>> On 16-01-04 02:47 PM, users-request(a)ovirt.org wrote:
>>>
>>> 1. Re: HA cluster (Budur Nagaraju)
>>>
>>>
>>> ----------------------------------------------------------------------
>>>
>>> Message: 1
>>> Date: Tue, 5 Jan 2016 00:17:41 +0530
>>> From: Budur Nagaraju <nbudoor(a)gmail.com>
>>> To: Simone Tiraboschi <stirabos(a)redhat.com>
>>> Cc: users <users(a)ovirt.org>
>>> Subject: Re: [ovirt-users] HA cluster
>>> Message-ID:
>>>
>>> <CAHNF9Q9=d8FYLnF3NN6=vSMvKHoYopn94V72aysDeytjVq7Xmg(a)mail.gmail.com>
>>> Content-Type: text/plain; charset="utf-8"
>>>
>>> I get the below out put ,
>>>
>>> [root@he ~]# lsmod |grep kvm
>>> kvm_intel 55624 0
>>> kvm 345460 1 kvm_intel
>>>
>>>
>>> On Tue, Jan 5, 2016 at 12:06 AM, Budur Nagaraju <nbudoor(a)gmail.com>
>>> wrote:
>>>
>>>> Is there any command to check KVM is available or not ?
>>>>
>>>> Below is the output when I run the rpm command.
>>>>
>>>> [root@he /]# rpm -qa |grep kvm
>>>> qemu-kvm-rhev-0.12.1.2-2.479.el6_7.2.x86_64
>>>>
>>>>
>>
>> _______________________________________________
>> Users mailing list
>> Users(a)ovirt.org
>>
http://lists.ovirt.org/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users(a)ovirt.org
>
http://lists.ovirt.org/mailman/listinfo/users
>
--
Didi
--
Didi