当我使用Vagrant设置VM时,我下载了一个名为" centos_scalefactory"的盒子,它启动良好。
E:\vagrantZZZ>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'centos_scalefactory'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: vagrantZZZ_default_1464241176788_30693
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2200 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2200
default: SSH username: vagrant
default: SSH auth method: private key
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
default: /vagrant => E:/vagrantZZZ
然而,我使用自己打包的盒子,当我把它弄糊涂时我停了下来。
E:\vagrantMIN>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Waiting for cleanup before exiting...
stopped........................
我真的不知道为什么,Vagrantfile中没有任何其他配置(只是默认) 我自己安装VM时是否存在任何问题?
由于...........