Chinaunix首页 | 论坛 | 博客
  • 博客访问: 711048
  • 博文数量: 140
  • 博客积分: 5097
  • 博客等级: 大校
  • 技术积分: 991
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-05 19:13
文章分类

全部博文(140)

文章存档

2018年(1)

2015年(5)

2014年(5)

2013年(2)

2011年(16)

2010年(6)

2009年(9)

2008年(45)

2007年(26)

2006年(25)

分类: WINDOWS

2014-05-26 18:43:04

一、创建差分盘

    创建文件:workvhd.script:
        create vdisk file="D:\Hyper-V\Virtual Hard Disks\Windows 8.1 WorkVhd.vhdx"  parent="D:\Hyper-V\Virtual Hard Disks\Windows 8.1.vhdx"

    创建批处理:sonvhd.bat:      


        cd "D:\Hyper-V\Virtual Hard Disks"
        del /S /Q "D:\Hyper-V\Virtual Hard Disks\Windows 8.1 WorkVhd.vhdx"
        diskpart /s WorkVhd.script
        cmd




二、设置从vhd启动

以管理员身份运行cmd
C:\>bcdedit /copy {原启动项对应的guid} /d " VHD Description(标题)"


Note: This will Return the GUID of the Loader Object that you will use to replace below 
C:\>bcdedit /set device vhd=[driveletter:]\\ 
C:\>bcdedit /set osdevice vhd=[driverletter:]\\

Note: vhd=[driveletter:]\\ is the new syntax supported for BCDEdit.exe to locate VHD File and Bootmgr will locate the partition containing the VHD File to boot from. 

阅读(2038) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~