12
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Windowsでvagrantプラグインsaharaをインストール

12
Last updated at Posted at 2013-03-09

仮想マシンの状態を簡単にロールバックできるsaharaプラグインをwindowsにインストールする

saharaインストール

vagrant gem install sahara

でインストールできるはずが、jsonのインストールでエラーになり以下の
メッセージが表示されるのでDevKitを先にインストールする

You have to install development tools first.

DevKitのインストール

http://rubyinstaller.org/downloads/
DevKit-tdm-32-4.5.2-20111229-1559-sfx.exeをダウンロード実行し展開し、任意の場所におく

dk.rbのあるフォルダでコマンドラインを開き初期化

ruby dk.rb init

生成されたconfig.ymlにvagrant上にあるrubyのrootパスを記載する

- C:/vagrant/embedded
# DevKitをインストール
ruby dk.rb install

# すでにあると警告がでたら-fを付けて強制インストール
ruby dk.rb install -f

再度、vagrant gem install saharaでインストール。vagrant sandboxコマンドが使えるようになる


## sandboxコマンド

sandbox モードに入る

vagrant sandbox on

変更を取り消し

vagrant sandbox rollback

変更を確定

vagrant sandbox commit

12
11
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?