Browse code

Initial commit: Increase Boot2Docker Volume + images

Signed-off-by: Hollie Teal <hollie@docker.com>

Hollie Teal authored on 2014/08/23 09:06:28
Showing 7 changed files
... ...
@@ -92,6 +92,7 @@ pages:
92 92
 - ['articles/ambassador_pattern_linking.md', 'Articles', 'Cross-Host linking using Ambassador Containers']
93 93
 - ['articles/runmetrics.md', 'Articles', 'Runtime metrics']
94 94
 - ['articles/baseimages.md', 'Articles', 'Creating a Base Image']
95
+- ['articles/b2d_volume_increase', 'Articles', 'Increasing a Boot2Docker Volume']
95 96
 
96 97
 # Reference
97 98
 - ['reference/index.md', '**HIDDEN**']
... ...
@@ -11,3 +11,4 @@
11 11
  - [Runtime Metrics](runmetrics/)
12 12
  - [Automatically Start Containers](host_integration/)
13 13
  - [Link via an Ambassador Container](ambassador_pattern_linking/)
14
+ - [Increase a Boot2Docker Volume](b2d_volume_resize/)
14 15
new file mode 100644
15 16
Binary files /dev/null and b/docs/sources/articles/b2d_volume_images/add_cd.png differ
16 17
new file mode 100644
17 18
Binary files /dev/null and b/docs/sources/articles/b2d_volume_images/add_new_controller.png differ
18 19
new file mode 100644
19 20
Binary files /dev/null and b/docs/sources/articles/b2d_volume_images/add_volume.png differ
20 21
new file mode 100644
21 22
Binary files /dev/null and b/docs/sources/articles/b2d_volume_images/boot_order.png differ
22 23
new file mode 100644
... ...
@@ -0,0 +1,45 @@
0
+page_title: Resizing a Boot2Docker Volume	
1
+page_description: Resizing a Boot2Docker Volume in VirtualBox with GParted
2
+page_keywords: boot2docker, volume, virtualbox
3
+
4
+# Getting “no space left on device” Errors with Boot2Docker?
5
+
6
+If you're using Boot2Docker with a large number of images, or the images you're working 
7
+with are very large, you might run into trouble if the Boot2Docker VM's volume runs out of 
8
+space. The solution is to increase the volume size by first cloning it, then resizing it 
9
+using a disk partitioning tool. We'll use (GParted)[http://gparted.sourceforge.net/download.php/index.php] 
10
+since it's a free ISO and works well with VirtualBox.
11
+
12
+## 1. Stop Boot2Docker’s VM: 
13
+
14
+    $ boot2docker stop 
15
+
16
+Boot2Docker ships with a VMDK image, which can’t be resized by VirtualBox’s native tools. We will instead create a VDI volume and clone the VMDK volume to it.
17
+
18
+## 2. Using the VirtualBox command line tools, clone the VMDK image to a VDI image:
19
+
20
+    $ vboxmanage clonehd /full/path/to/boot2docker-hd.vmdk /full/path/to/<newVDIimage>.vdi —format VDI —variant Standard
21
+
22
+## 3. Resize the new clone volume, choosing a size that will be appropriate for your needs. If you’re spinning up a lot of containers, or your containers are particularly large, larger will be better:
23
+
24
+    $ vboxmanage modifyhd /full/path/to/<newVDIimage>.vdi —resize <size in MB>
25
+
26
+## 4. Download a disk partitioning tool ISO, like (GParted)[http://gparted.sourceforge.net/download.php/]. Add the ISO to the Boot2Docker VM’s IDE bus. You might need to create the bus before you can add the ISO.
27
+
28
+<img src="b2d_volume_images/add_new_controller.png>
29
+<img src="b2d_volume_images/add_cd/png">
30
+
31
+## 5. Add the new VDI image to the Boot2Docker image in VirtualBox.
32
+
33
+<img src="b2d_volume_images/add_volume.png">
34
+
35
+## 6. Verify in the Settings for the Boot2Docker VM that CD/DVD is the at the top of the **Boot Order** list.
36
+
37
+<img src="b2d_volume_images/boot_order.png">
38
+
39
+## 7. Start the Boot2Docker VM in VirtualBox, and the disk partitioning ISO should start up. Using GParted, choose the **GParted Live (default settings)** option. Choose the default keyboard, language, and XWindows settings, and the GParted tool will start up and display the new VDI volume you created. Right click on the VDI and choose **Resize/Move**. Drag the slider representing the volume to its maximum size, click **Resize/Move**, and then **Apply**. Quit GParted and shut down the VM. Remove the GParted ISO from the IDE controller for the Boot2Docker VM in VirtualBox.
40
+
41
+## 8. Start the Boot2Docker VM, either in VirtualBox or using the command line (`boot2docker start`) to make sure the volume changes took effect.
42
+
43
+## You’re done!
44
+