vagrant 安装ubuntu12.04 64 bit

 

1 下载用于ubuntu 12.04 用于vagrant的镜像,虚拟机是virtualbox

$ wget http://files.vagrantup.com/precise64.box

 

jb@e3v2:~/soft/soft_vagrant$ vagrant init precise64 ./precise64.box

A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

jb@e3v2:~/soft/soft_vagrant$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise64'...
[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] The guest additions on this VM do not match the installed version of
VirtualBox! In most cases this is fine, but in rare cases it can
prevent things such as shared folders from working properly. If you see
shared folder errors, please make sure the guest additions within the
virtual machine match the version of VirtualBox you have installed on
your host and reload your VM.

Guest Additions Version: 4.2.0
VirtualBox Version: 4.3
[default] Mounting shared folders...
[default] -- /vagrant

jb@e3v2:~/soft/soft_vagrant$ vagrant  ssh

vagrant@precise64:~$ sudo apt-get update

vagrant@precise64:~$ sudo apt-get dist-upgrade 

 

posted on 2014-02-25 06:52  vipzrx  阅读(322)  评论(0编辑  收藏  举报

导航