shrinking xenserver-vm harddisks

August 7th, 2009 by Sebastian Leave a reply »

[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

Advertisement

4 comments

  1. Sebastian says:

    There is another cool tool for working on partitions (including live-cd): http://clonezilla.org

  2. I was just seeking this information for a while. After 6 hours of continuous Googleing, at last I got it in your website. I wonder what’s the lack of Google strategy that don’t rank this type of informative web sites in top of the list. Generally the top sites are full of garbage.

  3. marek says:

    I have been blogging since last month, my blog was indexed already in google but in the course of the test i conducted, i hunt for a positive keyword associated by my blog nevertheless it only shows the blog title and it directs me to the homepage not by the definite post. Need help!!!.

  4. marek says:

    I approximating this send, enjoyed this one thankyou for putting up.

Leave a Reply