I was speaking with a colleague about some work I’d been doing with a colleague about p2v (converting their physical servers to virtual machines). In this case it was a mixture of Compaq and IBM servers running Windows 2003/2008 which they needed to migrate to virtual machines to reclaim data center space whilst the project to upgrade to Windows 2008/2012 was initiated. He asked how I approached the p2v process and I’ve made some notes below.
At this point some fundamentals of approach. I always wanted to do the conversion in as few reboots as possible, so at a high level it’s the following:
Before P2V steps:
Conversion steps
Post conversion steps
The server should now be accessible from the network and ready for verification.
The script below does a lot of the service stopping and creates text files for route, IP and page file size. Just copy it into a text file and save as .cmd
@echo off
echo Pre-Checks and Virtualisation process script
echo Stopping services and changing startup to manual
echo.
wmic pagefileset list >c:\temp\pagefile_bfp2v.txt
echo.
echo Set Compaq/HP services startup to manual (if they exist)
echo.
route print >C:\temp\routeprint.txt
sc config cqmghost start= demand
sc config cpqnicmgmt start= demand
sc config cqmgserv start= demand
sc config ProLiantMonitor start= demand
sc config cqmgstor start= demand
sc config cpqrcmc start= demand
sc config cpqRCMc3 start= demand
sc config sysdown start= demand
sc config cissesrv start= demand
sc config sysmgmthp start= demand
sc config cpqvcagent start= demand
echo.
echo Set Emulex, IIS & Cluster services to manual (if they exist)
echo.
sc config “hbsa service” start= demand
sc config hpwmistor start= demand
sc config iisadmin start= demand
sc config w3svc start= demand
sc config cluster start= demand
echo.
echo Stopping IBM services if they exist (ignore erorrs)
sc config “ati hotkey poller” start= demand
sc config tier1slp start= demand
sc config wmicimserver start= demand
sc config cimlistener start= demand
sc config twgipc start= demand
sc config ibmsa start= demand
net stop tier1slp
net stop cimlistener
net stop wmicimserver
net stop twgipc
net stop ibmsa
echo.
cls
echo Deleting temporary files and Patrol history
echo.
erase “C:\Program Files\IBM\Director\log\”*.* /q
erase “C:\Program Files\IBM\Director\data\”esntevt.dat /q
rd C:\WINDOWS\Temp /s /q
md c:\windows\temp
echo.
echo Copy HP ILO uninstall vbs/HP WMI vbs script
cd\
cd temp
md compaqfolder
cd compaqfolder
copy c:\cpqsystem\uninstall\*.* /y
pause
cls
echo.
echo.
echo
echo Performing defragmentation of C, D and E drives, please be patient
echo.
echo Performing defragmentation of D: drive
echo.
defrag d: -f -v
echo Performing defragmentation of C: drive
echo.
defrag c: -f -v
echo Performing defragmentation of E: drive
echo.
defrag e: -f -v
echo.
cls
ipconfig /all >c:\temp\ipconfig.txt
netsh interface ip show config >c:\temp\netsh.txt
echo Command finished. Please run the VMware vCenter Converter Standalone Client tool.
pause
echo.
Leave a Reply