Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VM を作る #2

Open
yasuhito opened this issue Feb 6, 2014 · 4 comments
Open

VM を作る #2

yasuhito opened this issue Feb 6, 2014 · 4 comments

Comments

@yasuhito
Copy link
Member

yasuhito commented Feb 6, 2014

ハンズオン用の VM を作り, どこかにアップロードする.
VM 作成自動化用のスクリプトも用意する.
これが参考になる? https://github.com/ehaselwanter/virtualbox-sdn

@yasuhito
Copy link
Member Author

yasuhito commented Feb 6, 2014

@sugyo さん, チュートリアルの VM スクリプト作りをお願いしていいですか...!
上に書いたやつは chef で自動化してるらしいので, あまり変更せずに使えればいいのですが.

@sugyo
Copy link
Member

sugyo commented Feb 7, 2014

chefで書かれたものは、若干の修正で使えます。
GUIはありません。tremaはgemでインストールされます。それ以外に、gitで取得したtremaとappsのmasterがvagrantのホームに置かれます。gitにあるtutorial.filesを追加するのは同じようにできると思います。

diff --git a/Vagrantfile b/Vagrantfile
index b8369ed..980fcad 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -35,7 +35,7 @@ Vagrant::Config.run do |config|
   # Share an additional folder to the guest VM. The first argument is
   # an identifier, the second is the path on the guest to mount the
   # folder, and the third is the path on the host to the actual folder.
-  config.vm.share_folder "v-data", "examples", "examples"
+  config.vm.share_folder "v-data", "/home/vagrant/examples", "examples"

   # Enable provisioning with Puppet stand alone.  Puppet manifests
   # are contained in a directory path relative to this Vagrantfile.
diff --git a/cookbooks/.keep b/cookbooks/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/vendor/cookbooks/trema/recipes/default.rb b/vendor/cookbooks/trema/recipes/default.rb
index 8d69493..332f665 100644
--- a/vendor/cookbooks/trema/recipes/default.rb
+++ b/vendor/cookbooks/trema/recipes/default.rb
@@ -7,7 +7,7 @@
 # All rights reserved - Do Not Redistribute
 #

-%w{ruby ruby-dev rubygems git libpcap-dev libsqlite3-dev tmux vim}.each do |package_name|
+%w{ruby ruby-dev rubygems git libpcap-dev libsqlite3-dev libglib2.0-dev tmux vim}.each do |package_name|
    package package_name
 end

@sugyo
Copy link
Member

sugyo commented Feb 10, 2014

上記パッチは、マージしていただいたので不要になりました。

@yasuhito
Copy link
Member Author

ありがとうございます!
とりあえず, VM には gem の Trema だけ入っていれば OK だと思います.

ハンズオン関係のファイルは, VM を配った後だと修正できないのでハンズオン中に git を使って各自取得してもらう,という形式が良いと思います.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants