Various changes regarding Hyper-V 2012
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14747 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -91,7 +91,7 @@ sub check_uefi_support { | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	if ($ntent->{os} =~ /win/) { #UEFI support is a tad different, need to punt.. | ||||
| 	if ($ntent->{os} =~ /^win/ or $ntent->{os} =~ /^hyperv/) { #UEFI support is a tad different, need to punt.. | ||||
| 		return 2; | ||||
| 	} | ||||
| 	return 1; | ||||
|   | ||||
| @@ -27,7 +27,7 @@ sub handled_commands | ||||
| { | ||||
|     return { | ||||
|             copycd    => "windows", | ||||
|             mkinstall => "nodetype:os=(win.*|imagex)", | ||||
|             mkinstall => "nodetype:os=(hyperv.*|win.*|imagex)", | ||||
|             mkwinshell => "windows", | ||||
|             mkimage => "nodetype:os=imagex", | ||||
|             }; | ||||
| @@ -506,7 +506,7 @@ sub copycd | ||||
|         #this plugin needs $mntpath... | ||||
|         return; | ||||
|     } | ||||
|     if ($distname and $distname !~ /^win.*/) | ||||
|     if ($distname and $distname !~ /^win.*/ and $distname !~ /^hyperv.*/) | ||||
|     { | ||||
|         #If they say to call it something other than win<something>, give up? | ||||
|         return; | ||||
| @@ -536,7 +536,7 @@ sub copycd | ||||
| 					my $eiline = <$eicfg>; | ||||
| 					$eiline = <$eicfg>; | ||||
| 					if ($eiline =~ /Hyper/) { | ||||
| 						$distname = "winhv2012"; | ||||
| 						$distname = "hyperv2012"; | ||||
| 					} | ||||
| 				}  | ||||
| 				unless ($distname) { | ||||
|   | ||||
| @@ -0,0 +1,120 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <unattend xmlns="urn:schemas-microsoft-com:unattend"> | ||||
|     <servicing></servicing> | ||||
|     <settings pass="windowsPE"> | ||||
|         <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> | ||||
|             <UserLocale>en-US</UserLocale> | ||||
|             <UILanguage>en-US</UILanguage> | ||||
|             <SystemLocale>en-US</SystemLocale> | ||||
|             <InputLocale>0409:00000409</InputLocale> | ||||
|         </component> | ||||
|         <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"> | ||||
|             <DiskConfiguration> | ||||
|                 <WillShowUI>OnError</WillShowUI> | ||||
|                 <Disk> | ||||
|                     <DiskID>0</DiskID> | ||||
|                     <WillWipeDisk>true</WillWipeDisk> | ||||
|                     <CreatePartitions> | ||||
|                         <CreatePartition> | ||||
|                             <Order>1</Order> | ||||
|                             <Type>Primary</Type> | ||||
|                             <Extend>true</Extend> | ||||
|                         </CreatePartition> | ||||
|                     </CreatePartitions> | ||||
|                 </Disk> | ||||
|             </DiskConfiguration> | ||||
|             <DynamicUpdate> | ||||
|                 <Enable>false</Enable> | ||||
|             </DynamicUpdate> | ||||
|             <ImageInstall> | ||||
|                 <OSImage> | ||||
|                     <InstallTo> | ||||
|                         <DiskID>0</DiskID> | ||||
|                         <PartitionID>1</PartitionID> | ||||
|                     </InstallTo> | ||||
|                     <InstallFrom> | ||||
|                         <MetaData wcm:action="add"> | ||||
|                             <Key>/IMAGE/NAME</Key> | ||||
|                             <Value>Hyper-V Server 2012 SERVERHYPERCORE</Value> | ||||
|                         </MetaData> | ||||
|                     </InstallFrom> | ||||
|                 </OSImage> | ||||
|             </ImageInstall> | ||||
|             <UserData> | ||||
|                 <AcceptEula>true</AcceptEula> | ||||
|                 <FullName>xCAT USER</FullName> | ||||
|                 <Organization>xCAT</Organization> | ||||
|             </UserData> | ||||
|         </component> | ||||
|     </settings> | ||||
|     <settings pass="offlineServicing"> | ||||
|         <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" 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>I:\drivers\#TABLE:nodetype:$NODE:os#\#TABLE:nodetype:$NODE:arch#\Drivers</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"> | ||||
|             <Display> | ||||
|                 <ColorDepth>32</ColorDepth> | ||||
|                 <HorizontalResolution>1024</HorizontalResolution> | ||||
|                 <VerticalResolution>768</VerticalResolution> | ||||
|             </Display> | ||||
|             <OOBE> | ||||
|                 <HideEULAPage>true</HideEULAPage> | ||||
|                 <ProtectYourPC>1</ProtectYourPC> | ||||
|                 <SkipMachineOOBE>false</SkipMachineOOBE> | ||||
|                 <SkipUserOOBE>false</SkipUserOOBE> | ||||
|             </OOBE> | ||||
| 	        <FirstLogonCommands> | ||||
|             </FirstLogonCommands> | ||||
|             <UserAccounts> | ||||
|                 <AdministratorPassword> | ||||
|                     <Value>#TABLE:passwd:key=system,username=Administrator:password#</Value> | ||||
|                     <PlainText>true</PlainText> | ||||
|                 </AdministratorPassword> | ||||
|             </UserAccounts> | ||||
|         </component> | ||||
|     </settings> | ||||
|     <settings pass="auditUser"> | ||||
|         <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"> | ||||
|             <Display> | ||||
|                 <ColorDepth>32</ColorDepth> | ||||
|                 <HorizontalResolution>1024</HorizontalResolution> | ||||
|                 <VerticalResolution>768</VerticalResolution> | ||||
|             </Display> | ||||
|         </component> | ||||
|     </settings> | ||||
|     <settings pass="specialize"> | ||||
|         <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" 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"> | ||||
|             <fDenyTSConnections>false</fDenyTSConnections> | ||||
|         </component> | ||||
|         <component name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions" 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"> | ||||
|             <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>Remote Desktop</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"> | ||||
|         </component> | ||||
|         <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"> | ||||
|             <ComputerName>#TABLE:nodelist:$NODE:node#</ComputerName> | ||||
|             <TimeZone>#WINTIMEZONE#</TimeZone> | ||||
|         </component> | ||||
|     </settings> | ||||
|     <settings pass="auditSystem"> | ||||
|     </settings> | ||||
|     <cpi:offlineImage cpi:source="wim:i:/win2k8r2/x86_64/sources/install.wim#Hyper-V Server 2012 SERVERHYPERCORE" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> | ||||
| </unattend> | ||||
| @@ -0,0 +1,130 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <unattend xmlns="urn:schemas-microsoft-com:unattend"> | ||||
|     <servicing></servicing> | ||||
|     <settings pass="windowsPE"> | ||||
|         <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> | ||||
|             <UserLocale>en-US</UserLocale> | ||||
|             <UILanguage>en-US</UILanguage> | ||||
|             <SystemLocale>en-US</SystemLocale> | ||||
|             <InputLocale>0409:00000409</InputLocale> | ||||
|         </component> | ||||
|         <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"> | ||||
|             <DiskConfiguration> | ||||
|                 <WillShowUI>OnError</WillShowUI> | ||||
|                 <Disk> | ||||
|                     <DiskID>0</DiskID> | ||||
|                     <WillWipeDisk>true</WillWipeDisk> | ||||
|                     <CreatePartitions> | ||||
|                         <CreatePartition> | ||||
|                             <Order>1</Order> | ||||
|                             <Type>EFI</Type> | ||||
|                             <Size>50</Size> | ||||
|                         </CreatePartition> | ||||
|                         <CreatePartition> | ||||
|                             <Order>2</Order> | ||||
|                             <Type>MSR</Type> | ||||
|                             <Size>128</Size> | ||||
|                         </CreatePartition> | ||||
|                         <CreatePartition> | ||||
|                             <Order>3</Order> | ||||
|                             <Type>Primary</Type> | ||||
|                             <Extend>true</Extend> | ||||
|                         </CreatePartition> | ||||
|                     </CreatePartitions> | ||||
|                 </Disk> | ||||
|             </DiskConfiguration> | ||||
|             <DynamicUpdate> | ||||
|                 <Enable>false</Enable> | ||||
|             </DynamicUpdate> | ||||
|             <ImageInstall> | ||||
|                 <OSImage> | ||||
|                     <InstallTo> | ||||
|                         <DiskID>0</DiskID> | ||||
|                         <PartitionID>3</PartitionID> | ||||
|                     </InstallTo> | ||||
|                     <InstallFrom> | ||||
|                         <MetaData wcm:action="add"> | ||||
|                             <Key>/IMAGE/NAME</Key> | ||||
|                             <Value>Hyper-V Server 2012 SERVERHYPERCORE</Value> | ||||
|                         </MetaData> | ||||
|                     </InstallFrom> | ||||
|                 </OSImage> | ||||
|             </ImageInstall> | ||||
|             <UserData> | ||||
|                 <AcceptEula>true</AcceptEula> | ||||
|                 <FullName>xCAT USER</FullName> | ||||
|                 <Organization>xCAT</Organization> | ||||
|             </UserData> | ||||
|         </component> | ||||
|     </settings> | ||||
|     <settings pass="offlineServicing"> | ||||
|         <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" 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>I:\drivers\#TABLE:nodetype:$NODE:os#\#TABLE:nodetype:$NODE:arch#\Drivers</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"> | ||||
|             <Display> | ||||
|                 <ColorDepth>32</ColorDepth> | ||||
|                 <HorizontalResolution>1024</HorizontalResolution> | ||||
|                 <VerticalResolution>768</VerticalResolution> | ||||
|             </Display> | ||||
|             <OOBE> | ||||
|                 <HideEULAPage>true</HideEULAPage> | ||||
|                 <ProtectYourPC>1</ProtectYourPC> | ||||
|                 <SkipMachineOOBE>false</SkipMachineOOBE> | ||||
|                 <SkipUserOOBE>false</SkipUserOOBE> | ||||
|             </OOBE> | ||||
| 	        <FirstLogonCommands> | ||||
|             </FirstLogonCommands> | ||||
|             <UserAccounts> | ||||
|                 <AdministratorPassword> | ||||
|                     <Value>#TABLE:passwd:key=system,username=Administrator:password#</Value> | ||||
|                     <PlainText>true</PlainText> | ||||
|                 </AdministratorPassword> | ||||
|             </UserAccounts> | ||||
|         </component> | ||||
|     </settings> | ||||
|     <settings pass="auditUser"> | ||||
|         <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"> | ||||
|             <Display> | ||||
|                 <ColorDepth>32</ColorDepth> | ||||
|                 <HorizontalResolution>1024</HorizontalResolution> | ||||
|                 <VerticalResolution>768</VerticalResolution> | ||||
|             </Display> | ||||
|         </component> | ||||
|     </settings> | ||||
|     <settings pass="specialize"> | ||||
|         <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" 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"> | ||||
|             <fDenyTSConnections>false</fDenyTSConnections> | ||||
|         </component> | ||||
|         <component name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions" 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"> | ||||
|             <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>Remote Desktop</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"> | ||||
|         </component> | ||||
|         <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"> | ||||
|             <ComputerName>#TABLE:nodelist:$NODE:node#</ComputerName> | ||||
|             <TimeZone>#WINTIMEZONE#</TimeZone> | ||||
|         </component> | ||||
|     </settings> | ||||
|     <settings pass="auditSystem"> | ||||
|     </settings> | ||||
|     <cpi:offlineImage cpi:source="wim:i:/win2k8r2/x86_64/sources/install.wim#Hyper-V Server 2012 SERVERHYPERCORE" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> | ||||
| </unattend> | ||||
		Reference in New Issue
	
	Block a user