Only for advanced users!
This is quite complicated procedure (because of reiserfs partition), so if you are not advanced user, I recommend to wait for "doknir II" which will be released in fall 2006.
For adventurous people, here are the details for growing VMware virtual disk:
- We will need the latest version of "resize_reiserfs" utility:
apt-get update
apt-get install reiserfsprogs - Close virtual appliance and copy entire folder to new folder.
- Resize virtual disk in new folder using "Virtual DiskFactory". There must be VMware Server or Workstation installed, because utility depends on "DiskManager GUI" (command is vmware-vdiskmanager):
- Add enlarged disk to original VM as second SCSI disk (sdb)
- Start virtual appliance
- Use QTParted to remove linux swap partition (do not forget to commit) from second disk
- Start Konsole and type sux
- Use fdisk to change partition table of second SCSI disk (this will not delete data) in the following way:
- delete existing partition sdb1 (Start Cylinder: 1, End: 283)
- create new partition (Start Cylinder: 1, End: 450)
- write changes to partition table and exit - Start QTParted and create linux swap partition from remaining free space (cylinders from 451 to 509). Commit and exit!
- Expand the filesystem to fully fill the new size of the partition with the following command:
resize_reiserfs /dev/sdb1 - Close VM and remove second SCSI disk from it
- Start new (cloned) VM.
- Verify the size of partition:
1 comment:
I have put a step-by-step tutorial together on how to expand a virtual disk under a Windows 2003 Server VMWare image.
http://www.seandeasy.com/expanding-a-drive-within-a-vmware-image/
Post a Comment