如何转换VMware虚拟磁盘镜像到Virtual Server
2008-12-30 16:52:01 来源:WEB开发网准备源虚拟机
迁移过程最重要的一部分就是准备源虚拟机。当部署到Virtual Server时,新虚拟机不会在启动时出现蓝屏。
为了保证迁移成功,将使用我的prepvm.vbs脚本以禁用任何可能遗留的VMware驱动,避免Windows启动时阻碍虚拟机。下面是这个脚本:
'prepvm.vbs
'Removes VMware-specific drivers from a system
On Error Resume Next
' Instantiate Shell Object
Set objShell = CreateObject("WScript.Shell")
' Disable VMware Tools Service
objShell.RegWrite "HKLMSYSTEMCurrentControlSetServicesVMToolsStart", _4, "REG_DWORD"
' Disable VMware vmx_svga video driver
objShell.RegWrite "HKLMSYSTEMCurrentControlSetServicesvmx_svgaStart", _4, "REG_DWORD"
' Disable VMware vmmouse driver
objShell.RegWrite "HKLMSYSTEMCurrentControlSetServicesvmmouseStart", _4, "REG_DWORD"
' Disable VMware vmscsi driver
objShell.RegWrite "HKLMSYSTEMCurrentControlSetServicesvmscsiStart", _4, "REG_DWORD"
' Disable VMware PCnet driver
objShell.RegWrite "HKLMSYSTEMCurrentControlSetServicesPCnetStart", _4, "REG_DWORD"
' Disable VMware Buslogic driver
objShell.RegWrite "HKLMSYSTEMCurrentControlSetServicesuslogicStart", _4, "REG_DWORD"
' Disable SCSI Miniport drivers
更多精彩
赞助商链接