SUSE Support

Here When You Need Us

HOWTO: resize a XEN virtual disk

This document (3786220) is provided subject to the disclaimer at the end of this document.


SUSE Linux Enterprise Server 10


A XEN virtual machine is configured to use a virtual disk file and its storage needs to be expanded.


  1. Stop the virtual machine whose storage needs to be enlarged.
  2. Be smart & safe:  Make a copy of the image file!  Work on the copy, not the original. 
  3. Increase the size of the virtual disk image:
    # dd if=/dev/zero bs=1G count=1 >> your_disk_file
    This example adds 1GB of additional space to the virtual disk image.
  4. Resize the filesystem on the disk using the filesystem's resizing tools. In order to make sure the filesystem is clean, force a filesystem check first.
    Here is an example for the ext3 filesystem:
    # e2fsck -f the_disk_file
    # resize2fs the_disk_file
  5. Restart the virtual machine


This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:3786220
  • Creation Date: 16-Oct-2007
  • Modified Date:15-Mar-2021
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.