Link to home
Start Free TrialLog in
Avatar of Titonhw
TitonhwFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Running sysprep on a VHD without booting to it?

Good afternoon,

I have taken a VHD of a Windows XP laptop, which I am hoping to add to our Hyper-V cluster. However, when creating the VHD, I forgot to sysprep the laptop first. As a result, unsurprisingly the VHD bluescreens and restarts when I try to mount it using the Virtual PC facility on Windows 7 to test it.

My question is this - is it possible to run sysprep on a VHD file which I cannot boot to? I realise that I could just create the VHD again, but I would like to find out if it's possible to run sysprep on the VHD.

Thanks in advance.
Avatar of anil_kumar137
anil_kumar137
Flag of India image

Hi, Sysprep doesn't care about the underlying technology. It will work on physical or virtual hardware.
Please find the link which could help you...

http://www.windowsnetworking.com/articles_tutorials/Creating-Sysprep-Image-Library-Virtual-PC.html
Avatar of Titonhw

ASKER

Thank you for your response. I think you may be misunderstanding what I am asking.

I cannot boot the virtual machine. When I start the VHD file, the virtual machine blue screens and restarts itself. I need to be able to sysprep the VHD file without starting the VHD file. Is this possible?

I am really not sure of that hope it will not work if the machine is not switched on, its almost like like a HDD. Anyhow i will have a search on it.
Forgot to mention Sysprep can only run on the machine which is live, which will make the machine for the imaging.
Avatar of Titonhw

ASKER

Thank you for your time anyway. I will leave this question open and hope that someone else can shed some light on it.
It shouldn't matter too much if you have sysprepped or not. How did you create the VHD?
Avatar of Titonhw

ASKER

A roundabout way really. I used the VMWare VCentre Converter tool to create a VMX file from it, and then converted that to a VHD using a tool called VMDKConvert.

I think the image has been created successfully, otherwise presumably it woudn't boot at all. I'm just not sure how to get around this bluescreen.

So sysprepping the laptop before creating the VMX file would make no difference?
ASKER CERTIFIED SOLUTION
Avatar of James Haywood
James Haywood
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 Titonhw

ASKER

Thanks hhaywood000, I'll give that a go instead.
Avatar of Titonhw

ASKER

I believe that the method I was using to create the VHD was at fault. I didn't get a solution to repairing the VHD that I had created, hence the B grade, but I did use Disk2VHD instead which worked perfectly. Many thanks to those who offered their suggestions.