开发者社区> 问答> 正文

ECS 服务器怎么安装vagrant ?

我执行了 vagrant up, 结果报如下错误

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: ubuntu_default_1602823915197_80926
Vagrant is currently configured to create VirtualBox synced folders with
the `SharedFoldersEnableSymlinksCreate` option enabled. If the Vagrant
guest is not trusted, you may want to disable this option. For more
information on this option, please refer to the VirtualBox manual:

  https://www.virtualbox.org/manual/ch04.html#sharedfolders

This option can be disabled globally with an environment variable:

  VAGRANT_DISABLE_VBOXSYMLINKCREATE=1

or on a per folder basis within the Vagrantfile:

  config.vm.synced_folder '/host/path', '/guest/path', SharedFoldersEnableSymlinksCreate: false
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "f4c5917e-c869-47f2-af61-fa04c99334af", "--type", "headless"]

Stderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

我执行了 kvm-ok,结果如下:
INFO: Your CPU does not support KVM extensions. KVM acceleration can NOT be used

请问应该怎么解决这个问题?

展开
收起
小青年_ 2020-10-20 18:17:35 1794 0
1 条回答
写回答
取消 提交回答
  • 云服务器是不支持再次虚拟化的。

    因为云主机本身就是一种虚拟化,就像是我在我自己的电脑上安装了虚拟机之后,进入虚拟机是不能再次虚拟化一样。

    Your CPU does not support KVM extensions. KVM acceleration can NOT be used 这句话翻译过来的意思就是:您的cpu不支持kvm扩展。

    2021-02-07 11:15:54
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
如何运维千台以上游戏云服务器 立即下载
网站/服务器取证 实践与挑战 立即下载
ECS快储存加密技术 立即下载