• Oz 创建Windows2008R2镜像


    此tdl和auto文件只可定义windows disk bus以ide模式启动,不支持virtio。

    <template>
      <name>Windows-gushiren</name>
      <os>
        <name>Windows</name>
        <version>2008</version>
        <arch>x86_64</arch>
        <install type='iso'>
          <iso>file:///data/md0/DVD/en_windows_server_2008_r2_standard_enterprise_datacenter_and_web_with_sp1_x64_dvd_617601.iso</iso>
        </install>
      </os>
      <disk>
        <size>40</size>
      </disk>
      <description>Windows2008</description>
        <files>
            <file name="C:UsersAdministratorAppDataRoamingMicrosoftWindowsStart MenuProgramsStartupcloud.bat" type="url">
                file:///data/nvme0n1/oz/cloud.bat
            </file>
        </files>
    </template>
    windows2008.tdl
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
      <settings pass="windowsPE">
        <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <DiskConfiguration>
        <WillShowUI>OnError</WillShowUI>
        <Disk>
          <CreatePartitions>
            <CreatePartition>
              <Order>1</Order>
              <Size>1</Size>
              <Type>Primary</Type>
            </CreatePartition>
          </CreatePartitions>
          <DiskID>0</DiskID>
          <WillWipeDisk>true</WillWipeDisk>
          <ModifyPartitions>
            <ModifyPartition>
              <Active>true</Active>
              <Extend>true</Extend>
              <Format>NTFS</Format>
              <Label>C drive</Label>
              <Letter>C</Letter>
              <Order>1</Order>
              <PartitionID>1</PartitionID>
            </ModifyPartition>
          </ModifyPartitions>
        </Disk>
          </DiskConfiguration>
          <ImageInstall>
        <OSImage>
          <InstallFrom>
            <MetaData wcm:action="add">
              <Key>/IMAGE/INDEX</Key>
              <Value>1</Value>
            </MetaData>
          </InstallFrom>
          <InstallTo>
            <DiskID>0</DiskID>
            <PartitionID>1</PartitionID>
          </InstallTo>
          <WillShowUI>OnError</WillShowUI>
        </OSImage>
          </ImageInstall>
          <UserData>
        <AcceptEula>true</AcceptEula>
          </UserData>
        </component>
        <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" 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>
          <SystemLocale>en-US</SystemLocale>
          <UILanguage>en-US</UILanguage>
          <UserLocale>en-US</UserLocale>
        </component>
      </settings>
      <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" 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>Ct@2017Yun!@$%.CN</Value>
          <PlainText>true</PlainText>
        </AdministratorPassword>
          </UserAccounts>
          <AutoLogon>
        <Password>
          <Value>123123</Value>
          <PlainText>true</PlainText>
        </Password>
        <Enabled>true</Enabled>
        <LogonCount>5</LogonCount>
        <Username>administrator</Username>
          </AutoLogon>
          <RegisteredOwner/>
          <OOBE>
        <HideEULAPage>true</HideEULAPage>
        <ProtectYourPC>3</ProtectYourPC>
          </OOBE>
          <FirstLogonCommands>
        <SynchronousCommand wcm:action="add">
          <Order>1</Order>
          <Description>Shutting down Windows</Description>
          <CommandLine>cmd /C shutdown /s /t 0</CommandLine>
        </SynchronousCommand>
          </FirstLogonCommands>
        </component>
      </settings>
    </unattend>
    windows2008.ks
  • 相关阅读:
    CSS简单的四种引入方式
    html之表单标签
    html基础标签之head和body标签
    Python之协程的实现
    Python之实现不同版本线程池
    Python多进程之multiprocessing模块和进程池的实现
    Python之queue模块
    sqlserver 时间格式化
    关于sql server 代理(已禁用代理xp)解决办法
    sqlserver如何启动数据库邮件
  • 原文地址:https://www.cnblogs.com/gushiren/p/9512366.html
Copyright © 2020-2023  润新知