DavidOverton.com
This site is my way to share my views and general business and IT information with you about Microsoft, IT solutions for ISVs, technologists and businesses, large and small.  
How to get an existing disk to be available inside Hyper-V, how to install RAID Management tools and how to shrink a non-Dynamic VHD

Once I had built my Hyper-V Server I still had a few to resolve.  I thought I had better document the solutions I found to my 3 disk related problems from this entry.

So the 3 issues covered are:

  1. How to get an existing disk to be available inside Hyper-V
  2. How to install RAID Management tools
  3. How to shrink a non-Dynamic VHD

How to get an existing disk to be available inside Hyper-V (called a pass-through disk)

Just to give you some background, I was moving a non-VM OS inside a Hyper-V system.  I had created the VM, but I could not get it to just “boot” from the old boot disk – the disk was not showing.  I’d read that this type of disk was a pass-through (or pass-thru) disk, but I could not find out how to configure it easily.  The solution turned out to be very simple.  Run DISKPART on the Hyper-V server, identify the disk and mark it offline.  It would then appear in the list of disks that could be installed.  What is more, if I ran out of disks I could install a SCSI controller and continue to add disks there too.

So, the commands for DiskPart:

    1. List Disk
    2. Select disk n – pick the disk you want, replace n with the disk number from the List Disk output
    3. Offline Disk

hyper-v offlining disk

You then need to add the disk inside Hyper-V -

adding pass-through disk to Hyper-V

How to install RAID Management tools

I don’t have pictures for this, but you should get the idea.  I put in the CD for the RAID software and I found some EXE and MSI files (DIR /s /a *.exe *.msi from a command prompt will do that).  I ran these (using common sense to work out which ones to try first) until the drivers were installed and also the raid configuration software.  I then looked in the C:\Program Files and C:\Program Files (x86) folders for exe’s, cpl and jar files (DIR /s /a *.exe *.cpl *.jar).  The exe’s can be services or tools to run, the cpl are control panel files and the jar files are Java modules.  It turns out that the configuration tools are Java based on my e-sata card.

How to shrink a non-Dynamic VHD

Finally I had my disks and I created some large VHD disk, but now I wanted to change the size of the 500GB disk to a 100GB disk.  It was not empty, but had about 50GB of data on it and I had created a Fixed sized disk to make things run smoother.  Easy I thought, boot up Windows Server 2008 or Vista setup routines, select repair, get to a command prompt, start DISKPART again and shrink the volumes in there.  Alas that did work, but it did not help as the fixed disks were still fixed and large.  I then found a great VHD shrinking tool - http://vmtoolkit.com/files/folders/converters/entry87.aspx, however it required .Net, which is NOT on Hyper-V.

The solution would have been to copy the 500GB file across the network or onto a USB drive, adjust it and put it back again.  The solution turned out to convert the disk type to Dynamic, which produced a much smaller VHD file that I could then move around.  This is done by choosing Edit Disk within Hyper-V Manager.

 

ttfn

David


Posted Sun, Dec 7 2008 10:14 PM by David Overton

Comments

David Overton's Blog wrote How to upgrade (migrate) from SBS 2003 to SBS 2008 on the same system without using a swing migration
on Sat, Jan 10 2009 5:37 PM

Someone posted this question on a discussion group at work and it got me thinking.  If you bought

David Overton's Blog wrote How to upgrade (migrate) from SBS 2003 to SBS 2008 on the same system without using a swing migration
on Sun, Jan 11 2009 11:38 AM

Someone posted this question on a discussion group at work and it got me thinking. If you bought a nice

David Overton's Blog wrote Getting up and running with Microsoft Hyper-V Server 2008, including getting my external SATA drives working, adding network drivers, enabling the remote management tools
on Mon, Jan 26 2009 3:30 PM

[updated 7th Dec 2008 with links to more answers] It has been a while since I posted on the blog - I've

Add a Comment

(required)
(optional)
(required)  
Remember Me?

(c)David Overton 2006-23