Posts Tagged ‘gparted’

shrinking xenserver-vm harddisks

August 7th, 2009

[For the german/original version - please click here.]

After having done a p2v-migration you sometimes have a vm with a huge harddisk and want to resize it. Unfortunately shrinking of xenserver-vm harddisks is not supported by Citrix [1]. But with the following workaround you can help yourself very easily.

  1. add a harddisk with target-size to your vm
  2. boot your vm from the gparted-live-iso [2]
  3. copy and resize the source-partition to the target harddisk
  4. mark the target-harddisk as active

screenshot-resizing-and-copy

This works with most virtualization products…

[1] http://support.citrix.com/article/ctx116114
[2] http://gparted.sourceforge.net/livecd.php

PS: For resizing vhd-files there is the following tool.

http://vmtoolkit.com/files/folders/converters/entry87.aspx