首页 > 其他 > 详细

vagrant 安装ubuntu12.04 64 bit

时间:2014-02-25 19:12:20      阅读:501      评论:0      收藏:0      [点我收藏+]

 

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 

bubuko.com,布布扣

bubuko.com,布布扣

vagrant 安装ubuntu12.04 64 bit

原文:http://www.cnblogs.com/vipzrx/p/3565850.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!