生命不息
折腾不止

教程:一键检测VPS是Openvz还是KVM还是Xen

最近很多人锐速装不上来找我,最后发现是 Openvz 的机子。。。 Openvz 的机子是装不了锐速的。。一般主机商在发布产品的时候一定会告知是 openvz 还是 kvm 还是 xen 或者是 vmare ,如果你确实没注意,又不确定是什么类型的虚拟化技术的话,那就可以通过下面这个命令来检测。

wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/code/master/vm_check.sh && bash vm_check.sh

kvm

代码运行结束就会在最后一行显示虚拟化技术: kvm 还是 openv 或者是 xen 一目了然。

赞(17)
未经允许不得转载:91云(91yun.co) » 教程:一键检测VPS是Openvz还是KVM还是Xen

留言 11

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #0

    hyperv怎么整

    F5年前 (2019-08-07)回复
  2. #0

    谢谢分享

    dreday7年前 (2017-07-23)回复
  3. #0

    config.status: executing depfiles commands
    vm_check.sh: line 9: make: command not found
    vm_check.sh: line 10: virt-what: command not found

    hamen7年前 (2017-02-09)回复
  4. #0

    hyperv 可以吗

    houkai7年前 (2016-12-05)回复
  5. #0

    make[1]: Leaving directory `/root/virt-what-1.12′
    openvz
    kvm
    是不是同时支持这两个

    lin8年前 (2016-08-30)回复
  6. #0

    好惨:

    checking for a BSD-compatible install… /usr/bin/install -c
    checking whether build environment is sane… yes
    checking for a thread-safe mkdir -p… /bin/mkdir -p
    checking for gawk… gawk
    checking whether make sets $(MAKE)… yes
    checking for style of include used by make… GNU
    checking for gcc… no
    checking for cc… no
    checking for cl.exe… no
    configure: error: in `/root/virt-what-1.12′:
    configure: error: no acceptable C compiler found in $PATH
    See `config.log’ for more details
    make: *** No targets specified and no makefile found. Stop.
    vm_check.sh: line 10: virt-what: command not found

    leejon8年前 (2016-06-03)回复