Solved

How do you downsize/resize a vhd file for use with Hyper-V?

Posted on 2011-03-23
6
1,015 Views
Last Modified: 2012-05-11
Hi, I am using Disk2VHD to virtualize a couple of my existing physical servers for testing purposes at this time.  I can get the servers converted to a .vhd file, but when I inspect the disk file, it says it is dynamic and set to for 223GB.  I would like to resize it to about 80GB max.

The physical server is Server 2003 R2 running SharePoint Services 3.0 with Internal Database.

I have tried VHDResizer and it will only downsize it to about half the original 223GB.  So, I was wondering what is your procedure or recommended tools to accomplish this task?

I know more admins must have run across this issue or maybe I am doing something wrong.

Thanks in advance.
0
Comment
Question by:rsnellman
  • 2
  • 2
  • 2
6 Comments
 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 35199252
Hyper-V handles VHDs up to 2040 GB... why is 223 GB an issue?  It's Virtual PC that has a 127 GB limit on VHD size.
0
 

Author Comment

by:rsnellman
ID: 35199372
It is an issue, because I am running a 500GB HDD on the box and would like to have multiple VMachines to perform testing on different OSes and setups.  Also, I did check the prepare for VPC checkbox on the Disk2VHD when I created the vhd originally, but it still made it 223GB instead of the limit of 127GB.
0
 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 35199645
Disk2VHD does not resize the drive or obey Virtual PC limits - its limits are the same as Hyper-V if I'm not mistaken.  Considering the price of hard drives, why not get 2x2TB drives for $150-200 and be done with it.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 42

Accepted Solution

by:
kevinhsieh earned 500 total points
ID: 35199768
Create a new 80 GB dynamic VHD and attach it to your VM. Boot your VM with clonezilla and clone the large disk to the smaller one.
0
 

Author Comment

by:rsnellman
ID: 35199818
Leew,
Yes that would be the best solution, but since this is a development project and my supervisor is very frugale with the funds that is out of the question.

Now, kevinhsieth, how do you get a VM to boot to a clonezilla disk?  We have Ghost Enterprise.  I could try that or this clonezilla you speak of.  Just not sure how to get a VM to boot to it.

Thanks.
0
 
LVL 42

Expert Comment

by:kevinhsieh
ID: 35200331
Use Ghost if you have it. Boot the VM from a bootable .ISO.  I don't think that I have used a floppy image since I moved to Hyper-V.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now