Link to home
Create AccountLog in
Avatar of sahl04
sahl04

asked on

Howto clone a virtual machine with resizing the disk

Initially i created the C: partition for a XP-Pro virtual machine with 5GB.
After installing a lot of service packs this partition is running out of space.
Therefore i would like to clone this virtual machine with larger disk / partitions but default cloning procedure creates same size of disk.
I had an idea with booting vitual machine from DVD (Acronis True Image) and take images of the partitions but virtual machine just boot from virtual disk and not from DVD.
Any suggestions?
Thanks in advance
Dirk
SOLUTION
Avatar of cuziyq
cuziyq

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of sahl04
sahl04

ASKER

@vanderwee

I tried

"P:\Program Files (x86)\VMware\VMware Workstation\vmware-vdiskmanager.exe" -r wwspga01.vmdk -t 3 -s 22Gb wwspga01-0.vmdk

and - oh wonder - the new virtual disk is exactly the same size as the origin.

Not so funny
Avatar of sahl04

ASKER

@cuziyq

may work generally but i have a lot of problems copying the files to the new disk. There are file corruptions and too long filenames while copying.

Any other idea?
Avatar of sahl04

ASKER

Hi all,

i tried following workaround but it does not work also.

Created a virtual disk of 22 GB
Boot virtual machine from CD-ROM with Acronis true image 10 home.
Clone origin virtual disk to new virtual disk with proportional partition growth.
All partitions did grow but the one i want to grow (C:\) has still 5 GB size!?!?
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of sahl04

ASKER

@all

Major problem resolved.
The corrupted filesystem of drive C: was the reason why the cloned partition did not grow.
After running "chkdsk /f" cloning the virtual drive with "acronis true image home" works fine
with the target partition size of 10GB.

I don't know how to handle the points. I think all hints would work with the uncorrupted filesystem.

Dirk


I recommend you Acronis Disk Director, it's work fantastic.
Try vhd resizer. it worked like charm for me when i had to export my physical machine having basic disks to xen server.