win10 bcdedit加入vhdx启动

第一步,先用hyper-v,imagex或者其他vhd安装器。将win10 系统安装到一个vhd文件里(vhdx更好。动态扩展等诸多优良特性)。比方d:win10tp.vhdx
第二步。运行例如以下代码

C:>bcdedit /copy {current} /d “Windows 10 Technical Preview”

该命令运行完成后获得到一个guid,诸如:{xxx-xxx-xxx-xx-xx}之类的,将这个花括号连同之间的字符串复制上,把以下的命令里的<guid>所有替换掉,然后运行就能够了。

C:>bcdedit /set <guid> device vhd=[d:]
win10tp.vhdx
C:>bcdedit /set <guid> osdevice vhd=
[d:]win10tp.vhdx
C:>bcdedit /set <guid> detecthal on