liujia 发布的文章

Debian Installer - 启动参数 - 镜像站点的一组信息配置 - mirror/http/hostname

问题:如下例是下载 Debian bookworm 的网络启动文件,再在当前 Linux 系统里用 kexec 启动。

wget http://ftp.cn.debian.org/debian/dists/bullseye/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
wget http://ftp.cn.debian.org/debian/dists/bullseye/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux

kexec --command-line="priority=critical mirror/http/hostname=ftp.cn.debian.org interface=auto  language=en country=US locale=en_US.UTF-8 keymap=us modules=network-console network-console/password=taobao925 network-console/password-again=taobao925 DEBIAN_FRONTEND=text"  --initrd=initrd.gz linux

但在国内阿里云 ECS 里实践操作是失败的,sshd 没成功连接。查看 /var/log/syslog 日志,有如下的信息:

Feb  7 08:06:39 main-menu[259]: (process:1632): udhcpc: lease of 172.30.118.192 obtained from 172.30.127.253, lease time 315360000
Feb  7 08:06:39 main-menu[259]: INFO: Falling back to the package description for brltty-udeb
Feb  7 08:06:39 main-menu[259]: INFO: Falling back to the package description for brltty-udeb
Feb  7 08:06:39 main-menu[259]: INFO: Menu item 'choose-mirror' selected
Feb  7 08:06:39 anna-install: Queueing udeb apt-mirror-setup for later installation
Feb  7 08:06:39 choose-mirror[1719]: DEBUG: command: wget --no-verbose http://deb.debian.org/debian/dists/oldstable/Release -O - | grep -E '^(Suite|Codename|Architectures):'
Feb  7 08:08:50 choose-mirror[1719]: DEBUG: command: wget --no-verbose http://deb.debian.org/debian/dists/stable/Release -O - | grep -E '^(Suite|Codename|Architectures):'
Feb  7 08:08:53 choose-mirror[1719]: DEBUG: command: wget --no-verbose http://deb.debian.org/debian/dists/bookworm/Release -O - | grep -E '^(Suite|Codename|Architectures):'
Feb  7 08:08:59 choose-mirror[1719]: DEBUG: command: wget --no-verbose http://deb.debian.org/debian/dists/testing/Release -O - | grep -E '^(Suite|Codename|Architectures):'
Feb  7 08:11:09 choose-mirror[1719]: DEBUG: command: wget --no-verbose http://deb.debian.org/debian/dists/unstable/Release -O - | grep -E '^(Suite|Codename|Architectures):'
Feb  7 08:13:20 choose-mirror[1719]: INFO: suite/codename set to: stable/bookworm
Feb  7 08:13:20 choose-mirror[1719]: DEBUG: command: wget --no-verbose http://deb.debian.org/debian//dists/bookworm/main/binary-amd64/Release -O - | grep ^Architecture:
Feb  7 08:13:21 anna-install: Queueing udeb bookworm-support for later installation
Feb  7 08:13:21 main-menu[259]: (process:1712): failed: Connection timed out.
Feb  7 08:13:21 main-menu[259]: (process:1712): failed: Network is unreachable.
Feb  7 08:13:21 main-menu[259]: (process:1712): 2024-02-07 08:08:53 URL:http://deb.debian.org/debian/dists/stable/Release [149229/149229] -> "-" [1]
Feb  7 08:13:21 main-menu[259]: (process:1712): 2024-02-07 08:08:59 URL:http://deb.debian.org/debian/dists/bookworm/Release [149229/149229] -> "-" [1]
Feb  7 08:13:21 main-menu[259]: (process:1712): failed: Connection timed out.
Feb  7 08:13:21 main-menu[259]: (process:1712): failed: Network is unreachable.
Feb  7 08:13:21 main-menu[259]: (process:1712): failed: Connection timed out.
Feb  7 08:13:21 main-menu[259]: (process:1712): failed: Network is unreachable.
Feb  7 08:13:21 main-menu[259]: (process:1712): 2024-02-07 08:13:21 URL:http://deb.debian.org/debian//dists/bookworm/main/binary-amd64/Release [116/116] -> "-" [1]
Feb  7 08:13:21 main-menu[259]: INFO: Falling back to the package description for brltty-udeb
Feb  7 08:13:21 main-menu[259]: INFO: Falling back to the package description for brltty-udeb
Feb  7 08:13:21 main-menu[259]: INFO: Menu item 'download-installer' selected
Feb  7 08:13:21 net-retriever: regular: dists/bookworm/Release /tmp/net-retriever-1776-Release
Feb  7 08:15:31 anna[1774]: failed: Connection timed out.
Feb  7 08:15:31 anna[1774]: failed: Network is unreachable.
Feb  7 08:17:14 anna[1774]: WARNING **: bad d-i Packages file

大概是尝试连接默认的 deb.debian.org 仓库站失败了。搜索得, deb.debian.org 站是由 Fastly 提供的 CDN 站。估计,deb.debian.org 在国内访问有问题。但为什么启动参数里指定的 mirror/http/hostname=ftp.cn.debian.org 无效呢?查看 preseed 文件和说明举例,知道镜像站的配置是有几个参数必须同时指定,如 mirror/country=manual 和 mirror/http/directory=/debian。那么修改一下启动的参数,如 kexec --command-line="priority=critical mirror/country=manual mirror/http/hostname=ftp.cn.debian.org mirror/http/directory=/debian interface=auto locale=en_US.UTF-8 keymap=us modules=network-console network-console/password=taobao925 network-console/password-again=taobao925 DEBIAN_FRONTEND=text" --initrd=initrd.gz linux 就能达到安装时使用 ftp.cn.debian.org 的目的了。

参考:

DCImanager 5 - Windows 11 简体企业90天试用版 - Unattend.xml

遇到的问题:C:\Windows\Panthercbs_unattend.txt 会记录驱动的自动搜寻和安装信息,如:

2024-02-05 15:46:22, Info                  DISM   DISM Driver Manager: PID=1116 TID=396 Searching for drivers at 'X:\windows\ndis68'... ( HRESULT = 0x0 ) - DriversCallback
2024-02-05 15:46:22, Info                  DISM   DISM Driver Manager: PID=1116 TID=396 Locating INFs in 'X:\windows\ndis68' ( HRESULT = 0x0 ) - DriversCallback
2024-02-05 15:46:22, Error                 DISM   DISM Driver Manager: PID=1116 TID=396 Failed to find driver packages at 'X:\windows\ndis68' ( HRESULT = 0x80070003 ) - DriversCallback
2024-02-05 15:46:22, Info                  DISM   DISM Driver Manager: PID=1116 TID=396 Installed '0' drivers. ( HRESULT = 0x0 ) - DriversCallback
2024-02-05 15:46:22, Info                  DISM   DISM Driver Manager: PID=1116 TID=396 RETURN InstallDriversOffline (0) ( HRESULT = 0x0 ) - DriversCallback
2024-02-05 15:46:23, Info                  DISM   DISM Driver Manager: PID=1116 TID=396 Attempting to delete [{bf1a281b-ad7b-4476-ac95-f47682990ce7}D:/Windows/system32/config/SOFTWARE\Microsoft\Windows NT\CurrentVersion\UnattendSettings\PnpUnattend] registry key. - CDriverManager::Internal_DoUnattendCleanup
2024-02-05 15:46:23, Info                  DISM   DISM Driver Manager: PID=1116 TID=396 Successfully deleted [{bf1a281b-ad7b-4476-ac95-f47682990ce7}D:/Windows/system32/config/SOFTWARE\Microsoft\Windows NT\CurrentVersion\UnattendSettings\PnpUnattend] registry key. - CDriverManager::Internal_DoUnattendCleanup
2024-02-05 15:46:24, Info                  DISM   DISM OfflineSetup Provider: PID=1116 TID=396 Applying User Accounts. - COfflineSetupManager::ApplyUserAccounts

<Path>%windir%\ndis68</Path>

2024-02-06 01:14:42, Info                  DISM   DISM WIM Provider: PID=416 TID=1128 [D:\] is not a WIM mount point. - CWimMountedImageInfo::Initialize
2024-02-06 01:14:42, Info                  DISM   DISM VHD Provider: PID=416 TID=1128 [D:\] is not recognized by the DISM VHD provider. - CVhdImage::Initialize

2024-02-06 01:14:50, Info                  DISM   DISM Driver Manager: PID=1408 TID=1048 Locating INFs in 'd:\windows\ndis68' ( HRESULT = 0x0 ) - DriversCallback
2024-02-06 01:14:50, Info                  DISM   DISM Driver Manager: PID=1408 TID=1048 Found file e1d68x64.cat ( HRESULT = 0x0 ) - DriversCallback
2024-02-06 01:14:50, Info                  DISM   DISM Driver Manager: PID=1408 TID=1048 Found file e1d68x64.din ( HRESULT = 0x0 ) - DriversCallback

这例是前后两次不同路径的对比。DISM 未能在 X:\windows\ndis68 查找到驱动,因为使用了如 %windir% 的路径,实际上当时 WinPE 是识别到硬盘的第二个分区,即 D: ,这应该是分区或指定用第二个分区来装 Windows 的原因。我是将驱动的添加放到 Microsoft-Windows-PnpCustomizationsWinPE ,并不是在 Microsoft-Windows-PnpCustomizationsNonWinPE 。

Unattend.xml 内容如下:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                    <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Order>1</Order>
                    <Path>reg add HKLM\System\Setup\LabConfig /v BypassTPMCheck /t reg_dword /d 0x00000001 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>2</Order>
                    <Path>reg add HKLM\System\Setup\LabConfig /v BypassSecureBootCheck /t reg_dword /d 0x00000001 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>3</Order>
                    <Path>reg add HKLM\System\Setup\LabConfig /v BypassRAMCheck /t reg_dword /d 0x00000001 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>4</Order>
                    <Path>reg add HKLM\System\Setup\LabConfig /v BypassCPUCheck /t reg_dword /d 0x00000001 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>5</Order>
                    <Path>reg add HKLM\System\Setup\LabConfig /v BypassStorageCheck /t reg_dword /d 0x00000001 /f</Path>
                </RunSynchronousCommand>
            </RunSynchronous>
            <UserData>
                <AcceptEula>true</AcceptEula>
            </UserData>
            <DiskConfiguration>
                <WillShowUI>OnError</WillShowUI>
                <Disk wcm:action="add">
                    <CreatePartitions>
                        <CreatePartition wcm:action="add">
                            <Order>1</Order>
                            <Size>100</Size>
                            <Type>Primary</Type>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Extend>true</Extend>
                            <Order>2</Order>
                            <Type>Primary</Type>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <ModifyPartition wcm:action="add">
                            <Active>true</Active>
                            <Format>NTFS</Format>
                            <Label>System</Label>
                            <Order>1</Order>
                            <PartitionID>1</PartitionID>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Order>2</Order>
                            <PartitionID>2</PartitionID>
                            <Label>Windows</Label>
                            <Letter>C</Letter>
                            <Format>NTFS</Format>
                        </ModifyPartition>
                    </ModifyPartitions>
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                </Disk>
            </DiskConfiguration>
            <ImageInstall>
                <OSImage>
                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>2</PartitionID>
                    </InstallTo>
                    <InstallFrom>
                        <MetaData wcm:action="add">
                            <Key>/IMAGE/INDEX</Key>
                            <Value>1</Value>
                        </MetaData>
                    </InstallFrom>
                    <WillShowUI>OnError</WillShowUI>
                    <InstallToAvailablePartition>false</InstallToAvailablePartition>
                </OSImage>
            </ImageInstall>
        </component>
        <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SetupUILanguage>
                <UILanguage>en-US</UILanguage>
            </SetupUILanguage>
            <InputLocale>007f:00000804</InputLocale>
            <SystemLocale>zh-CN</SystemLocale>
            <UILanguage>zh-CN</UILanguage>
            <UILanguageFallback>zh-CN</UILanguageFallback>
            <UserLocale>zh-CN</UserLocale>
 </component>
 
               <component name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <DriverPaths>
                <PathAndCredentials wcm:action="add" wcm:keyValue="1">
                    <Path>c:\windows\ndis68</Path>
                </PathAndCredentials>
                <PathAndCredentials wcm:action="add" wcm:keyValue="2">
                    <Path>d:\windows\ndis68</Path>
                </PathAndCredentials>    
            </DriverPaths>            
            </component>
            
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <UserAccounts>
                <AdministratorPassword>
                    <Value>($PASS)</Value>
                </AdministratorPassword>
            </UserAccounts>
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
            <SkipMachineOOBE>true</SkipMachineOOBE>
            <SkipUserOOBE>true</SkipUserOOBE>
            <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
            <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
        <ProtectYourPC>3</ProtectYourPC>
            </OOBE>
        </component>
        <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <InputLocale>007f:00000804</InputLocale>
            <SystemLocale>zh-CN</SystemLocale>
            <UILanguage>zh-CN</UILanguage>
            <UserLocale>zh-CN</UserLocale>
        </component>
    </settings>
    <settings pass="offlineServicing">
    </settings>
<settings pass="specialize">
    <component name="Microsoft-Windows-TCPIP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <Interfaces>
            <Interface wcm:action="add">
                <Ipv4Settings>
                    <DhcpEnabled>false</DhcpEnabled>
                    <RouterDiscoveryEnabled>false</RouterDiscoveryEnabled>
                </Ipv4Settings>
                <Ipv6Settings>
                    <DhcpEnabled>false</DhcpEnabled>
                    <RouterDiscoveryEnabled>false</RouterDiscoveryEnabled>
                </Ipv6Settings>
                <Identifier>($WIN_MAC)</Identifier>
                <UnicastIpAddresses>
                    <IpAddress wcm:action="add" wcm:keyValue="1">($IP)/($NETMASK_SHORT)</IpAddress>
                    <IpAddress wcm:action="add" wcm:keyValue="2">($IPv6)/($NETMASKv6)</IpAddress>
                </UnicastIpAddresses>
                <Routes>
                    <Route wcm:action="add">
                        <Identifier>1</Identifier>
                        <Metric>10</Metric>
                        <NextHopAddress>($GATEWAYv4)</NextHopAddress>
                        <Prefix>0.0.0.0/0</Prefix>
                    </Route>
                    <Route wcm:action="add">
                        <Identifier>2</Identifier>
                        <Metric>10</Metric>
                        <NextHopAddress>($GATEWAYv6)</NextHopAddress>
                        <Prefix>::/0</Prefix>
                    </Route>
                </Routes>
            </Interface>
            <!--Interface wcm:action="add">
                <Ipv4Settings>
                    <DhcpEnabled>false</DhcpEnabled>
                    <RouterDiscoveryEnabled>false</RouterDiscoveryEnabled>
                </Ipv4Settings>
                <Ipv6Settings>
                    <DhcpEnabled>false</DhcpEnabled>
                    <RouterDiscoveryEnabled>false</RouterDiscoveryEnabled>
                </Ipv6Settings>
                <Identifier>Ethernet 2</Identifier>
            </Interface-->
        </Interfaces>
    </component>
    <component name="Microsoft-Windows-DNS-Client" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <Interfaces>
            <Interface wcm:action="add">
                <Identifier>($WIN_MAC)</Identifier>
                <DNSDomain>($HOSTNAME)</DNSDomain>
                <DNSServerSearchOrder>
                    <IpAddress wcm:action="add" wcm:keyValue="1">($NAMESERVER)</IpAddress>
                </DNSServerSearchOrder>
                <DisableDynamicUpdate>false</DisableDynamicUpdate>
                <EnableAdapterDomainNameRegistration>false</EnableAdapterDomainNameRegistration>
            </Interface>
        </Interfaces>
    </component>
    <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
          <fDenyTSConnections>false</fDenyTSConnections>
      </component>
      <component name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
          <UserAuthentication>0</UserAuthentication>
      </component>
    <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <FirewallGroups>
            <FirewallGroup wcm:action="add" wcm:keyValue="RemoteDesktop">
                <Active>true</Active>
                <Group>@FirewallAPI.dll,-28752</Group>
                <Profile>all</Profile>
            </FirewallGroup>
        </FirewallGroups>
    </component>
    <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <RunSynchronous>           
              <RunSynchronousCommand wcm:action="add">
                  <Description>Enable administrator</Description>
                  <Order>1</Order>
                  <Path>net user administrator /active:yes</Path>
                  <WillReboot>OnRequest</WillReboot>
               </RunSynchronousCommand>
              <RunSynchronousCommand wcm:action="add">
                  <Description>finish</Description>
                  <Order>2</Order>
                  <Path>cmd /c echo cmd /c %windir%\System32\curl.exe "($FINISH)" >> %windir%\setup\scripts\SetupComplete.cmd</Path>
                  <WillReboot>OnRequest</WillReboot>
                </RunSynchronousCommand>
              <RunSynchronousCommand wcm:action="add">
                <Description>Delete route</Description>
                <Order>3</Order>
                <Path>cmd /c echo IF "($IPv4)"=="" (route delete 0.0.0.0/0) ELSE IF "($IPv6)"=="" (route delete ::/0) >> %windir%\setup\scripts\SetupComplete.cmd</Path>
                <WillReboot>OnRequest</WillReboot>
               </RunSynchronousCommand>
               <RunSynchronousCommand wcm:action="add">
                <Description>Setting multiple nameservers</Description>
                <Order>4</Order>
                <Path>cmd /c echo cmd /c %windir%\setup\scripts\nameservers.cmd ($NAMESERVERS) >> %windir%\setup\scripts\SetupComplete.cmd</Path>
                <WillReboot>OnRequest</WillReboot>
               </RunSynchronousCommand>
        </RunSynchronous>
    </component>
</settings>
    <cpi:offlineImage cpi:source="catalog:c:/distr/7601.17514.101119-1850_x64fre_server_eval_en-us-grmsxeval_en_dvd/sources/install_windows server 2008 r2 serverstandard.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

参考:

DCImanager 5 - Windows 11 英文企业90天试用版 - Unattend.xml

与之前的 Windows 10 做比较,是增加了跳过安装需求硬件检测,和添加网卡驱动inf目录路径。文件内容如下:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                    <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Order>1</Order>
                    <Path>reg add HKLM\System\Setup\LabConfig /v BypassTPMCheck /t reg_dword /d 0x00000001 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>2</Order>
                    <Path>reg add HKLM\System\Setup\LabConfig /v BypassSecureBootCheck /t reg_dword /d 0x00000001 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>3</Order>
                    <Path>reg add HKLM\System\Setup\LabConfig /v BypassRAMCheck /t reg_dword /d 0x00000001 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>4</Order>
                    <Path>reg add HKLM\System\Setup\LabConfig /v BypassCPUCheck /t reg_dword /d 0x00000001 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>5</Order>
                    <Path>reg add HKLM\System\Setup\LabConfig /v BypassStorageCheck /t reg_dword /d 0x00000001 /f</Path>
                </RunSynchronousCommand>
            </RunSynchronous>
            <UserData>
                <AcceptEula>true</AcceptEula>
            </UserData>
         <DiskConfiguration>
                <WillShowUI>OnError</WillShowUI>
                <Disk wcm:action="add">
                    <CreatePartitions>
                        <CreatePartition wcm:action="add">
                            <Order>1</Order>
                            <Size>100</Size>
                            <Type>Primary</Type>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Extend>true</Extend>
                            <Order>2</Order>
                            <Type>Primary</Type>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <ModifyPartition wcm:action="add">
                            <Active>true</Active>
                            <Format>NTFS</Format>
                            <Label>System</Label>
                            <Order>1</Order>
                            <PartitionID>1</PartitionID>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Order>2</Order>
                            <PartitionID>2</PartitionID>
                            <Label>Windows</Label>
                            <Letter>C</Letter>
                            <Format>NTFS</Format>
                        </ModifyPartition>
                    </ModifyPartitions>
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                </Disk>
            </DiskConfiguration>
            <ImageInstall>
                <OSImage>
                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>2</PartitionID>
                    </InstallTo>
                    <InstallFrom>
                        <MetaData wcm:action="add">
                            <Key>/IMAGE/INDEX</Key>
                            <Value>1</Value>
                        </MetaData>
                    </InstallFrom>
                    <WillShowUI>OnError</WillShowUI>
                    <InstallToAvailablePartition>false</InstallToAvailablePartition>
                </OSImage>
            </ImageInstall>
        </component>
        <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SetupUILanguage>
                <UILanguage>en-US</UILanguage>
            </SetupUILanguage>
            <InputLocale>0409:00000409</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UILanguageFallback>en-US</UILanguageFallback>
            <UserLocale>en-US</UserLocale>
            </component>
            
               <component name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <DriverPaths>
                <PathAndCredentials wcm:action="add" wcm:keyValue="1">
                    <Path>c:\windows\ndis68</Path>
                </PathAndCredentials>
                <PathAndCredentials wcm:action="add" wcm:keyValue="2">
                    <Path>d:\windows\ndis68</Path>
                </PathAndCredentials>
                <PathAndCredentials wcm:action="add" wcm:keyValue="3">
                    <Path>x:\windows\ndis68</Path>
                </PathAndCredentials>
                <PathAndCredentials wcm:action="add" wcm:keyValue="4">
                    <Path>k:\windows\ndis68</Path>
                </PathAndCredentials>    
            </DriverPaths>            
            </component>
            
    </settings>


    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <UserAccounts>
                <AdministratorPassword>
                    <Value>($PASS)</Value>
                </AdministratorPassword>
            </UserAccounts>
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
            <SkipMachineOOBE>true</SkipMachineOOBE>
            <SkipUserOOBE>true</SkipUserOOBE>
            <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
            <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
        <ProtectYourPC>3</ProtectYourPC>
            </OOBE>
        </component>
        <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <InputLocale>en-US</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UserLocale>en-US</UserLocale>
        </component>
    </settings>

<settings pass="specialize">
    <component name="Microsoft-Windows-TCPIP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <Interfaces>
            <Interface wcm:action="add">
                <Ipv4Settings>
                    <DhcpEnabled>false</DhcpEnabled>
                    <RouterDiscoveryEnabled>false</RouterDiscoveryEnabled>
                </Ipv4Settings>
                <Ipv6Settings>
                    <DhcpEnabled>false</DhcpEnabled>
                    <RouterDiscoveryEnabled>false</RouterDiscoveryEnabled>
                </Ipv6Settings>
                <Identifier>($WIN_MAC)</Identifier>
                <UnicastIpAddresses>
                    <IpAddress wcm:action="add" wcm:keyValue="1">($IP)/($NETMASK_SHORT)</IpAddress>
                    <IpAddress wcm:action="add" wcm:keyValue="2">($IPv6)/($NETMASKv6)</IpAddress>
                </UnicastIpAddresses>
                <Routes>
                    <Route wcm:action="add">
                        <Identifier>1</Identifier>
                        <Metric>10</Metric>
                        <NextHopAddress>($GATEWAYv4)</NextHopAddress>
                        <Prefix>0.0.0.0/0</Prefix>
                    </Route>
                    <Route wcm:action="add">
                        <Identifier>2</Identifier>
                        <Metric>10</Metric>
                        <NextHopAddress>($GATEWAYv6)</NextHopAddress>
                        <Prefix>::/0</Prefix>
                    </Route>
                </Routes>
            </Interface>
            <!--Interface wcm:action="add">
                <Ipv4Settings>
                    <DhcpEnabled>false</DhcpEnabled>
                    <RouterDiscoveryEnabled>false</RouterDiscoveryEnabled>
                </Ipv4Settings>
                <Ipv6Settings>
                    <DhcpEnabled>false</DhcpEnabled>
                    <RouterDiscoveryEnabled>false</RouterDiscoveryEnabled>
                </Ipv6Settings>
                <Identifier>Ethernet 2</Identifier>
            </Interface-->
        </Interfaces>
    </component>
    <component name="Microsoft-Windows-DNS-Client" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <Interfaces>
            <Interface wcm:action="add">
                <Identifier>($WIN_MAC)</Identifier>
                <DNSDomain>($HOSTNAME)</DNSDomain>
                <DNSServerSearchOrder>
                    <IpAddress wcm:action="add" wcm:keyValue="1">($NAMESERVER)</IpAddress>
                </DNSServerSearchOrder>
                <DisableDynamicUpdate>false</DisableDynamicUpdate>
                <EnableAdapterDomainNameRegistration>false</EnableAdapterDomainNameRegistration>
            </Interface>
        </Interfaces>
    </component>
    <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
          <fDenyTSConnections>false</fDenyTSConnections>
      </component>
      <component name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
          <UserAuthentication>0</UserAuthentication>
      </component>
    <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <FirewallGroups>
            <FirewallGroup wcm:action="add" wcm:keyValue="RemoteDesktop">
                <Active>true</Active>
                <Group>@FirewallAPI.dll,-28752</Group>
                <Profile>all</Profile>
            </FirewallGroup>
        </FirewallGroups>
    </component>
    <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <RunSynchronous>
           <RunSynchronousCommand wcm:action="add">
              <Description>Delete route</Description>
              <Order>1</Order>
              <Path>cmd /c echo IF "($IPv4)"=="" (route delete 0.0.0.0/0) ELSE IF "($IPv6)"=="" (route delete ::/0) >> %windir%\setup\scripts\SetupComplete.cmd</Path>
              <WillReboot>OnRequest</WillReboot>
           </RunSynchronousCommand>
           <RunSynchronousCommand wcm:action="add">
                       <Description>Disable Network Discovery</Description>
                       <Order>2</Order>
                       <Path>cmd /c echo cmd /c %windir%\System32\WindowsPowerShell\v1.0\powershell.exe -command "&amp; {&amp;'Disable-NetFirewallRule' –DisplayName '@FirewallAPI.dll,-32752'}" >> %windir%\setup\scripts\SetupComplete.cmd</Path>
                       <WillReboot>OnRequest</WillReboot>
           </RunSynchronousCommand>
                   <RunSynchronousCommand wcm:action="add">
                       <Description>Setting multiple nameservers</Description>
                       <Order>3</Order>
                       <Path>cmd /c echo cmd /c %windir%\setup\scripts\nameservers.cmd ($NAMESERVERS) >> %windir%\setup\scripts\SetupComplete.cmd</Path>
                       <WillReboot>OnRequest</WillReboot>
                   </RunSynchronousCommand>
           <RunSynchronousCommand wcm:action="add">
                       <Description>Enable language</Description>
                       <Order>4</Order>
                       <Path>cmd /c %windir%\System32\WindowsPowerShell\v1.0\powershell.exe %windir%\setup\scripts\lang.ps1 "($LANG)" >>%windir%\setup\scripts\lang.log 2>&amp;1</Path>
                       <WillReboot>Never</WillReboot>
                   </RunSynchronousCommand>
           <RunSynchronousCommand wcm:action="add">
              <Description>finish</Description>
              <Order>5</Order>
                      <Path>cmd /c echo cmd /c %windir%\setup\scripts\wget.exe -O- "($FINISH)" >> %windir%\setup\scripts\SetupComplete.cmd</Path>
              <WillReboot>OnRequest</WillReboot>
           </RunSynchronousCommand>
           <RunSynchronousCommand wcm:action="add">
                      <Description>Postinstall script listener</Description>
                      <Order>6</Order>
                      <Path>cmd /c IF "($HAS_RECIPE)"=="1" (echo cmd /c %windir%\System32\WindowsPowerShell\v1.0\powershell.exe  %windir%\setup\scripts\winrm_listener.ps1 "($HOSTNAME)" "($LOCATIONIP)") >> %windir%\setup\scripts\SetupComplete.cmd</Path>
                      <WillReboot>OnRequest</WillReboot>
                   </RunSynchronousCommand>
                   <RunSynchronousCommand wcm:action="add">
                       <Description>Put key</Description>
                       <Order>7</Order>
                       <Path>cmd /c echo ($PRODUCTKEY) >> %windir%\setup\key</Path>
                       <WillReboot>OnRequest</WillReboot>
                   </RunSynchronousCommand>
                   <RunSynchronousCommand wcm:action="add">
                       <Description>Activating windows</Description>
                       <Order>8</Order>
                       <Path>cmd /c echo cmd /c %windir%\setup\scripts\activate.cmd >> %windir%\setup\scripts\SetupComplete.cmd</Path>
                       <WillReboot>OnRequest</WillReboot>
                   </RunSynchronousCommand>
                   <RunSynchronousCommand wcm:action="add">
                       <Description>TZ setup</Description>
                       <Order>9</Order>
                       <Path>cmd /c IF NOT "($TIMEZONE)" == "()" ( IF NOT "($TIMEZONE)" == "" (tzutil /s "($TIMEZONE)"))</Path>
                       <WillReboot>OnRequest</WillReboot>
                   </RunSynchronousCommand>
           <RunSynchronousCommand wcm:action="add">
                  <Description>Enable administrator</Description>
                  <Order>10</Order>
                  <Path>net user administrator /active:yes</Path>
                  <WillReboot>OnRequest</WillReboot>
               </RunSynchronousCommand>
        </RunSynchronous>
    </component>
</settings>
    <cpi:offlineImage cpi:source="catalog:c:/distr/7601.17514.101119-1850_x64fre_server_eval_en-us-grmsxeval_en_dvd/sources/install_windows server 2008 r2 serverstandard.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

参考:

脱了第二只牙 - 下排左边尾倒数第三个位置 - 下颌左前磨牙

今天早餐后用牙线清洁牙齿时,我发现下排左边倒数第三个位置的牙齿松动。我用牙线柄轻轻一顶,牙齿竟然倾倒了约30度的角度,我再稍力一推,牙顺势“躺平”,我顿时觉得嘴里多了一件“杂物”,最后轻轻将牙取出。

我拿尺子粗略量了一下,牙冠长约 0.7cm;牙齿总长约 2.3cm;下部约 1/3 颜色显深褐,轻刮会起泥状物,估计系牙垢;牙齿称得 1.1g。

估计,平常人,牙齿露出牙龈部分仅占 1/4 ~ 1/5 之间,如果因为牙龈萎缩,牙齿露出超过 2/3 时,因为平时咀嚼使用,牙齿会有急剧松动和脱落的结果。

申办护照

实例办理流程描述:先到相馆照相,拿到“数字相片回执”和相片(35元) -> 再到自助服务厅里找到和填写“出入境证件申请表”,同时粘好相片 -> 到“出入境”服务窗里交表,同时录入签名、指纹和缴费(120元)

我心头突然想办个护照,在网上搜索了下,简单了解了流程和所需材料。申请表里“前往地”和“事由”两个填写项,我问导师,该怎么填。导师说,“去越南娶新娘”。我觉得这个“事由”挺好的,所以今天在剃胡子后,特意默默背诵了几遍,准备被询问时能流利地回答。

我是约十点出门的,走路去县公安局的出入境服务部办。上个星期,和平好冷,这两天白天回暖,有点象“回南天”,水汽多,地面湿。我怕人多要排队耗时间,所以走得比平时快些。约十点八走到服务厅时,身子有点热了,可能是因为着了五件衫。大厅里人很少,出入境的服务台里只有一个办理着业务。我在长长的服务台里走了两遍,没找到纸质的申请表。

“吖叔,尔想办惹业务?”工作人员主动问我。
“我想办出国护照。”
“之前吖曾办过?”
“不曾。”
“爱影到数码相来。”
“驷乃里影?”
"对面有。"
“几多钱?”
“办护照120元。”
“影相呢?”
“30元。”那个来办理业务的人,热心地回答。
“尔问下相馆几多钱。”工作人员补充答。

我走出来,没到路对面影相,而是花了约15分钟,走到和平大道那一头的“四海数码店”影相。因为之前,听我老妈说,“四海”的老板也是彭寨人。“四海”收我35元。我问不是30元吗?老板指着墙上贴着的一张纸,说影护照相,是35元的收费标准。当我拿着“数字相片回执”返回到办证厅时,没其他顾客,就是我一个。

“填好表来。”我拿着“相片回执”想交给工作人员,她说。我左右看了下,表示不知道到哪里拿表。
“出边,自助服务厅里有表。”她说。
“用身份证……”我边走,边听到她说话。我停下脚步,侧头表示没有听清楚。
“用身份证刷卡开门。”她慢声地再说了一遍。

楼外边的“出入境自助办证服务厅”里没一个人,我刷了两下身份证,进去,找到表,填写好。在“前往地”里填写了“越南”,“事由”里勾选了“旅行”。虽然我心里想娶个越南新娘,但不能这么大胆地写,要含蓄一点的。

我交表给工作人员时,她说相片还没贴呢。哦,我赶紧从相馆给的纸袋里找到打印出来的蓝底彩色人头像,贴了一张上去。然后,我在一张纸上用笔书写签名。录完签名笔迹后,再录左、右两只手的拇指指纹。最后,是在打印出来的“因私出境证件受理回执”里扫码付款。我选择的是自取证件,不需快递派送。

办好出来,我沿着和平大道,去“坚强百货”买了一条鲈鱼。“坚强”鲈鱼今天的报价是16.9元/斤。

回到家时,已经十二点了。总结是,走路花了绝大部分时间,办证的时间可能也就五分钟左右。办证的工作人员讲和平本地话,亲切。办证进度可以在“国家移民管理局政务服务平台”里查询到。