Solved

Windows 2008 Sysprep Change Hal

Posted on 2011-09-12
10
1,583 Views
Last Modified: 2012-05-12
Hi all:

I recently had to migrate my Windows 2008 32-bit (Non-R2) vmware guest image to ESXi 4.1u1 from VMWare Server 1.0.10

Unfortunately the image is not booting on the ESXi box and keep blue-screening. As far as I'm aware it is because of dissimilar hardware, which is why I decided that a sysprep would fix the issue... The odd thing is, I cannot seem to execute sysprep?!

I tried using the installation CD, and in the command prompt I typed sysprep, nothing happened.
I booted off of MS-DaRT v6.5, and used its command prompt, and got an error about ActionQueue.dll missing

How does one go about sysprep'ing a windows server 2008 system after the fact, where you don't have access to the running/working environment to sysprep and shut it down properly.

Any help is much appreciated. I do NOT want to be quoted a bagillion KB articles, a simple: "go here, and do this" would earn you the 500 points!
0
Comment
Question by:ovprit
  • 5
  • 4
10 Comments
 
LVL 10

Expert Comment

by:Subhashish Laha
ID: 36524072
Please go through below, it has the link for downloading "Windows Automated Installation Kit" which includes Sysprep and the screenshots to configure Sysprep.

http://briandesmond.com/blog/how-to-sysprep-in-windows-2008/
0
 
LVL 1

Author Comment

by:ovprit
ID: 36524091
@subhashishlaha:

I would appreciate it if you could please read my question before giving suggestions. As my question indicates, if I could BOOT the server in the first place, I'd be able to do a sysprep and wouldn't be asking questions here.

To re-iterate, I can NOT BOOT THIS SERVER AT THIS TIME DUE TO DISSIMILAR HARDWARE.
0
 
LVL 5

Expert Comment

by:warddhooghe
ID: 36524150
Can you pass us the blue screen top row error please? usually it states a file or error code. 0x0000DE or similar

Check if previous count of cpus is still the same for this VM. (changing from 1 cpu to 2 cpus can cause bluescreens/boot problems)
in VM settings for the guest, check that the type of disc-controller is same or similar.
0
 
LVL 10

Expert Comment

by:Subhashish Laha
ID: 36524172
Sorry for above comments.

If you are sure that the issue occurred due to different Hal, you can follow below steps

- You can boot the machine with WIndows 7 / Windows 2008 ISO / CD
- Click Repair your computer.
- Click the operating system that you want to repair, and then click Next.
- In the System Recovery Options dialog box, click Command Prompt.
- Run below commandline
    bcdedit /store C:\Boot\bcd /set detecthal Yes

Or, you can rebuild BCD store using Bootrec.exe

-  Type Bootrec.exe on commandline and press ENTER.

Please let me know if that helps
0
 
LVL 1

Author Comment

by:ovprit
ID: 36524345
@subhashishlaha:
c:\> bcdedit /store C:\Boot\bcd /set detecthal Yes
An error ocurred while attempting to reference the specified entry.
The system cannot find the file specified

c:\> bootrec

Repairs critical dis structures. The following commands (...) gives me 4 options: /FixMbr, /FixBoot, /ScanOS and /RebuildBcd

c:\> bootrec /rebuildbcd
Scanning all disks for Windows installations.

Please wait since this may take a while...

Successfully scanned Windows installation.
Total identified Windows installations: 0
The operation completed successfully.

....


Next? ;)
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 10

Expert Comment

by:Subhashish Laha
ID: 36524431
As per the output of Bootrec.exe commandline, it is not able to find any windows installation

"Total identified Windows installations: 0"

When you selected "Repair your computer", did it showed any OS details?

You can open command prompt and change to C drive then run "DIR". Check is it showing any relevant data.

As you earlier mentioned, you migrated the VM from ESXi 4.1u1 from VMWare Server 1.0.10.
VM disk are configured previously on IDE controller or on LSI controller. Now, after migrating, what is the Storage controller configred for disk?


0
 
LVL 1

Author Comment

by:ovprit
ID: 36524469
@subhashishlaha & @warddhooghe:

I didn't realize that the default controller picked is the SAS one, I switched it back to Parallel and it seems to be booting the image now. I will try to sysprep as soon as the system comes up, then do the changes.

Will report back with updates shortly.
0
 
LVL 1

Author Comment

by:ovprit
ID: 36524602
Hey guys... So I am a little upset as sysprep took away ALL the settings, and literally blew it back to "fresh install" status.

How would I go about increasing the CPU count and switching from Parallel to SAS without going into the BSOD issue? The bcdedit method didn't seem to work and yes @subhashishlaha C: drive did contain the c:\Boot\BCD file and was visible.

Is there a way to set it to detecthal while it's booted with the old settings, then I set that somehow, and shutdown, do the changes the boot it up?
0
 
LVL 10

Accepted Solution

by:
Subhashish Laha earned 500 total points
ID: 36524804
You can run below command to change HAL settings for supporting multiple CPUs while Windows is booted.

- Open command prompt as Administrator
- bcdedit /set {default} detecthal yes
or
- bcdedit /set {current} detecthal yes

After running above commands, shutdown the machine and then increase CPU count and boot.

For changing Storage controller:

- First add additional Disk as SAS disk to VM and boot.
- Install SAS controller driver and check that additional disk is detected in VM.
- Then remove the additional Disk and change the Boot disk from Parallel to SAS controller.

0
 
LVL 1

Author Closing Comment

by:ovprit
ID: 36527089
@subhashishlaha:

We got off on a rocky start there partner, but you pulled thru! Thank you so much for all the assist, and you more than deserve the points!

Sincerely,
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

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.
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

746 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

10 Experts available now in Live!

Get 1:1 Help Now