Skip to content

Instantly share code, notes, and snippets.

@shinofara
Created July 21, 2013 12:08
Show Gist options
  • Save shinofara/6048380 to your computer and use it in GitHub Desktop.
Save shinofara/6048380 to your computer and use it in GitHub Desktop.
技術検証するならVPSレンタルより、自分のPCで、Vagrant + Chefを使って仮想サーバを立ち上げよう【導入編】 ref: http://qiita.com/shinofara@github/items/4c6cb83d1245ee3895e7
$ gem install vagrant
$ vagrant -v
Vagrant version 1.2.2
$ vagrant box list
centos64_64 (virtualbox)
$ echo 'Hello VM'
Hello VM
$ vagrant destroy
$ vagrant status
Current machine states:
default not created (virtualbox)
$ mkdir ~/vagrant
$ cd ~/vagrant
$ vagrant init
$ vim Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
#使用するbox名
config.vm.box = "centos64_64"
#コメントを外すと、VirtualBoxのアプリが立ち上がるよ
config.vm.boot_mode = :gui
end
$ vagrant up
$ vim Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
#使用するbox名
config.vm.box = "centos64_64"
#コメントを外すと、VirtualBoxのアプリが立ち上がるよ
#config.vm.boot_mode = :gui
end
$ vagrant up
$ vagrant status
Current machine states:
default running (virtualbox)
$ vagrant ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment