Vagrant勉強会 チュートリアル編

1,509 views

Published on

2014年1月期AITCオープンラボ
簡単に仮想環境を構築したい人のための
Vagrant&Chef勉強会
-Vagrantチュートリアル編-

Published in: Technology, Design
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,509
On SlideShare
0
From Embeds
0
Number of Embeds
13
Actions
Shares
0
Downloads
11
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Vagrant勉強会 チュートリアル編

  1. 1. https://www.virtualbox.org/wiki/Downloads http://www.vagrantup.com/downloads.html
  2. 2. > vagrant box add {BOX_NAME} {box-file or URL} > vagrant box add CentOS6.4 CentOS-6.4-x86_64-v20130731.box http://www.vagrantbox.es/
  3. 3. > vagrant box list > vagrant box remove {BOX_NAME}
  4. 4. > vagrant init {BOX_NAME} > vagrant init CentOS6.4
  5. 5. > vagrant up config.vm.provider :virtualbox do |vb| # # Don't boot with headless mode vb.gui = true # # # Use VBoxManage to customize the VM. For example to change memory: # vb.customize ["modifyvm", :id, "--memory", "1024"] end
  6. 6. > vagrant ssh
  7. 7. > vagrant halt
  8. 8. config.vm.network :private_network, ip: "192.168.33.10"
  9. 9. > vagrant plugin install sahara > vagrant plugin list
  10. 10. > vagrant up
  11. 11. > vagrant sandbox on > vagrant sandbox rollback > vagrant sandbox off
  12. 12. > vagrant package
  13. 13. > vagrant destroy

×