首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

linux 查看cpu是不是支持虚拟化

2012-08-08 
linux 查看cpu是否支持虚拟化一、Windows平台:使用cpu-Z即可查看。二、Linux平台:在终端执行#cat /proc/cpuin

linux 查看cpu是否支持虚拟化

一、Windows平台:
使用cpu-Z即可查看。

二、Linux平台:
在终端执行#cat /proc/cpuinfo(或#grep -E '(vmx|svm)' /proc/cpuinfo)命令,找到flags部分,如果其中输出有VMX或SVM,即表明支持虚拟化技术。

三、 Linux显示的flags部分解释:
fpu – Onboard FPU
vme – Virtual Mode Extensions
de – Debugging Extensions
pse – Page Size Extensions
tsc – Time Stamp Counter
msr – Model-Specific Registers
pae – Physical Address Extensions
mce – Machine Check Architecture
cx8 – CMPXCHG8 instruction
apic – Onboard APIC
sep – SYSENTER/SYSEXIT
mtrr – Memory Type Range Registers
pge – Page Global Enable
mca – Machine Check Architecture
cmov – CMOV instructions (plus FCMOVcc, FCOMI with FPU)
pat – Page Attribute Table
pse36 – 36-bit PSEs
pn – Processor serial number
clflush – CLFLUSH instruction
dts – Debug Store
acpi – ACPI via MSR
mmx – Multimedia Extensions
fxsr – FXSAVE/FXRSTOR, CR4.OSFXSR
sse – SSE
sse2 – SSE2
ss – CPU self snoop
ht – Hyper-Threading
tm – Automatic clock control
ia64 – IA-64 processor
pbe – Pending Break Enable

syscall – SYSCALL/SYSRET
mp – MP Capable
nx – Execute Disable
mmxext – AMD MMX extensions
fxsr_opt – FXSAVE/FXRSTOR optimizations
pdpe1gb – GB pages
rdtscp – RDTSCP
lm – Long Mode (x86-64)
3dnowext – AMD 3DNow! extensions
3dnow – 3DNow!
k8 – Opteron, Athlon64
k7 – Athlon
constant_tsc – TSC ticks at a constant rate
up – smp kernel running on up
pebs – Precise-Event Based Sampling
bts – Branch Trace Store
nonstop_tsc – TSC does not stop in C states
pni – SSE-3
pclmulqdq – PCLMULQDQ instruction
dtes64 – 64-bit Debug Store
monitor – Monitor/Mwait support
ds_cpl – CPL Qual. Debug Store
vmx – Hardware virtualization //intel的虚拟化技术VT技术
smx – Safer mode
est – Enhanced SpeedStep
tm2 – Thermal Monitor 2
ssse3 – Supplemental SSE-3
cid – Context ID
fma – Fused multiply-add
cx16 – CMPXCHG16B
xptr – Send Task Priority Messages
pdcm – Performance Capabilities
dca – Direct Cache Access
sse4_1 – SSE-4.1
sse4_2 – SSE-4.2
x2apic – x2APIC
aes – AES instructions
xsave – XSAVE/XRSTOR/XSETBV/XGETBV
avx – Advanced Vector Extensions
hypervisor – Running on a hypervisor
lahf_lm – LAHF/SAHF in long mode
cmp_legacy – If yes HyperThreading not valid
svm – Secure virtual machine //AMD的虚拟化技术AMD-V
extapic – Extended APIC space
cr8legacy – CR8 in 32-bit mode
abm – Advanced bit manipulation
sse4a – SSE-4A
ibs – Instruction Based Sampling
sse5 – SSE-5
skinit – SKINIT/STGI instructions
wdt – Watchdog timer

1 楼 doloveme 2012-01-31   Unable to complete install '<class 'libvirt.libvirtError'> internal  错误


是因为selinux的事

vi /etc/systemconfig/selinux
设置SELINUX=disabled

重启 就好了 2 楼 doloveme 2012-01-31   为了更好的体验KVM,更换了系统Fedora14,进入系统后使用qemu-kvm命令、virt-manager图形化界面以及virt-install命令(后两者依赖libvirt库)创建虚拟机都没有问题。
    后来我重新编译安装了 qemu-kvm(qemu-kvm-0.14.0):
    ①./configure --prefix=/usr/local/kvm --enable-kvm
    ②make
    ③make install
    ④创建链接:
        rm -f /usr/bin/qemu-img
        rm -f /usr/bin/qemu-io
        rm -f /usr/bin/qemu-nbd
        rm -f /usr/bin/qemu
        rm -f /usr/bin/kvm
        rm -f /usr/bin/qemu-kvm
        ln -s /usr/local/kvm/bin/qemu-img /usr/bin/qemu-img
        ln -s /usr/local/kvm/bin/qemu-io /usr/bin/qemu-io
        ln -s /usr/local/kvm/bin/qemu-nbd /usr/bin/qemu-nbd
        ln -s /usr/local/kvm/bin/qemu-system-x86_64 /usr/bin/qemu
        ln -s /usr/local/kvm/bin/qemu-system-x86_64 /usr/bin/kvm
        ln -s /usr/local/kvm/bin/qemu-system-x86_64 /usr/bin/qemu-kvm
        ln -s /usr/local/kvm/bin/qemu-system-x86_64 /usr/bin/qemu-system-x86_64
  这时再用qemu-kvm命令创建虚拟机时没有问题,但是使用virt-manager&&virt-install创建虚拟机时,就出提示“Unable to complete install '<class 'libvirt.libvirtError'> internal error unable to start guest: libvir: error : cannot execute binary /usr/bin/qemu-kvm: Permission denied”这样的错误。也就是说qemu-kvm命令没有问题,但使用libvirt库的virt-manager及virt-install却有问题,那么问题肯定出在libivrt身上。通过调研(https://bugzilla.redhat.com /show_bug.cgi?format=multiple&id=523956)得知,这跟selinux有关,但具体原因还不太清楚。
    解决方法:关闭selinux(/etc/selinux/config中SELINUX项设为disabled),重启系统,搞定~

热点排行