Link to home
Start Free TrialLog in
Avatar of Line One
Line One

asked on

Hyper-V - copying dynmaic VHD to fixed VHD

I have a 2008 R2 HyperV Dynamic VHD. I want to copy it to a blank Fixed VHD I've created.  ? I know I could do it with Ghost. Are there any other strictly Windows methods I could use to achieve the same effect?
ASKER CERTIFIED SOLUTION
Avatar of Syed Mutahir Ali
Syed Mutahir Ali
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Line One
Line One

ASKER

We found a problem with the conversion business.  We originally had a physical drive that we imported into a Dynamic VHD - the process shrunk the drive in the process in the sense that unused space in the original physical drive was mapped out of the Dynamic VHD - it 'shrunk' the drive. We then wanted to convert it to a fixed size that was bigger than the conversion to Dynamic had allocated but less than the original physical disk size. However, the conversion wanted to create a fixed disk as big as the original physical disk. So what I want to do is create the Fixed VHD a specific size and then copy the Dynamic to that VHD.  With Ghost I have the option to make the target a different size than the source so it would do what I want. I just wanted to see if there was a way to do it with Windows. Do you know of a way to duplicate the Ghost trick with just Windows?  Or alternatively do you know of a way I can convert the Dynamic to a specific Fixed size in my situation so that it doesn't revert to the original physical size?
As I wrote earlier, that's what we tried to do and it would only create a fixed VHD that was the same size as the original physical disk. In other words let's say we started with a physical disk that was 200 gig. When it was imported and converted to a Dynamic VHD the Dynamic VHD was 100 gig.  When we then tried to convert it to let's say 150 gig Fixed VHD it wouldn't allow it  - it wanted to create a Fixed VHD that was at minimum 200 gig - the original physical disk size.
how much space does it shows as used when you boot up with a dynamic vhd in the virtual machine ?
You can try a test,
create a fixed vhd, convert it to dynamic and then convert it to fixed disk to see what happens, I suspect its because it has set itself a marker of some sort so it won't reduce to your specified size.
the test can reveal that ; i haven't got a hyper-v box at the moment as i am travelling but I will try to check this asap and will post back.
I'll see about trying the test and wait for you when you get back.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I will give this a try hopefully this weekend if I can schedule some down time.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial