About pit vagrant installation process

Free, bored try vagrant virtualization technology installation pit too much so the next record after easy Note:

Execution vagrant up command being given as follows

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

Storage box error is enough hard disk space to modify the default storage address box solution

Here Insert Picture Description
There is a problem with character encoding reported in the implementation of vagrant up command can not resolve the solution is as follows:
find Vagrant installation path bloggers are in C: \ HashiCorp \ Vagrant \ embedded \ gems \ 2.2.6 \ gems \ vagrant-2.2. 6 \ lib \ vagrant \ util \ io.rb
found io.rb file replace line 32:
Data << io.readpartial (READ_CHUNK_SIZE) .encode ( "UTF-. 8", invalid:: replace, undef:: replace, replace : '?')
problem is solved. We can try

Published 35 original articles · won praise 14 · views 40000 +

Guess you like

Origin blog.csdn.net/x329357842/article/details/104702648