added autoyast file for installing sles to a xen host
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1803 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -2,7 +2,7 @@ | ||||
| # Accepts directories to build packages from on the commandline, but defaults | ||||
| # to building: perl-xCAT-2.0 and xCAT-client-2.0 | ||||
|  | ||||
| packages="${@:-perl-xCAT-2.0 xCAT-client-2.0}" | ||||
| packages="${@:-perl-xCAT xCAT-client}" | ||||
|  | ||||
| for pkg in $packages; do | ||||
|   mkdir -p debs/$pkg | ||||
|   | ||||
| @@ -1,3 +1,9 @@ | ||||
| perl-xcat (2.0-2) testing; urgency=low | ||||
|  | ||||
|   * post-release snap | ||||
|  | ||||
|  -- Isaac Freeman <ifreeman@us.ibm.com>  Mon, 16 Jun 2008 15:35:15 -0400 | ||||
|  | ||||
| perl-xcat (2.0-1) lenny; urgency=low | ||||
|  | ||||
|   * Initial release  | ||||
|   | ||||
| @@ -1 +0,0 @@ | ||||
| perl-xcat_2.0-1_all.deb admin extra | ||||
|   | ||||
| @@ -1,3 +1,9 @@ | ||||
| xcat-client (2.0-2) testing; urgency=low | ||||
|  | ||||
|   * post-release snap | ||||
|  | ||||
|  -- Isaac Freeman <ifreeman@us.ibm.com>  Mon, 16 Jun 2008 15:35:47 -0400 | ||||
|  | ||||
| xcat-client (2.0-1) lenny; urgency=low | ||||
|  | ||||
|   * Initial release | ||||
|   | ||||
| @@ -7,6 +7,6 @@ Standards-Version: 3.7.2 | ||||
|  | ||||
| Package: xcat-client | ||||
| Architecture: any | ||||
| Depends: ${perl:Depends}, perl-xcat, libsys-syslog-perl, libio-socket-ssl-perl, libxml-simple-perl | ||||
| Depends: ${perl:Depends}, perl-xcat (>= 2.0-2), libsys-syslog-perl, libio-socket-ssl-perl, libxml-simple-perl | ||||
| Description: Core executables and data of the xCAT management project | ||||
|  xCAT-client provides the fundamental xCAT commands (chtab, chnode, rpower, etc) helpful in administrating systems at scale, with particular attention paid to large HPC clusters. | ||||
|   | ||||
| @@ -1,2 +0,0 @@ | ||||
| xcat-client_2.0-2_i386.deb admin extra | ||||
| xcat-client_2.0-2_i386.deb admin extra | ||||
|   | ||||
| @@ -53,21 +53,23 @@ sub process_request { | ||||
|       s/^/$request->{cwd}->[0]\//; | ||||
|     } | ||||
|  | ||||
|     # /dev/cdrom is a symlink on some systems, we need to see if it points to a | ||||
|     # block device. | ||||
|     # /dev/cdrom is a symlink on some systems. We need to be able to determine | ||||
|     # if the arg points to a block device. | ||||
|     if (-l $_) {  | ||||
|       my $link = readlink($_); | ||||
|  | ||||
|       # Symlinks can be relative, i.e., "../../foo" | ||||
|       if ($link =~ m{^/}) | ||||
|         { $file = $link; } | ||||
|       else | ||||
|         { $file = dirname($_) . "/" . $link; } | ||||
|         { $file = dirname($_) . "/" . $link; } # Unix can handle "/foo/../bar" | ||||
|     } | ||||
|     else { $file = $_; } | ||||
|  | ||||
|     my $mntopts; | ||||
|     if (-r $file and -b $file) # Block device? | ||||
|       { $mntopts = "-o ro"; } | ||||
|     elsif (-r $file and -f $file)  | ||||
|     elsif (-r $file and -f $file) # Assume ISO file | ||||
|       { $mntopts = "-o ro,loop"; } | ||||
|     else { | ||||
|       $callback->({error=>"The management server was unable to find/read $file. Ensure that file exists on the server at the specified location."}); | ||||
|   | ||||
							
								
								
									
										143
									
								
								xCAT-server/share/xcat/install/sles/xen.tmpl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										143
									
								
								xCAT-server/share/xcat/install/sles/xen.tmpl
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,143 @@ | ||||
| <?xml version="1.0"?> | ||||
| <!DOCTYPE profile SYSTEM "/usr/share/YaST2/include/autoinstall/profile.dtd"> | ||||
| <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> | ||||
|   <bootloader> | ||||
|     <write_bootloader config:type="boolean">true</write_bootloader> | ||||
|     <activate config:type="boolean">true</activate> | ||||
|     <kernel_parameters></kernel_parameters> | ||||
|     <lba_support config:type="boolean">false</lba_support> | ||||
|     <linear config:type="boolean">false</linear> | ||||
|     <location>mbr</location> | ||||
|  | ||||
|     <global> | ||||
|       <activate>true</activate> | ||||
|       <boot_root>true</boot_root> | ||||
|       <default>XEN</default> | ||||
|       <timeout config:type="integer">8</timeout>  | ||||
|     </global> | ||||
|     <loader_type>grub</loader_type> | ||||
|     <sections config:type="list"> | ||||
|       <section> | ||||
| 	<append>resume=/dev/sda2 xencons=ttyS console=ttyS0,19200 splash=silent showopts</append> | ||||
| 	<image>/boot/vmlinuz-xen</image> | ||||
| 	<initrd>/boot/initrd-xen</initrd> | ||||
| 	<lines_cache_id>0</lines_cache_id> | ||||
| 	<name>XEN</name> | ||||
| 	<original_name>xen</original_name> | ||||
| 	<root>/dev/sda2</root> | ||||
| 	<type>xen</type> | ||||
| 	<xen>/boot/xen.gz</xen> | ||||
| 	<xen_append>console=com1 com1=19200</xen_append> | ||||
|       </section> | ||||
|       <section> | ||||
| 	<append>resume=/dev/hda1 console=ttyS0,19200 console=tty0 splash=silent showopts</append> | ||||
| 	<image>/boot/vmlinuz</image> | ||||
| 	<initial>1</initial> | ||||
| 	<initrd>/boot/initrd</initrd> | ||||
| 	<kernel>/boot/vmlinuz</kernel> | ||||
| 	<lines_cache_id>1</lines_cache_id> | ||||
| 	<name>SUSE Linux Enterprise Server 10</name> | ||||
| 	<original_name>linux</original_name> | ||||
| 	<root>/dev/hda2</root> | ||||
| 	<type>image</type> | ||||
|       </section> | ||||
|       <section> | ||||
| 	<append>showopts ide=nodma apm=off acpi=off noresume edd=off 3</append> | ||||
| 	<kernel>/boot/vmlinuz</kernel> | ||||
| 	<initrd>/boot/initrd</initrd> | ||||
| 	<lines_cache_id>3</lines_cache_id> | ||||
| 	<name>Failsafe -- SUSE Linux Enterprise Server 10</name> | ||||
| 	<original_name>failsafe</original_name> | ||||
| 	<root>/dev/hda2</root> | ||||
| 	<type>image</type> | ||||
| 	<vga>normal</vga> | ||||
|       </section> | ||||
|     </sections> | ||||
|   </bootloader> | ||||
|   <general> | ||||
|     <clock> | ||||
|       <hwclock>GMT</hwclock> | ||||
|       <timezone>#TABLE:site:key=timezone:value#</timezone> | ||||
|     </clock> | ||||
|     <keyboard> | ||||
|       <keymap>english-us</keymap> | ||||
|     </keyboard> | ||||
|     <language>en_US</language> | ||||
|     <mode> | ||||
|       <confirm config:type="boolean">false</confirm> | ||||
|       <forceboot config:type="boolean">false</forceboot> | ||||
|       <interactive_boot config:type="boolean">false</interactive_boot> | ||||
|       <reboot config:type="boolean">true</reboot> | ||||
|     </mode> | ||||
|     <mouse> | ||||
|       <id>non</id> | ||||
|     </mouse> | ||||
|   </general> | ||||
|   <partitioning config:type="list"> | ||||
|     <drive> | ||||
|       <device>/dev/sda</device> | ||||
|       <initialize config:type="boolean">true</initialize> | ||||
|       <use>all</use> | ||||
|     </drive> | ||||
|   </partitioning> | ||||
|   <software> | ||||
|     <patterns config:type="list"> | ||||
|       <pattern>base</pattern> | ||||
|       <pattern>x11</pattern> | ||||
|       <pattern>xen_server</pattern> | ||||
|       <pattern>xen_server-32bit</pattern> | ||||
|       <pattern>32bit</pattern> | ||||
|     </patterns> | ||||
|     <packages config:type="list"> | ||||
|       <package>stunnel</package> | ||||
|       <package>xntp</package> | ||||
|       <package>rsync</package> | ||||
|       <package>xen</package> | ||||
|       <package>xen-libs</package> | ||||
|       <package>xen-tools</package> | ||||
|       <package>xen-tools-ioemu</package> | ||||
|       <package>kernel-xen</package> | ||||
|       <package>virt-manager</package> | ||||
|       <package>xen-kmp-kdump</package> | ||||
|       <package>xen-kmp-smp</package> | ||||
|     </packages> | ||||
|   </software> | ||||
|   <configure> | ||||
|     <users config:type="list"> | ||||
|       <user> | ||||
|         <username>root</username> | ||||
|         <user_password>#CRYPT:passwd:key=system,username=root:password#</user_password> | ||||
|         <encrypted config:type="boolean">true</encrypted> | ||||
|         <forename/> | ||||
|         <surname/> | ||||
|       </user> | ||||
|     </users> | ||||
|     <networking> | ||||
|       <dhcp_options> | ||||
|         <dhclient_hostname_option>AUTO</dhclient_hostname_option> | ||||
|       </dhcp_options> | ||||
|       <dns> | ||||
|         <dhcp_hostname config:type="boolean">true</dhcp_hostname> | ||||
|         <dhcp_resolv config:type="boolean">true</dhcp_resolv> | ||||
|         <domain>local</domain> | ||||
|         <hostname>linux</hostname> | ||||
|       </dns> | ||||
|       <interfaces config:type="list"> | ||||
|         <interface> | ||||
|           <bootproto>dhcp</bootproto> | ||||
|           <device>eth0</device> | ||||
|           <startmode>onboot</startmode> | ||||
|         </interface> | ||||
|       </interfaces> | ||||
|       <routing> | ||||
|         <ip_forward config:type="boolean">false</ip_forward> | ||||
|         <routes config:type="list"/> | ||||
|       </routing> | ||||
|     </networking> | ||||
|     <scripts> | ||||
|    #INCLUDE:../scripts/pre.sles# | ||||
|    #INCLUDE:../scripts/chroot.sles# | ||||
|    #INCLUDE:../scripts/post.sles# | ||||
|     </scripts> | ||||
|   </configure> | ||||
| </profile> | ||||
		Reference in New Issue
	
	Block a user