标签:
下载好ubuntu的box以后,开始导入
下载地址是
http://mirrors.hypo.cn/ubuntu-vagrant/trusty/20151130/trusty-server-cloudimg-amd64-vagrant-disk1.box
接着导入
vagrant box add ubuntu-trusty ./trusty-server-cloudimg-amd64-vagrant-disk1.box
vagrant init ubuntu-trusty
再
vagrant up
$ vagrant up
Bringing machine ‘default‘ up with ‘virtualbox‘ provider...
[default] Importing base box ‘ubuntu-trusty‘...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] Mounting shared folders...
[default] -- /vagrant
接着就可以在当前目录vagrant ssh 或者 ssh vagrant@localhost -p2222 ,密码是vagrant
标签:
原文地址:http://www.cnblogs.com/cmyk/p/5030698.html