将我的Vista安装转换成虚拟机

我对虚拟机有点新鲜感,所以对我来说很简单。 我目前双启动Windows 7和Windows Vista。 我想将Vista安装转换成虚拟机,然后删除该物理分区(虚拟硬盘将在我的USB驱动器上)。

我设法使用'Disk2vhd'应用程序创build一个Vista的虚拟硬盘。 但是,当我尝试在Virtual PC 2007(在Windows 7上运行)中创build虚拟机时,Vista不会加载。 安全加载也不起作用,并卡住crcdisk.sys。

任何想法可能发生什么?

你可以尝试VMWare转换器 ,然后VMDK2VHD 。 注意:您可以在networking上findVMDK2VHD的副本,而无需login该网站。

我没有使用VMWare转换器进行P2V转换,但是我使用VMDK2VHD将VMware镜像转换为HyperV。

YMMV,但这可能会帮助你。

此外,像clonezilla或ghost这样的克隆工具可以帮助创build一个磁盘映像,然后您可以在虚拟机内进行还原。

如果您希望使用VPC启动当前的Vista映像,则需要更改两件事。 您需要告诉Vista在启动时检测正确的HAL并使用标准(旧)IDE驱动程序。

通过在框中启动Vista,打开一个命令窗口并键入:

bcdedit / set detecthal on

通过转到设备pipe理器并将您的存储驱动程序更改为基本的IDE来做第二件事。

然后使用disk2vhd。

1)这个博客文章可能有帮助:

http:// hawflakes.unoc.net/?tag=fix_hdc

2)而这个:

Start VM with the XP cdrom in the player. boot from cd-rom and press R this will load the recovery console login with local administrator password of the VM goto system32 directory, cd system32 type: expand d:\i386\halacpi.dl_ and press enter type: copy halacpi.dll hal.dll and press enter, type Y to overwrite reboot the VM boot in normal mode and update all drivers, this is a automated proces, but check it reboot again in normal mode install VM additions 

3)甚至这个:

 Problem: if the VM you created using Disk2vhd is XP and during boot the screen goes black after the bios boot and never finishes booting, you probably have a HAL issue. This has happened on every physical XP that I've used disk2vhd to make a VM. Solution that has worked for me was to copy NTOSKRNL.EXE and HAL.DLL files from a known good VM to the bad VM. Abreaviated instructions using VPC2007Sp1 are: 1. Mount or add the VHD file from the VM you are having problems to a known good VM, should show up as a secondary hard drive, for example D: when you boot. 2. From the known good VM, do a search for NTOSKRNL.EXE and HAL.DLL files, you'll find many versions in a couple of different directories. Find the most recent and copy those files and replace the files on the VHD VM that you were having problems with, ensure to replace all the files in all directories. Shut down the VM. 3. Start the VM you were having problems with, it should now boot because you replaced the NTOSKRNL.EXE and HAL.DLL files within the VM with known good NTOSKRNL.EXE and HAL.DLL files from a known good VM. 

http://forum.sysinternals.com/forum_posts.asp?TID=20716&PN=2

我有同样的问题,并怀疑这是Virtual PC不支持多CPU来宾操作系统,我创build的Vista镜像是来自Core2Duo系统的事实。

我使用Windows 7的diskpart实用程序装载(附加)VHD,然后将c:\ windows \ system32中的活动hal.dll文件重命名为hal-multi.dll应该可以安全删除它,因为它实际上只是halmacpi的一个副本.dll是在同一个目录中,但我是特别谨慎 )。 然后,我做了一个halacpi.dll单CPU hal.dll )的副本, 并将 重命名为hal.dll 。 然后,我卸载虚拟磁盘并尝试再次启动虚拟机。 有效! 🙂

我也有这个问题。 原来的物理系统有一个SATA接口。 我做了HAL交换,但在启动虚拟实例时仍然在crcdisk.sys之后出现蓝屏。 为了使它工作,我在这里查看了registry的更改:

http://www.minasi.com/forum/topic.asp?TOPIC_ID=31980

HKLM / System / CurrentControlSet / Services / pciide / Start = 3 HKLM / System / CurrentControlSet / Services / intelide / Start = 0

另一个是我已经做了一个VHD图像。 要更改registry值,我使用NT离线密码工具(也是脱机registry编辑器)启动虚拟实例。 谢天谢地,我不必重新创buildVHD文件。 在这个工具中,ControlSet001与CurrentControlSet相同(至less在我的情况下)。

http://www.pogostick.net/~pnh/ntpasswd