VMDK-FLAT, How to resize??

November 15, 2010 at 12:03:26
Specs: Windows 98, 99MB Ram
I am wondering how to resize a virtual machine vmdk. It is currently taking up 16GB on my hardrive , but it needs to be MUCH smaller. It is using 200MB currently and I would like it to be around 600MB to 1GB. Any Help would be appriciated! I am using qemu , and it does not accept anyhting else than flat vmdk's ( so no vmx's...)
Thankyou!
Sincerely,
Red.

See More: VMDK-FLAT, How to resize??

Report •


#1
November 15, 2010 at 12:45:27
Need to fill the empty space with nothing like secure wipe free space or try sdelete.

Why did it take me over a year to phone in a problem to ATT?


Report •

#2
November 15, 2010 at 15:25:52
I could not find the program you were talking about when you said 'secure wipe free space' ...Also , For some reason sdelete does not work...? After you agree to its license terms to use it, it closes. You double click on it to open it again and it immediately closes. The next thing I went to do was to do cd on it in command prompt, which did not work...and would not open it. How can I get it to work?? ...gah...

--- I will search google for a virtual machine 'wipe free space' utility, hopefully I will find something...If I do find something that works, I will post the solution here.
Cheers!
Thanks For Your Help! =P


Report •

#3
November 15, 2010 at 17:17:56
Look for fill empty space with zero's.

http://itknowledgeexchange.techtarg...

Why did it take me over a year to phone in a problem to ATT?


Report •

Related Solutions

#4
November 16, 2010 at 08:21:00
Ah...your page you sent me to says to do that within the virtual machine...but I cannot do that =P
I currently have my virtual machine on a computer I do not have privileges on, so when Qemu opens my virtual machine and tries to read/write on it, I get a 'access is denied' for writing. I am doing this for a school project in web design for my site. All I need to do is shrink it to put it on my USB, and it will be fine and work. But unfortunately, I cannot even open the virtual machine to do that within it. I need something like VMware Converter that can shrink a vmdk, but will actually support flat vmdk files.
I will see if the page you sent me to works anyhow outside the virtual machine.
Thanks!

Hmm...if there is a way to convert all the vmware files ( the 2 vmdk's, vmx, vmsd,nvram, & vmxf ) into just one flat vmdk, this would be an easy way to just skip all the zeroing out and wiping free space I would have to do on a 16GB vmdk. This file was originally a microsoft VHD file, but is not supported on Qemu ( as far as I know anyways...) So I converted it using Winimage. However, this made a big 16GB vmdk image that works perfectly on Qemu, but is too big to put on my small 2GB usb. It currently uses 200MB , but for some reason Winimage made it the full 16GB, which was just empty space on the virtual machines hardrive.
Is there any way you know of to convert a vmware image to just a flat vmdk image? This would be very helpful.


Report •

#5
November 16, 2010 at 12:56:37
If you copy it to some folder you do have access to, use qemu to play with it. It is rather slow but you can use qemu off the pendrive.

Guess you could get portable 7-zip and see if you can compress it enough that way.

The other way would be to use some backup program like ntbackup or other tape or tar or such. Even clonezilla or such to copy files off a mountable system.

Why did it take me over a year to phone in a problem to ATT?


Report •

#6
November 19, 2010 at 08:17:12
Oh, I see. So I can take the VMDK, use winimage to copy / paste the files into a new VMDK created by Qemu? This will work, thankyou. I don't think it will copy and paste blank space ...hopefully =P
This is the best way to shrink a VMDK, hope it works.

Report •

#7
November 25, 2010 at 15:22:49
Erm...winimage cannot open a new image created by qemu, I get a 'error reading file message...
Anything else I can do?
hm...maybe I can delete everything in the vmdk that works that is 16GB so that it is 0 bytes, and then paste files in it from a copy? I am unsure what to do right now in order to shrink the empty space. Is there any program you know of that can shrink it, but keep the vmdk in its current 'flat' state?
Thanks!

Report •


Ask Question