关于VAGRANT安装过程的坑

标签: 虚拟化

 
 

闲来无聊 试试vagrant虚拟化技术 安装过程中坑太多了 所以记录下方便以后 注意:

执行 vagrant up 命令报错 如下

  1.  
    PS F:\centos7> vagrant up
  2.  
    Bringing machine 'default' up with 'virtualbox' provider...
  3.  
    ==> default: Importing base box 'centos/7'...
  4.  
    There was an error while executing `VBoxManage`, a CLI used by Vagrant
  5.  
    for controlling VirtualBox. The command and stderr is shown below.
  6.  
     
  7.  
    Command: ["import", "\\\\?\\D:\\HashiCorp\\Vagrant\\boxes\\centos-VAGRANTSLASH-7\\0\\virtualbox\\box.ovf", "--vsys", "0", "--vmname", "centos-7-1-1.x86_64_1583492895965_65141", "--vsys", "0", "--unit", "10", "--disk", "C:/Users/\u65E0\u5173\u98CE\u6708/VirtualBox VMs/centos-7-1-1.x86_64_1583492895965_65141/centos-7-1-1.x86_64.vmdk"]
  8.  
     
  9.  
    Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
  10.  
    Interpreting \\?\D:\HashiCorp\Vagrant\boxes\centos-VAGRANTSLASH-7\0\virtualbox\box.ovf...
  11.  
    OK.
  12.  
    0%...
  13.  
    Progress state: VBOX_E_INVALID_OBJECT_STATE
  14.  
    VBoxManage.exe: error: Appliance import failed
  15.  
    VBoxManage.exe: error: Storage for the medium 'C:\Users\鏃犲叧椋庢湀\VirtualBox VMs\centos-7-1-1.x86_64_1583492895965_65141\centos-7-1-1.x86_64.vmdk' is not created
  16.  
    VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component ApplianceWrap, interface IAppliance
  17.  
    VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleImportAppliance(struct HandlerArg *)" at line 957 of file VBoxManageAppliance.cpp

错误是 box的存储硬盘空间不够 修改box的默认存储地址 解决

vagrant安装的坑-LMLPHP
主要是默认安装的虚拟机在c盘,把路径换一下就可以

版权声明:本文为x329357842原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。

05-23 20:15