在 FreeBSD bhyve 下运行 Windows(5)

$ iohyve fwlist
Listing Firmware...
BHYVE_UEFI_20151002.fd$ sudo iohyve set win2k8 fw=BHYVE_UEFI_20151002.fd bargs="-H -w" ram=1024M
Setting win2k8 fw=BHYVE_UEFI_20151002.fd...
Setting win2k8 bargs=-H -w...
Setting win2k8 ram=1024M...$ iohyve getall win2k8
Getting win2k8 props...
description  Tue_Dec__8_10:30:51_MST_2015
fw          BHYVE_UEFI_20151002.fd
ram          1024M
os          default
cpu          1
size        32G
bargs        -H_-w
loader      bhyveload
name        win2k8
boot        0
tap          tap0
persist      1
con          nmdm0
autogrub    \ninstall      yes
 

现在我们可以开始第一次引导安装了。

Windows 安装过程

Windows 的安装过程分为三个主要的阶段:         

第一个安装阶段(从 ISO 安装文件中复制文件)

第二个安装阶段(Windows 实际解压并安装一些东西)

第三个安装阶段(Windows 执行在 AutoUnattend.xml 中设置的“第一次登陆”命令)

在第一阶段开始之前,我喜欢打开另一个控制台并执行 iohyve console win2k8 命令。

$ sudo iohyve console win2k8
Password:
Starting console on win2k8...
~. to escape console [uses cu(1) for console]Connected

现在我们可以通过 iohyve uefi 命令开始安装 win2k8 客户机了。它应该会马上开始。

$ iohyve isolist
Listing ISO's...
null.iso
win2k8.iso$ sudo iohyve uefi win2k8 win2k8.iso

切换到你的其他控制台,过一会你应该会看到 Windows SAC:
 
Computer is booting, SAC started and initialized.                             
 
Use the "ch -?" command for information about using channels.                 
Use the "?" command for general help.                                         
 
 
SAC>                       
EVENT: The CMD command is now available.                                       
SAC>                                                                           
EVENT:  A new channel has been created.  Use "ch -?" for channel help.       
Channel: SACSetupAct                                                           
SAC>                                                                           
EVENT:  A new channel has been created.  Use "ch -?" for channel help.       
Channel: SACSetupErr                                                           
SAC>

你可以按 [Esc]+[Tab] 键然后回车来切换到显示了安装细节的 SACSetupAct 控制台。Calling WIMApplyImage 的部分会需要执行一段时间才会退出。

:\ProgramData\] doesn't exist; no need to move it before applying image.2015-12-08 10:51:09, Info                  IBS    MoveOldOSFiles:File/folder [E:\Recovery\] doesn't exist; no need to move it before applying image.2015-12-08 10:51:09, Info                  IBS    MoveOldOSFiles:File/folder [E:\Users\] doesn't exist; no need to move it before applying image.2015-12-08 10:51:09, Info                  IBS    MoveOldOSFiles:File/folder [E:\Windows\] doesn't exist; no need to move it before applying image.2015-12-08 10:51:09, Info      [0x06412c] IBSLIB SetCheckpoint: Checkpoint("WinPEArchiveOldWindowsFoldersStartCheckpoint") in progress...2015-12-08 10:51:09, Info      [0x06412e] IBSLIB SetCheckpoint: Checkpoint "WinPEArchiveOldWindowsFoldersStartCheckpoint" successfully set.2015-12-08 10:51:09, Info      [0x06412c] IBSLIB SetCheckpoint: Checkpoint("WinPEArchiveOldWindowsFoldersDoneCheckpoint") in progress...2015-12-08 10:51:09, Info      [0x06412e] IBSLIB SetCheckpoint: Checkpoint "WinPEArchiveOldWindowsFoldersDoneCheckpoint" successfully set.2015-12-08 10:51:09, Info      [0x06412c] IBSLIB SetCheckpoint: Checkpoint("WinPEImageApplyReadyCheckpoint") in progress...2015-12-08 10:51:09, Info      [0x06412e] IBSLIB SetCheckpoint: Checkpoint "WinPEImageApplyReadyCheckpoint" successfully set.2015-12-08 10:51:09, Info      [0x06009e] IBS    DeployWIMImage:Calling IDepWIMImageResolved::Apply...2015-12-08 10:51:10, Info      [0x0606cc] IBS    Calling WIMApplyImage (flags = 0x184)...

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/15617.html