Browse code

Additional formatting and markdown changes to B2D volume resize doc

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

Hollie Teal authored on 2014/08/23 10:19:58
Showing 2 changed files
... ...
@@ -92,7 +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
+- ['articles/b2d_volume_resize.md', 'Articles', 'Increasing a Boot2Docker Volume']
96 96
 
97 97
 # Reference
98 98
 - ['reference/index.md', '**HIDDEN**']
... ...
@@ -7,39 +7,64 @@ page_keywords: boot2docker, volume, virtualbox
7 7
 If you're using Boot2Docker with a large number of images, or the images you're working 
8 8
 with are very large, you might run into trouble if the Boot2Docker VM's volume runs out of 
9 9
 space. The solution is to increase the volume size by first cloning it, then resizing it 
10
-using a disk partitioning tool. We'll use (GParted)[http://gparted.sourceforge.net/download.php/index.php] 
10
+using a disk partitioning tool. We'll use [GParted](http://gparted.sourceforge.net/download.php/index.php) 
11 11
 since it's a free ISO and works well with VirtualBox.
12 12
 
13
-## 1. Stop Boot2Docker’s VM: 
13
+## 1. Stop Boot2Docker’s VM
14 14
 
15 15
     $ boot2docker stop 
16 16
 
17
-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
+Boot2Docker ships with a VMDK image, which can’t be resized by VirtualBox’s native tools. We will instead 
18
+create a VDI volume and clone the VMDK volume to it.
18 19
 
19
-## 2. Using the VirtualBox command line tools, clone the VMDK image to a VDI image:
20
+## 2. Clone the VMDK image to a VDI image
20 21
 
21
-    $ vboxmanage clonehd /full/path/to/boot2docker-hd.vmdk /full/path/to/<newVDIimage>.vdi —format VDI —variant Standard
22
+Using the command line VirtualBox tools, clone the VMDK image to a VDI image:
22 23
 
23
-## 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:
24
+    $ vboxmanage clonehd /full/path/to/boot2docker-hd.vmdk /full/path/to/<newVDIimage>.vdi -—format VDI -—variant Standard
24 25
 
25
-    $ vboxmanage modifyhd /full/path/to/<newVDIimage>.vdi —resize <size in MB>
26
+## 3. Resize the new clone volume
26 27
 
27
-## 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.
28
+Choose a size that will be appropriate for your needs. If you’re spinning up a lot of containers, 
29
+or your containers are particularly large, larger will be better:
28 30
 
29
-<img src="b2d_volume_images/add_new_controller.png>
30
-<img src="b2d_volume_images/add_cd/png">
31
+    $ vboxmanage modifyhd /full/path/to/<newVDIimage>.vdi —-resize <size in MB>
31 32
 
32
-## 5. Add the new VDI image to the Boot2Docker image in VirtualBox.
33
+## 4. Download a disk partitioning tool ISO 
33 34
 
34
-<img src="b2d_volume_images/add_volume.png">
35
+To resize the volume, you'll need a disk partitioning tool like [GParted](http://gparted.sourceforge.net/download.php/). 
36
+Once you've downloaded the tool, add the ISO to the Boot2Docker VM’s IDE bus. You might need to 
37
+create the bus before you can add the ISO.
35 38
 
36
-## 6. Verify in the Settings for the Boot2Docker VM that CD/DVD is the at the top of the **Boot Order** list.
39
+<img src="/articles/b2d_volume_images/add_new_controller.png"></br>
40
+<img src="/articles/b2d_volume_images/add_cd.png">
37 41
 
38
-<img src="b2d_volume_images/boot_order.png">
42
+## 5. Add the new VDI image 
39 43
 
40
-## 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.
44
+to the Boot2Docker image in VirtualBox.
41 45
 
42
-## 8. Start the Boot2Docker VM, either in VirtualBox or using the command line (`boot2docker start`) to make sure the volume changes took effect.
46
+<img src="/articles/b2d_volume_images/add_volume.png">
43 47
 
44
-## You’re done!
48
+## 6. Verify the boot order
49
+
50
+In the **System** settings for the Boot2Docker VM, make sure that **CD/DVD** is the at the top of the **Boot Order** list.
51
+
52
+<img src="/articles/b2d_volume_images/boot_order.png">
53
+
54
+## 7. Boot to the disk partitioning ISO
55
+
56
+Manually start the Boot2Docker VM, and the disk partitioning ISO should start up. 
57
+Using GParted, choose the **GParted Live (default settings)** option. Choose the 
58
+default keyboard, language, and XWindows settings, and the GParted tool will start 
59
+up and display the new VDI volume you created. Right click on the VDI and choose 
60
+**Resize/Move**. Drag the slider representing the volume to its maximum size, click 
61
+**Resize/Move**, and then **Apply**. Quit GParted and shut down the VM. Remove 
62
+the GParted ISO from the IDE controller for the Boot2Docker VM in VirtualBox.
63
+
64
+## 8. Start the Boot2Docker VM 
65
+
66
+Either directly in VirtualBox or using the command line (`boot2docker start`), start the Boot2Docker 
67
+VM to make sure the volume changes took effect.
68
+
69
+You’re done!
45 70