Windows Template Customization
Hi,
currently I only see domain and time zone options in the Sysprep category for Windows templates, which is a very small subset of what Sysprep actually supports.
Is this still work in progress and will there be more options in the final product (Admin password, host name, network configuration, domain account / credentials to join the specified domain, etc.)?
Thanks,
Sabo
Responses
You have sysprep templates that RHEV Manager uses:
/usr/share/rhevm/sysprep/sysprep.xp
/usr/share/rhevm/sysprep/sysprep.2k8
/usr/share/rhevm/sysprep/sysprep.2k8x86
/usr/share/rhevm/sysprep/sysprep.w7
/usr/share/rhevm/sysprep/sysprep.2k3
/usr/share/rhevm/sysprep/sysprep.w7x64
The template used is determined by the OS name you selected when creating the VM/Template.
These can be modified by you per Windows version to include your own scripts/requirements
Additionally, if you'll be looking into the sysprep templates you'll find some parameters that are bounded by $ chars, $parameter$
These are dynamically replaced by the RHEV-Manager when creating the VM from the template.
Example for the sysprep.w7 file:
grep '\$' *.w7 results in:
<Key>$ProductKey$</Key>
<Organization>$OrgNameh$</Organization>
<Domain>$JoinDomain$</Domain>
<Password>$DomainAdminPassword$</Password>
<Username>$DomainAdmin$</Username>
<JoinDomain>$JoinDomain$</JoinDomain>
<ComputerName>$ComputerName$</ComputerName>
<TimeZone>$TimeZone$</TimeZone>
<Value>$AdminPassword$</Value>
<Value>$AdminPassword$</Value>
Those values are Either taken from the configuration fields (rhevm-config), the virtual machine properties ($ComputerName$) and the sysprep tab of the template.
where we have to put the product key for the different versions?
In rhevm-config, the keys are:
ProductKey2003: "Product Key (for Windows 2003)" (Value Type: String)
ProductKey2003x64: "Product Key (for Windows 2003 x64)" (Value Type: String)
ProductKey2008: "Product Key (for Windows 2008)" (Value Type: String)
ProductKey2008R2: "Product Key (for Windows 2008 R2)" (Value Type: String)
ProductKey2008x64: "Product Key (for Windows 2008 x64)" (Value Type: String)
ProductKey: "Product Key (for Windows XP)" (Value Type: String)
ProductKeyWindow7: "Product Key (for Windows 7)" (Value Type: String)
ProductKeyWindow7x64: "Product Key (for Windows 7 x64)" (Value Type: String
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
