28
企企企企企 企企 Gr. 企企 企企 企企企企企企 Vagrant + Vagrant 1.5

仮想マシンとVagrant + Vagrant 1.5

Embed Size (px)

DESCRIPTION

仮想マシン、Vagrant、さらに、 3月にリリースされたVagrant Ver.1.5について、 社内勉強会で発表した内容です。

Citation preview

  • 1. Gr. Vagrant + Vagrant 1.5

2. Vagrant 3Vagrant 1.5 3. Virtual Machine(VM) () () VMWare Player, VirtualBox 4. OS 5. OS OS 6. VM OS Vagrant 7. Vagrant VirtualBoxVMWare Fusion( )VM 8. VagrantVirtualBox VMbox VM VM 9. VMbox boxURL box http://www.vagrantbox.es/ box () vagrant box add [] [boxURL] 10. VM Vagrantfile box CPU VM vagrant init 11. box # vagrant box add config.vm.box = [box] # box # vagrant box add [box] [boxURL] config.vm.box_url = [boxURL] 12. Vagrant.configure("2") do |config| # box(add) config.vm.box = "kikuchi-d20131002" # IP config.vm.network :private_network, ip: "192.168.33.10 # config.vm.synced_folder "/project", "/project config.vm.provider :virtualbox do |vb| # VirtualBoxVM vb.name = "cantos20131002 # VM vb.customize ["modifyvm", :id, "--memory", "2048", "--cpus", "2"] end end 13. boximport boxurl vagrant up 14. box Vagrantfile Vagrantfile vagrant up config.vm.box = [box] config.vm.box_url = [boxURL] 15. Mac Windows Tera Term VagrantfileIP vagrant ssh 16. vagrant up vagrant halt vagrant destroy 17. Vagrant 1.5 Hyper-V Box 2.0 Rsync Synced Folders SMB Synced Folders Vagrant Share 18. Boxes2.0 Vagrant Cloud box Vagrant Cloud box box 19. Ver.0.1.0 Ver.0.1.1 boxsample (byte-range) kikuchi vagrant box add kikuchi/sample --box-version = 0.1.0 20. Rsynced Synced Folder Rsync VM 21. RsyncVagrantfile (Vagrantfile) config.vm.synced_folder "/project", "/project config.vm.synced_folder "/project", "/project, type: "rsync 22. Rsync vagrant up vagrant rsync-auto 23. SMB Synced Folder WindowsVagrant SMB config.vm.synced_folder "/project", "/project config.vm.synced_folder "/project", "/project, type: smb 24. Vagrant Share VM HTTP Sharing SSH Sharing General Sharing Vagrant Cloud vagrant login 25. HTTP Sharing Web Vagrantfile URL config.vm.network "forwarded_port", guest: 80, host: 12345 vagrant up vagrant share 26. SSH Sharing SSH vagrant up vagrant share --ssh vagrant share --ssh [] 27. Vagrant Vagrant 1.5 Vagrant 28.