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

  1. <template>
  2. <name>Windows-gushiren</name>
  3. <os>
  4. <name>Windows</name>
  5. <version>2008</version>
  6. <arch>x86_64</arch>
  7. <install type='iso'>
  8. <iso>file:///data/md0/DVD/en_windows_server_2008_r2_standard_enterprise_datacenter_and_web_with_sp1_x64_dvd_617601.iso</iso>
  9. </install>
  10. </os>
  11. <disk>
  12. <size>40</size>
  13. </disk>
  14. <description>Windows2008</description>
  15. <files>
  16. <file name="C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\cloud.bat" type="url">
  17. file:///data/nvme0n1/oz/cloud.bat
  18. </file>
  19. </files>
  20. </template>

windows2008.tdl

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <unattend xmlns="urn:schemas-microsoft-com:unattend">
  3. <settings pass="windowsPE">
  4. <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">
  5. <DiskConfiguration>
  6. <WillShowUI>OnError</WillShowUI>
  7. <Disk>
  8. <CreatePartitions>
  9. <CreatePartition>
  10. <Order>1</Order>
  11. <Size>1</Size>
  12. <Type>Primary</Type>
  13. </CreatePartition>
  14. </CreatePartitions>
  15. <DiskID>0</DiskID>
  16. <WillWipeDisk>true</WillWipeDisk>
  17. <ModifyPartitions>
  18. <ModifyPartition>
  19. <Active>true</Active>
  20. <Extend>true</Extend>
  21. <Format>NTFS</Format>
  22. <Label>C drive</Label>
  23. <Letter>C</Letter>
  24. <Order>1</Order>
  25. <PartitionID>1</PartitionID>
  26. </ModifyPartition>
  27. </ModifyPartitions>
  28. </Disk>
  29. </DiskConfiguration>
  30. <ImageInstall>
  31. <OSImage>
  32. <InstallFrom>
  33. <MetaData wcm:action="add">
  34. <Key>/IMAGE/INDEX</Key>
  35. <Value>1</Value>
  36. </MetaData>
  37. </InstallFrom>
  38. <InstallTo>
  39. <DiskID>0</DiskID>
  40. <PartitionID>1</PartitionID>
  41. </InstallTo>
  42. <WillShowUI>OnError</WillShowUI>
  43. </OSImage>
  44. </ImageInstall>
  45. <UserData>
  46. <AcceptEula>true</AcceptEula>
  47. </UserData>
  48. </component>
  49. <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">
  50. <SetupUILanguage>
  51. <UILanguage>en-US</UILanguage>
  52. </SetupUILanguage>
  53. <SystemLocale>en-US</SystemLocale>
  54. <UILanguage>en-US</UILanguage>
  55. <UserLocale>en-US</UserLocale>
  56. </component>
  57. </settings>
  58. <settings pass="oobeSystem">
  59. <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">
  60. <UserAccounts>
  61. <AdministratorPassword>
  62. <Value>Ct@2017Yun!@$%.CN</Value>
  63. <PlainText>true</PlainText>
  64. </AdministratorPassword>
  65. </UserAccounts>
  66. <AutoLogon>
  67. <Password>
  68. <Value>123123</Value>
  69. <PlainText>true</PlainText>
  70. </Password>
  71. <Enabled>true</Enabled>
  72. <LogonCount>5</LogonCount>
  73. <Username>administrator</Username>
  74. </AutoLogon>
  75. <RegisteredOwner/>
  76. <OOBE>
  77. <HideEULAPage>true</HideEULAPage>
  78. <ProtectYourPC>3</ProtectYourPC>
  79. </OOBE>
  80. <FirstLogonCommands>
  81. <SynchronousCommand wcm:action="add">
  82. <Order>1</Order>
  83. <Description>Shutting down Windows</Description>
  84. <CommandLine>cmd /C shutdown /s /t 0</CommandLine>
  85. </SynchronousCommand>
  86. </FirstLogonCommands>
  87. </component>
  88. </settings>
  89. </unattend>

windows2008.ks

Oz 创建Windows2008R2镜像的更多相关文章

  1. Oz 创建CentOS7镜像

    参考链接: https://github.com/clalancette/oz/wiki/Oz-template-description-language https://github.com/cla ...

  2. Oz 创建CentOS6镜像

    参考 http://linuxblind.blog.51cto.com/7616603/1655550/ http://www.chenshake.com/oz-making-centos-mirro ...

  3. Oz 创建Debian8镜像

    <template> <name>Debian8.7-zxy</name> <os> <name>Debian</name> & ...

  4. Oz 创建Ubuntu镜像

    参考链接: http://blog.csdn.net/gcogle/article/details/52767135http://tlinux.blog.51cto.com/7288656/17497 ...

  5. 如何使用win7自带的备份还原以及创建系统镜像------傻瓜式教程

    对于经常鼓捣电脑的童鞋来说,装系统是一件极其平常的事情,不过系统装多了之后,我们会感到比较烦躁,因为每一次装系统意味着驱动的重新安装,程序的重新安装,每次这么鼓捣几次,半天时间就花在这上面了,效率是在 ...

  6. 基于Dockerfile创建docker镜像

    0.先创建一个文件夹img mkdir img 1.Linux上新建3个文件 2.文件内容分别写入 (1)Dockerfile中 # 基于的基础镜像centos FROM centos # 维护该镜像 ...

  7. Mycat 镜像-创建 Docker 镜像

    将 Mycat-server 创建到镜像,使其能够进行容器化部署,我们需要创建 Dockerfile 并在文件中安装其依赖项,使用 centos 做为 base 镜像,并安装 jdk 依赖即可,因此创 ...

  8. 标记,上传并下载自己创建的镜像 image

    1. 首先使用 docker images 查看已有镜像: 2. 获得 docker-whale 的 IMAGE ID,然后为 docker-whale 镜像 image 打上标签 Tag.使用命令: ...

  9. docker创建nginx镜像

    注意:此处不是用的dockerfile创建的镜像,只是用来搞一搞 首先你的系统里面要安装docker,这里就不重复介绍了,可以看之前的文章: 然后再搞一个基础镜像 docker pull regist ...

随机推荐

  1. HDU(1754),线段树,单点替换,区间最值

    题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1754 线段树模板题,update功能是单点替换,query是访问区间最大值. #include < ...

  2. ios 创建自己的.a文件

    1:首先创建个 静态工程(Cocoa Touch Static Library); 方法名字,一定要暴露在.h文件中, 2:分别在模拟器环境和真机环境下 Analyze (shift+command+ ...

  3. 跑groud truth的disparity

    1.用这个初始化cv::Mat M(375,1242,CV_32FC1,0.0); ,就会报以下的错误: malloc(): memory corruption: 0x000000000165df40 ...

  4. iterm2配置项

    1. 启动终端Terminal2. 进入当前用户的home目录    输入cd ~3. 创建.bash_profile    输入touch .bash_profile 在导入并应用完颜色方案之后,通 ...

  5. 【Java-POJO-设计模式】JavaEE中的POJO与设计模式中多态继承的冲突

    最近看<重构>谈到利用OO的多态来优化 if else 和 switch 分支语句,但是我发现OO语法中的多态在使用框架的JavaEE中是无法实践的.对此,我感到十分的疑惑,加之之前项目中 ...

  6. 第44章 MPU6050传感器—姿态检测—零死角玩转STM32-F429系列

    第44章     MPU6050传感器—姿态检测 全套200集视频教程和1000页PDF教程请到秉火论坛下载:www.firebbs.cn 野火视频教程优酷观看网址:http://i.youku.co ...

  7. mongodb基础环境部署(windows系统下)

    Normal 0 false 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE /* Style Definitions */ table.MsoNorma ...

  8. Shell学习——数值运算

    在Bash shell中,可以利用let.(( )).[]执行基本的算术操作,在高级操作时,使用expr和bc两个工具1.let[root@client02 ~]# no1=4[root@client ...

  9. get请求中文乱码问题

    Get中文乱码解决 Get请求类型: <form action="${pageContext.request.contextPath}/addArtical.action"  ...

  10. 内置函数系列之 filter

    filter 过滤 基本语法: s = filter(function,iterable) 将可迭代对象的每一个元素,传进函数中,根据函数中的判断条件,返回True或False 返回True的是保留的 ...