关于VAGRANT安装过程的坑
标签: 虚拟化
闲来无聊 试试vagrant虚拟化技术 安装过程中坑太多了 所以记录下方便以后 注意:
执行 vagrant up 命令报错 如下
- PS F:\centos7> vagrant up
- Bringing machine 'default' up with 'virtualbox' provider...
- ==> default: Importing base box 'centos/7'...
- There was an error while executing `VBoxManage`, a CLI used by Vagrant
- for controlling VirtualBox. The command and stderr is shown below.
- 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"]
- Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
- Interpreting \\?\D:\HashiCorp\Vagrant\boxes\centos-VAGRANTSLASH-7\0\virtualbox\box.ovf...
- OK.
- 0%...
- Progress state: VBOX_E_INVALID_OBJECT_STATE
- VBoxManage.exe: error: Appliance import failed
- 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
- VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component ApplianceWrap, interface IAppliance
- VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleImportAppliance(struct HandlerArg *)" at line 957 of file VBoxManageAppliance.cpp
错误是 box的存储硬盘空间不够 修改box的默认存储地址 解决
主要是默认安装的虚拟机在c盘,把路径换一下就可以
版权声明:本文为x329357842原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。