Difference between revisions of "Virtual Machines"

Jump to navigation Jump to search
2,196 bytes added ,  09:46, 18 February 2010
m
Added "Increase Disk Size"
m (Added "Increase Disk Size")
Line 1: Line 1:
== Basic Virtual Machine Tasks ==
== Basic Virtual Machine Tasks ==
=== Start / Stop / Bounce a VM ===
=== Start / Stop / Bounce a VM ===
# Log into the Virtual Infrastructure - [[#Management Access|Management Access]]
# Log into the Virtual Infrastructure - [[#Management Access|Management Access]]
Line 73: Line 72:
# Apply the change by hitting '''OK'''
# Apply the change by hitting '''OK'''
# [[#Start / Stop / Bounce a VM|Power on the virtual machine]]
# [[#Start / Stop / Bounce a VM|Power on the virtual machine]]
== Increase Disk Size ==
Increasing the virtual disk size provided to a VM is straight forward...
# Go into the VM's settings
# Increase the size of the disk and apply
# Within the VM's OS, rescan the disk, and the new space will be visible
The trick is to extend the logical partition, and depending on the original partition type, the options vary.  Generally boot or system disks cannot be extended whilst the OS is up, whereas normal data disk can be in later OS's, but this is still not ideal.  Its generally most reliable to plan for system down time, and use a utility to extend the partition whilst its offline. Especially in a virtual environment there is no excuse for not making a backup of the partition 1st.  For older Windows machines (excluding Win7 and Win2k8)...
{|cellpadding="4" cellspacing="0" border="1"
|- style="background-color:#bbddff;"
! Partition  !! Type    !! Options
|-
| System      || Either  || Cannot be extended
|-
| Data        || Basic  || Cannot be extended, can convert to Dynamic, but this will require a brief IO interruption.
|-
| Data        || Dynamic || Can be extended on the fly, but a new volume is tagged onto the end of the existing partition to create a larger one made up of two volumes
|}
=== Increase Logical Partition ===
Download a copy of the GParted Live CD - http://gparted.sourceforge.net/livecd.php, this will need to be booted to by the VM
* '''Note''' There is a bug in some recent versions of GParted (v0.5.0-3 and v0.5.1-1 are known to have issues), whereby the boot fails with the following error, v0.4.6-1 is known to work
** <code>Unable to find a medium containing a live file system</code>
# Increase the relevant VMDK size through the VM's options
# Start snapshoting (or take a full backup of the machine)
# Attach GParted ISO to VM and restart
#* If VM doesn't boot to the ISO, force the VM to boot to BIOS (Options | Advanced | Boot Options in VM Settings) and change the VM's boot order
# Boot into GParted Live (accepting the default options, except setting language to English UK)
# Once in GParted, follow the interface, and apply changes to action
# Restart VM and verify all is good
# Turn off snapshotting


== Troubleshooting ==
== Troubleshooting ==

Navigation menu