Browse code

upgraded kernel to 3.5.0-25 to fix a kernel bug

Ken Cochrane authored on 2013/03/13 04:05:04
Showing 2 changed files
... ...
@@ -7,11 +7,11 @@ Vagrant::Config.run do |config|
7 7
   # please see the online documentation at vagrantup.com.
8 8
 
9 9
   # Every Vagrant virtual environment requires a box to build off of.
10
-  config.vm.box = "quantal64"
10
+  config.vm.box = "quantal64_3.5.0-25"
11 11
 
12 12
   # The url from where the 'config.vm.box' box will be fetched if it
13 13
   # doesn't already exist on the user's system.
14
-  config.vm.box_url = "http://unworkable.org/~niallo/quantal64.box"
14
+  config.vm.box_url = "http://get.docker.io/vbox/ubuntu/12.10/quantal64_3.5.0-25.box"
15 15
 
16 16
   # Boot with a GUI so you can see the screen. (Default is headless)
17 17
   # config.vm.boot_mode = :gui
... ...
@@ -7,7 +7,11 @@ class docker {
7 7
 
8 8
     Package { ensure => "installed" }
9 9
 
10
-    package { ["lxc", "debootstrap", "wget", "bsdtar", "git"]: }
10
+    package { ["lxc", "debootstrap", "wget", "bsdtar", "git",
11
+               "linux-image-3.5.0-25-generic",
12
+               "linux-image-extra-3.5.0-25-generic",
13
+               "virtualbox-guest-utils",
14
+               "linux-headers-3.5.0-25-generic"]: }
11 15
 
12 16
     notify { "docker_url = $docker_url": withpath => true }
13 17
 
... ...
@@ -50,6 +54,11 @@ class docker {
50 50
         creates => "/usr/local/bin/dockerd"
51 51
     }
52 52
 
53
+    exec { "vbox-add" :
54
+        require => Package["linux-headers-3.5.0-25-generic"],
55
+        command => "/etc/init.d/vboxadd setup",
56
+    }
57
+
53 58
     service { "dockerd" :
54 59
         ensure => "running",
55 60
         start => "/sbin/initctl start dockerd",