title Method 1 Install Windows Xp to VHD Setup 2
map --heads=2 --sectors-per-track=18 --mem (md)0x800+4 (99)
find --set-root /xp.img
map /xp.img (hd0)
find --set-root /msdn/xpsp3.iso
map /msdn/xpsp3.iso (0xff)
map (hd0) (hd1)
map --hook
write (99) [FiraDisk]\nStartOptions=disk,vmem=find:/xp.img,boot;cdrom,vmem=find:/msdn/xpsp3.iso;\n\0
root (hd0,0)
chainloader /ntldr
第二个方法,蓝屏
#方案二
title Method 2 For Install Windows Xp to VHD Setup 1
find --set-root /xp.img
map --heads=255 --sectors-per-track=63 /xp.img (hd0)
find --set-root /msdn/xpsp3.iso
map /msdn/xpsp3.iso (0xff)
find --set-root /ramos/f6fira.img
map --mem /ramos/f6fira.img (fd1)
map --mem /ramos/f6fira.img (fd0)
map --harddrives=1
map --hook
dd if=(fd1) of=(fd0) count=1
chainloader (0xff)
title Method 2 For Install Windows Xp to VHD Setup 2
find --set-root /xp.img
map --heads=255 --sectors-per-track=63 /xp.img (hd0)
find --set-root /msdn/xpsp3.iso
map /msdn/xpsp3.iso (0xff)
map --hook
rootnoverify (hd0)
chainloader +1
第三个方法,黑屏
title Setup Windows from ISO to IMG Step 1 : Boot from ISO, with virtual CD+Floppy
find --set-root /xp.img
map --heads=2 --sectors-per-track=18 --mem (md)0x800+4 (99)
# Unpartitioned disk image needs geometry
map --heads=255 --sectors-per-track=63 /xp.img (hd0)
find --set-root /msdn/xpsp3.iso
map /msdn/xpsp3.iso (222)
find --set-root /ramos/f6fira.img
map /ramos/f6fira.img (fd1)
map /ramos/f6fira.img (fd0)
map --hook
# Hide other disks, so partition in virtual disk will get C letter.
map --harddrives=1
# The "boot" option is required for virtual disk to have system partition with C letter.
write (99) [FiraDisk]\nStartOptions=disk,vmem=find:/xp.img,boot;cdrom,vmem=find:/msdn/xpsp3.iso;floppy,vmem=find:/ramos/f6fira.img;\n\0
rootnoverify (222)
chainloader
title Setup Windows from ISO to IMG Step 2 : Boot from IMG, with virtual CD
find --set-root /xp.img
map --heads=2 --sectors-per-track=18 --mem (md)0x800+4 (99)
map /xp.img (hd0)
map --hook
# The "boot" option here is required for booting Windows the first time.
write (99) [FiraDisk]\nStartOptions=disk,vmem=find:/xp.img,boot;cdrom,vmem=find:/msdn/xpsp3.iso;\n\0
rootnoverify (hd0)
chainloader +1
title Setup Windows from ISO to IMG Step 3 : Boot from IMG
find --set-root /xp.img
map --heads=2 --sectors-per-track=18 --mem (md)0x800+4 (99)
map /xp.img (hd0)
map --hook
write (99) [FiraDisk]\nStartOptions=disk,vmem=find:/xp.img,boot;\n\0
rootnoverify (hd0)
chainloader +1