vcl-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r845007 - in /websites/staging/vcl/trunk/content: ./ docs/increasevmhdd.html
Date Fri, 04 Jan 2013 19:15:23 GMT
Author: buildbot
Date: Fri Jan  4 19:15:23 2013
New Revision: 845007

Log:
Staging update by buildbot for vcl

Modified:
    websites/staging/vcl/trunk/content/   (props changed)
    websites/staging/vcl/trunk/content/docs/increasevmhdd.html

Propchange: websites/staging/vcl/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Jan  4 19:15:23 2013
@@ -1 +1 @@
-1429021
+1429039

Modified: websites/staging/vcl/trunk/content/docs/increasevmhdd.html
==============================================================================
--- websites/staging/vcl/trunk/content/docs/increasevmhdd.html (original)
+++ websites/staging/vcl/trunk/content/docs/increasevmhdd.html Fri Jan  4 19:15:23 2013
@@ -21,7 +21,7 @@
 
   <link href="/css/vcl.css" rel="stylesheet" type="text/css">
   <link href="/css/code.css" rel="stylesheet" type="text/css">
-  <title>Apache VCL - </title>
+  <title>Apache VCL - How to Increase the Size of a Virtual Machine Hard Drive under
VMware ESXi</title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 </head>
 
@@ -77,24 +77,113 @@
   </div>
   
   <div id="content">
-    <h1 class="title"></h1>
-    <p>Title:How to Increase the Size of a Virtual Machine Hard Drive under VMware
ESXi
-Notice:    Licensed to the Apache Software Foundation (ASF) under one
-           or more contributor license agreements.  See the NOTICE file
-           distributed with this work for additional information
-           regarding copyright ownership.  The ASF licenses this file
-           to you under the Apache License, Version 2.0 (the
-           "License"); you may not use this file except in compliance
-           with the License.  You may obtain a copy of the License at
-           .
-             http://www.apache.org/licenses/LICENSE-2.0
-           .
-           Unless required by applicable law or agreed to in writing,
-           software distributed under the License is distributed on an
-           "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-           KIND, either express or implied.  See the License for the
-           specific language governing permissions and limitations
-           under the License.</p>
+    <h1 class="title">How to Increase the Size of a Virtual Machine Hard Drive under
VMware ESXi</h1>
+    <p>This page describes how to increase the size of a VM's hard drive. This is useful
if additional space is needed to install large applications. </p>
+<p><strong>Create a Full Copy of the Virtual Disk</strong></p>
+<ul>
+<li>Determine the VMware host the VM is on</li>
+<li>Shutdown the VM</li>
+<li>Log in to the VM host via SSH</li>
+<li>
+<p>Navigate to the VM's working directory (under the VM Working Directory Path configured
in the VM profile)</p>
+<p>cd /vmfs/volumes/vmpath/vclv99-77_1846-v14</p>
+</li>
+</ul>
+<p>You should see several files in the directory:</p>
+<div class="codehilite"><pre>/vmfs/volumes/19873c05-fcd3d912/vclv99-77_1846-v14
# ls -l
+-rw-rw----    1 root     root               8684 Aug 13 16:34 nvram
+-rw-------    1 root     root         4294967296 Aug 13 16:32 vclv99-77_1846-v14-6197888b.vswp
+-rw-rw----    1 root     root              18926 Aug 13 16:32 vclv99-77_1846-v14-Snapshot1.vmsn
+-rw-rw----    1 root     root                498 Aug 13 16:32 vclv99-77_1846-v14.vmsd
+--wxrw--wx    1 root     root               3464 Aug 13 16:37 vclv99-77_1846-v14.vmx
+--w-rw--w-    1 root     root                273 Aug 13 16:32 vclv99-77_1846-v14.vmxf
+-rw-r--r--    1 root     root             137538 Aug 13 16:43 vmware.log
+-rw-rw----    1 root     root          268505088 Aug 13 19:50 vmwarewin7-Windows764bit1846-v14-000001-delta.vmdk
+-rw-rw----    1 root     root                432 Aug 13 16:32 vmwarewin7-Windows764bit1846-v14-000001.vmdk
+</pre></div>
+
+
+<p>The VM is configured to run in linked clone mode because a snapshot was created
before the VM was powered on for the first time. The .vmdk files in this directory only contain
changes made to the master image. The master image can be determined by lookin in the vmsn
file:</p>
+<div class="codehilite"><pre>snapshot0.disk0.fileName = &quot;/vmfs/volumes/e17be478-2ac3b743/vmwarewin7-Windows764bit1846-v14/vmwarewin7-Windows764bit1846-v14.vmdk&quot;
+</pre></div>
+
+
+<p>A full copy of the master image and delta files needs to be created in order to
be able to resize the virtual disk. Run the following command from the VM's working directory
on the VM host:</p>
+<div class="codehilite"><pre><span class="n">vmkfstools</span> <span
class="o">-</span><span class="n">i</span> <span class="n">vmwarewin7</span><span
class="o">-</span><span class="n">Windows764bit1846</span><span class="o">-</span><span
class="n">v14</span><span class="o">-</span><span class="mo">000001</span><span
class="o">.</span><span class="n">vmdk</span> <span class="n">copy</span><span
class="o">.</span><span class="n">vmdk</span> <span class="o">-</span><span
class="n">d</span> <span class="n">thin</span>
+
+<span class="o">::::</span><span class="n">text</span>
+<span class="sr">/vmfs/</span><span class="n">volumes</span><span
class="sr">/19873c05-fcd3d912/</span><span class="n">vclv99</span><span
class="o">-</span><span class="mi">77_1846</span><span class="o">-</span><span
class="n">v14</span> <span class="c1"># vmkfstools -i vmwarewin7-Windows764bit1846-v14-000001.vmdk
copy.vmdk -d thin</span>
+<span class="n">Destination</span> <span class="n">disk</span> <span
class="nb">format</span><span class="p">:</span> <span class="n">VMFS</span>
<span class="n">thin</span><span class="o">-</span><span class="n">provisioned</span>
+<span class="n">Cloning</span> <span class="n">disk</span> <span
class="s">&#39;vmwarewin7-Windows764bit1846-v14-000001.vmdk&#39;</span><span
class="o">...</span>
+<span class="n">Clone:</span> <span class="mi">100</span><span
class="nv">%</span> <span class="nv">done</span><span class="o">.</span>
+</pre></div>
+
+
+<p><strong>Resize the Virtual Disk</strong></p>
+<p>Run the following command to resize the virtual disk. The -X argument should specify
the total size you want the virtual disk to be, not the amount of space to add to it:</p>
+<div class="codehilite"><pre><span class="n">vmkfstools</span> <span
class="o">-</span><span class="n">X</span> <span class="mi">50</span><span
class="n">G</span> <span class="n">copy</span><span class="o">.</span><span
class="n">vmdk</span>
+</pre></div>
+
+
+<p><strong>Download Gparted Live CD</strong></p>
+<p>Download the GParted Live CD ISO image to one of the datastores mounted on the VM
host.  The .iso file must reside on one of the datastores in order to be able to mount it
on a VM.</p>
+<p><strong>Replace the VM's Hard Drive with the Full Copy</strong></p>
+<p>After the copy has been created, reconfigure the VM to use the copy of the disk
instead of the original linked clone.</p>
+<ul>
+<li>Open vSphere Client</li>
+<li>Right-click on the VM and select <strong>Edit Settings</strong>...</li>
+<li>Select <strong>Hard disk 1</strong></li>
+<li>Click <strong>Remove</strong></li>
+<li>Click <strong>Add</strong>...</li>
+<li>Select <strong>Use an existing virtual disk</strong></li>
+<li>Navigate to the VM's working directory and select the .vmdk corresponding to the
full copy of the virtual disk you created earlier (copy.vmdk)</li>
+</ul>
+<p><strong>Add a CD Drive to the VM Pointing to the GParted Live CD ISO File</strong></p>
+<ul>
+<li>Click <strong>Add</strong>...</li>
+<li>Select <strong>CD/DVD Drive</strong></li>
+<li><strong>Use ISO image</strong></li>
+<li>Navigate to the Gparted ISO image you downloaded earlier</li>
+<li>Make sure Connect at power on is selected</li>
+</ul>
+<p><strong>Increase the Power On Boot Delay</strong></p>
+<p>It can be difficult to catch the initial boot screen when the VM is powered on in
order to press Escape to display the boot menu.  Add a delay:</p>
+<ul>
+<li>Click on the <strong>Options</strong> tab</li>
+<li>Select <strong>Boot Options</strong></li>
+<li>Set the <strong>Power On Boot Delay</strong> to a few seconds <em>(4000
= 4 seconds)</em></li>
+</ul>
+<p><strong>Use GParted to Reconfigure the Partitions</strong></p>
+<p>Simply increasing the size of the virtual disk does not cause the amount of usable
space within the VM to increase.  The partitions within the virtual disk need to be reconfigured
to use all of the available space.  This cannot be done from the OS of the image stored on
the virtual disk.  You must boot the VM using a live CD containing a partition reconfiguration
utility.  The GParted Live CD is free and easy to use.</p>
+<ul>
+<li>With the VM powered off, select the <strong>Console</strong> tab</li>
+<li>Power on the VM</li>
+<li>Quickly click inside the <strong>Console</strong> pane</li>
+<li>Press <strong>Esc</strong> to display the Boot Menu</li>
+<li>Select <strong>CD-ROM Drive</strong></li>
+</ul>
+<p>The GParted menu should appear.</p>
+<ul>
+<li>Select <strong>GParted Live (Default settings)</strong></li>
+<li>Accept the defaults</li>
+</ul>
+<p>Increase the size of the main partition to use all of the space</p>
+<ul>
+<li>Select the main partition <em>(should be the largest)</em></li>
+<li>Open the <strong>Partition</strong> menu <em>(use the mouse of
press Alt-p if mouse operations are difficult)</em></li>
+<li>Select Resize/Move</li>
+<li>Set New Size (MiB) to the <em>Maximum size</em> listed above in the
box</li>
+<li>Click Resize/Move</li>
+<li>Open the Edit menu</li>
+<li>Click Apply All Operations</li>
+<li>Click Apply
+     <em>You should eventually see a message stating All operations successfully completed</em></li>
+<li>Click Close</li>
+<li>Reboot the VM to its hard drive
+     <em>If a message appears saying the hard drive needs to be checked for consistency
allow the procedure to complete.</em></li>
+<li>Once the VM is rebooted, log in to the image and verify the size of the hard drive
has been increased</li>
+</ul>
+<p>The saved VCL image will contain the larger hard drive.</p>
   </div>
   
   <div id="footer">



Mime
View raw message