Go back to Knowledge Base
This became common to virtualize physical computers (P2V) in order to migrate computers from physical machine to a virtual machine without reinstalling the OS and applications. This happened to me one day, when I needed to move a virtual machine where we did not have any ESX server and we were not able to reinstall the application (the provider of the solution did not exist anymore and we did not have enough information to reinstall it).
The following process it not so easy and simple, but it is working:
On the virtual machine:
- Run P2V in order to easily resize disks and Windows partitions to match physical disks (this is also duplicating the VM, good to keep a backup in case of failure)
- Copy all necessary files for sysprep
- Download all necessary drivers from the manufacturer (in my case, it was HP)
- For HP Servers, download PSP
- Uninstall VMtools
- Clean files (temp files, old profiles...)
- Prepare for the sysprep + manually edit some registry parameters and modify sysprep.ini to support multi-processor, raid card...
- Turn off the virtual server
- Copy an ISO boot image with any imaging tool (Acronis, Ghost...) to ESX LUN
- Boot on the ISO and image the server
On the physical server:
- Boot on the imaging CD and deploy the image to the physical server
- Follow sysprep operations
- Reboot several times in order to install all drivers
- For HP servers, execute PSP
- Re-configure the network interfaces
There is an example of Sysprep.inf:
;SetupMgrTag
[Unattended]
OemSkipEula=Yes
InstallFilesPath=C:\sysprep\i386
TargetPath=\WINNT
UpdateHAL = ACPIAPIC_MP,%windir%\inf\hal.inf ****** TO CONVERT TO MULTI-PROC ******
[GuiUnattended]
AdminPassword=qwertz
OEMSkipRegional=1
TimeZone=110
OemSkipWelcome=1
[UserData]
FullName="Owner Name"
OrgName="Organisation Name"
ComputerName=*
[Display]
BitsPerPel=4
Xresolution=800
YResolution=600
Vrefresh=60
[SetupMgr]
ComputerName0=server_hostname
ComputerName1=server_hostname
DistFolder=C:\sysprep\i386
DistShare=win2000dist
[Identification]
JoinDomain=domain_name
[Networking]
InstallDefaultComponents=Yes
[SysprepMassStorage] ****** FOR SmartArray 6i ******
PCI\VEN_0E11&DEV_0046&SUBSYS_40910E11="C:\Drivers\storage_smart_array_6i\cp007096\cpqcissm.inf"
PCI\VEN_0E11&DEV_0046&SUBSYS_409A0E11="C:\Drivers\storage_smart_array_6i\cp007096\cpqcissm.inf"
PCI\VEN_0E11&DEV_0046&SUBSYS_409B0E11="C:\Drivers\storage_smart_array_6i\cp007096\cpqcissm.inf"
PCI\VEN_0E11&DEV_0046&SUBSYS_40C00E11="C:\Drivers\storage_smart_array_6i\cp007096\cpqcissm.inf"
PCI\VEN_0E11&DEV_0046&SUBSYS_40D00E11="C:\Drivers\storage_smart_array_6i\cp007096\cpqcissm.inf"
PCI\VEN_0E11&DEV_0046="C:\Drivers\storage_smart_array_6i\cp007096\cpqcissm.inf"
Go back to Knowledge Base
- Details
-
Written by Nicolas Buache
-
Created on Saturday, 14 January 2012
-
Last Updated on Saturday, 14 January 2012
-
Hits: 554