Recently I worked on building VM Appliance and when I was ready to convert my VM to appliance I’ve figured out that virtual disk is too big. So, I did what I usually do in this situation. And now I’d like to show how you can shrink the virtual disk files of your VMware virtual machines so that if you zip them, they will use much less space. It is then easier to upload and share them with other people.
Yes, I know, many of you now said “Misha is going to talk about Shrink”. You know what, you pretty true, but …
Everybody knows What the “shrink” does. Shrink removes an empty space from .VMDK file.
However, the problem is this: What is empty space?
When Windows deletes a file, it doesn’t actually delete the data on the disk, it just deletes the references/pointers in the file allocation table. So when “Shrink” is processing a vmdk and is looking at the raw disk, it’s seeing values that aren’t empty (non-zero), and exports them as such.
You can easily test this out. Create a new vmdk on a VM. Export the VMDK right after you’ve created it. The exported files will be very small. Now fill the vmdk up with files and export; it will be very big. Now, delete all the files in the vmdk and export; it’ll still be big! If you will try to do a “Shrink”, you will see that the vmdk file is still big.
So, before doing a Shrink, I’m always using a really cool command line tool developed by Mark Russinovich, SDelete. Simply, execute SDelete with parameter -c inside running Virtual machine, then shut down the Guest and do a Shrink.
Last note. Just in case you forget how to do a shrink ;). From command line go to C:\Programme\VMware\VMware Server\ and execute the vmware-vdiskmanager.exe as shown in following example:
“C:\Programme\VMware\VMware Server\vmware-vdiskmanager.exe” -k “ITSTUFF-SRV-1.vmdk”
Simplify the ImageX‘s result, make it more readable. See the result in following format:
Index Image Name
 Windows 7 STARTER
 Windows 7 HOMEBASIC
 Windows 7 HOMEPREMIUM
 Windows 7 PROFESSIONAL
 Windows 7 ULTIMATE
Continue @ ITstuff.ca
Everybody knows that I’m real fun of Unattended Installation. I try to do as much as possible to automate everything :). Time to time, I meet applications are not supporting unattended or silent installation. In this situation, my “Best Friend” is Autoit helps me. In the following video, you can see a demo, how by using Autoit script (BTW, any Autoit script could be compiled into .EXE file) I’m installing Avira Antivirus on Windows 7 RC1 (Win7 RC1).
[kml_flashembed movie="http://www.youtube.com/v/f5yTmFLtwj0" width="425" height="350" wmode="transparent" /]
According to Zane Adam, senior director of virtualization and System Center, Microsoft Hyper-V Server 2008 R2 will continue to be free, and now will include live migration and host clustering capabilities…
Customers won’t need to pay thousands of dollars for alternate Virtualization platforms to get these features. With Microsoft Hyper-V Server 2008 R2, customers have a solution for both planned and unplanned downtime and can use it for scenarios like server consolidation, branch server consolidation, high availability (HA), and VDI.
You can download Microsoft Hyper-V Server 2008 R2 beta here. Microsoft Hyper-V Server 2008 R2 can be managed by System Center Virtual Machine Manager 2008 R2. You can download the beta here.
You can find more info on Microsoft’s virtualization products and solutions at http://www.microsoft.com/virtualization.
I’d like to let everybody know about my new (rebuild) blog, ITStuff.ca. This blog dedicated to IT Technologies.
ITStuff.ca is all about Windows, VMware, Hyper-V, Virtualization, HP Servers, Blades and other IT Technologies. An invaluable source of Tools and Scripts for IT Network Administrators. A valuable advice, Tips, Tricks and best practices for Net Admins.
Many websites and blogs are reporting the leak of Build 7100 which is the RC version of Windows 7…
Continue @ ITstuff.ca
Microsoft released the beta of Microsoft Exchange 2010!
This software is intended for evaluation purposes only. You must accept the license terms before you are authorized to use this software. There is no product support for this trial software. You are welcome to participate in the forums to share your trial experiences with others and to ask for advice.
More info @ http://www.itstuff.ca
Winnipeg ~ On April 21st, 2009, local information technology company EPIC Information Solutions (EPIC) will unveil the latest version of its bi-annual conference, EPIC Technology Day, at the Victoria Inn on Wellington Avenue.
Microsoft officially released IE8.
You can download IE8 for almost all MS OSs (I’m not talking about versions that everybody already forget about 🙂 ) from official MS web site, by visiting this page:
Citrix is to make its XenServer software free, from April. As part of the new agreement, Citrix plans to release a new suite of virtualisation management tools in April, called Citrix Essentials, that will be offered in two versions – one for Microsoft’s Hyper-V software and another for Citrix XenServer.