Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

experimental solaris 11 express version

  • Loading branch information...
commit 6a1bca718377de04c02040ba6c17736b46f56465 1 parent 0e2f3b1
@jedi4ever authored
View
60 lib/veewee/scancode.rb
@@ -19,8 +19,13 @@ def self.send_sequence(vboxcmd,vname,sequence,webport)
# A workaround is to send the scancodes one-by-one.
codes=""
for keycode in keycodes.split(' ') do
+
+ unless keycode=="wait"
send_keycode(vboxcmd,vname,keycode)
sleep 0.01
+ else
+ sleep 1
+ end
end
#sleep after each sequence (needs to be param)
sleep 1
@@ -42,38 +47,51 @@ def self.string_to_keycode(thestring)
#http://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html
k=Hash.new
- k['1'] = '02' ; k['2'] = '03' ; k['3'] = '04'; k['4']= '05' ;k['5']='06'; k['6'] = '07' ; k['7'] = '08'; k['8'] = '09'; k['9']= '0a'; k['0']='0b'; k['-'] = '0c'; k['='] = '0d' ;
- k['Tab'] = '0f';
- k['q'] = '10' ; k['w'] = '11' ; k['e'] = '12'; k['r'] = '13' ; k['t'] = '14' ; k['y'] = '15'; k['u']= '16' ; k['i']='17'; k['o'] = '18' ; k['p'] = '19' ;
+ k['1'] = '02 82' ; k['2'] = '03 83' ; k['3'] = '04 84'; k['4']= '05 85' ;
+ k['5']='06 86'; k['6'] = '07 87' ; k['7'] = '08 88'; k['8'] = '09 89'; k['9']= '0a 8a';
+ k['0']='0b 8b'; k['-'] = '0c 8c'; k['='] = '0d 8d' ;
+ k['Tab'] = '0f 8f';
+ k['q'] = '10 90' ; k['w'] = '11 91' ; k['e'] = '12 92';
+ k['r'] = '13 93' ; k['t'] = '14 94' ; k['y'] = '15 95';
+ k['u']= '16 96' ; k['i']='17 97'; k['o'] = '18 98' ; k['p'] = '19 99' ;
k['Q'] = '2a 10 aa' ; k['W'] = '2a 11 aa' ; k['E'] = '2a 12 aa'; k['R'] = '2a 13 aa' ; k['T'] = '2a 14 aa' ; k['Y'] = '2a 15 aa'; k['U']= '2a 16 aa' ; k['I']='2a 17 aa'; k['O'] = '2a 18 aa' ; k['P'] = '2a 19 aa' ;
- k['a'] = '1e'; k['s'] = '1f' ; k['d'] = '20' ; k['f'] = '21'; k['g'] = '22' ; k['h'] = '23' ; k['j'] = '24'; k['k']= '25' ; k['l']='26'; k[';'] = '27'
- k['A'] = '2a 1e aa'; k['S'] = '2a 1f aa' ; k['D'] = '2a 20 aa' ; k['F'] = '2a 21 aa'; k['G'] = '2a 22 aa' ; k['H'] = '2a 23 aa' ; k['J'] = '2a 24 aa'; k['K']= '2a 25 aa' ; k['L']='2a 26 aa';
+ k['a'] = '1e 9e'; k['s'] = '1f 9f' ; k['d'] = '20 a0' ; k['f'] = '21 a1'; k['g'] = '22 a2' ; k['h'] = '23 a3' ; k['j'] = '24 a4';
+ k['k']= '25 a5' ; k['l']='26 a6';
+ k['A'] = '2a 1e aa 9e'; k['S'] = '2a 1f aa 9f' ; k['D'] = '2a 20 aa a0' ; k['F'] = '2a 21 aa a1';
+ k['G'] = '2a 22 aa a2' ; k['H'] = '2a 23 aa a3' ; k['J'] = '2a 24 aa a4'; k['K']= '2a 25 aa a5' ; k['L']='2a 26 aa a6';
- k[';'] = '27' ;k['"']='2a 28 aa';k['\'']='28';
+ k[';'] = '27 a7' ;k['"']='2a 28 aa a8';k['\'']='28 a8';
- k['\\'] = '2b'; k['|'] = '2a 2b aa';
+ k['\\'] = '2b ab'; k['|'] = '2a 2b aa 8b';
- k['[']='1a'; k[']']='1b';
- k['<']='2a 33 aa'; k['>']='2a 34 aa';
- k['$']='2a 05 aa';
- k['+']='2a 0d aa';
+ k['[']='1a 9a'; k[']']='1b 9b';
+ k['<']='2a 33 aa b3'; k['>']='2a 34 aa b4';
+ k['$']='2a 05 aa 85';
+ k['+']='2a 0d aa 8d';
- k['z'] = '2c'; k['x'] = '2d' ; k['c'] = '2e' ; k['v'] = '2f'; k['b'] = '30' ; k['n'] = '31' ; k['m'] = '32';
- k['Z'] = '2a 2c aa'; k['X'] = '2a 2d aa' ; k['C'] = '2a 2e aa' ; k['V'] = '2a 2f aa'; k['B'] = '2a 30 aa' ; k['N'] = '2a 31 aa' ; k['M'] = '2a 32 aa';
+ k['z'] = '2c ac'; k['x'] = '2d ad' ; k['c'] = '2e ae' ; k['v'] = '2f af'; k['b'] = '30 b0' ; k['n'] = '31 b1' ;
+ k['m'] = '32 b2';
+ k['Z'] = '2a 2c aa ac'; k['X'] = '2a 2d aa ad' ; k['C'] = '2a 2e aa ae' ; k['V'] = '2a 2f aa af';
+ k['B'] = '2a 30 aa b0' ; k['N'] = '2a 31 aa b1' ; k['M'] = '2a 32 aa b2';
+
+ k[',']= '33 b3' ; k['.']='34 b4'; k['/'] = '35 b5' ;k[':'] = '2a 27 aa a7';
+ k['%'] = '2a 06 aa 8§'; k['_'] = '2a 0c aa 8c';
+ k['&'] = '2a 08 aa 88';
+ k['('] = '2a 0a aa 8a';
+ k[')'] = '2a 0b aa 8b';
- k[',']= '33' ; k['.']='34'; k['/'] = '35' ;k[':'] = '2a 27 aa';
- k['%'] = '2a 06 aa'; k['_'] = '2a 0c aa';
special=Hash.new;
- special['<Enter>'] = '1c';
- special['<Backspace>'] = '0e';
- special['<Spacebar>'] = '39';
- special['<Return>'] = '1c'
- special['<Esc>'] = '01';
- special['<Tab>'] = '0f';
+ special['<Enter>'] = '1c 9c';
+ special['<Backspace>'] = '0e 8e';
+ special['<Spacebar>'] = '39 b9';
+ special['<Return>'] = '1c 9c'
+ special['<Esc>'] = '01 81';
+ special['<Tab>'] = '0f 8f';
special['<KillX>'] = '1d 38 0e';
+ special['<Wait>'] = 'wait';
#special['<Up>'] = '01';
#special['<Down>'] = '01';
View
58 templates/solaris-11-express-i386-experimental/auto_install/ai.dtd
@@ -0,0 +1,58 @@
+<!--
+ CDDL HEADER START
+
+ The contents of this file are subject to the terms of the
+ Common Development and Distribution License (the "License").
+ You may not use this file except in compliance with the License.
+
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ or http://www.opensolaris.org/os/licensing.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+
+ When distributing Covered Code, include this CDDL HEADER in each
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ If applicable, add the following below this CDDL HEADER, with the
+ fields enclosed by brackets "[]" replaced with your own identifying
+ information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+
+ Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+
+-->
+
+<!ELEMENT auto_install (ai_instance)>
+
+<!ENTITY % target SYSTEM "target.dtd">
+%target;
+
+<!ENTITY % configuration SYSTEM "configuration.dtd">
+%configuration;
+
+<!ENTITY % software SYSTEM "software.dtd">
+%software;
+
+<!--
+ The source element, if specified, is for post installation changes
+ to the publisher for IPS. The first source element specified
+ will be considered the primary source, all additional sources
+ will be added as secondary sources.
+-->
+
+<!ELEMENT sc_manifest_file EMPTY>
+<!ATTLIST sc_manifest_file name CDATA #REQUIRED>
+<!ATTLIST sc_manifest_file URI CDATA #REQUIRED>
+
+<!ELEMENT sc_embedded_manifest (#PCDATA)>
+<!ATTLIST sc_embedded_manifest name CDATA #REQUIRED>
+
+<!ELEMENT ai_instance (target*, software+, add_drivers?, (configuration*|sc_manifest_file|sc_embedded_manifest), source*)>
+<!ATTLIST ai_instance name CDATA #REQUIRED>
+<!ATTLIST ai_instance http_proxy CDATA #IMPLIED>
+<!ATTLIST ai_instance auto_reboot (true|false) "false">
+
+<!ELEMENT add_drivers (software*, search_all?)>
+
+<!ELEMENT search_all (source?)>
+<!ATTLIST search_all addall (true|false) "false">
View
241 templates/solaris-11-express-i386-experimental/auto_install/ai_manifest.xml
@@ -0,0 +1,241 @@
+<?xml version="1.0"?>
+<!--
+CDDL HEADER START
+
+The contents of this file are subject to the terms of the
+Common Development and Distribution License (the "License").
+You may not use this file except in compliance with the License.
+
+You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+or http://www.opensolaris.org/os/licensing.
+See the License for the specific language governing permissions
+and limitations under the License.
+
+When distributing Covered Code, include this CDDL HEADER in each
+file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+If applicable, add the following below this CDDL HEADER, with the
+fields enclosed by brackets "[]" replaced with your own identifying
+information: Portions Copyright [yyyy] [name of copyright owner]
+
+CDDL HEADER END
+
+Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+-->
+<!--
+===============================================================================
+DTD sample manifest for Automatic Installer input manifest specification.
+===============================================================================
+-->
+<!DOCTYPE auto_install SYSTEM "file:///usr/share/auto_install/ai.dtd">
+<auto_install>
+ <!--
+ "auto_reboot" set to "true" may be an issue for x86 machines.
+ The boot order is not guaranteed and may cause unexpected
+ behavior. If auto_reboot is not desired, removing this
+ attribute, e.g. <ai_instance name="sample_ai_manfiest">
+ will work. "auto_reboot" is set to false by default.
+ -->
+ <ai_instance name="sample_ai_manifest" auto_reboot="true">
+ <!--
+ =======================================================================
+ <target/target_device> - selections for AI target Device specification
+
+ Disk criteria are divided into three mutually exclusive groups:
+
+ G1 - deterministic disk criteria
+ ................................
+ * target_device/disk/iscsi parameters
+ * target_device/disk/disk_name, with name_type attribute:
+ one of ctd, volid, devpath or devid
+
+ G2 - non-deterministic disk criteria
+ ..........................
+ * target_device/disk/disk_prop: Any of dev_type, dev_vendor or
+ dev_size
+
+ G3 - keyword disk criteria
+ ...........................
+ * target_device/disk/disk_keyword: "boot_disk"
+
+ Schema ai.dtd enforces following policy:
+
+ * criteria in group G1 are mutually exclusive - only
+ one can be specified at a time
+
+ * groups G1, G2 and G3 are mutually exclusive - i.e.
+ if criteria from G1 is specified, no criteria
+ from G2 or G3 are allowed and vice versa
+
+ * multiple criteria from G2 can be specified
+ =======================================================================
+ -->
+ <target>
+ <target_device>
+ <disk>
+ <!-- G1 -->
+ <!--
+ c#t#d# device name like c0t0d0 or
+ MPXIO name like c0t2000002037CD9F72d0
+ -->
+ <disk_name name="c1t0d0" name_type="ctd"/>
+ <!-- volume name set for instance by means
+ of format(1M) command
+ -->
+ <!--
+ <disk_name name="ai-disk" name_type="volid"/>
+ -->
+ <!-- device id - e.g. can be obtained by means of
+ iostat(1M) -iEn
+ -->
+ <!--
+ <disk_name name="id1,cmdk@AST31000340NS=____________9QJ2LNYY" name_type="devid"/>
+ -->
+ <!-- device path under /devices directory, e.g.
+ /pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/sd@0,0
+ -->
+ <!--
+ <disk_name name="/pci@0/pci@9/pci@0/scsi@1/sd@0,0" name_type="devpath"/>
+ -->
+ <!--
+ ISCSI target device
+
+ <iscsi name="c0d2E0001010F68">
+ <ip>192.168.1.34</ip>
+ </iscsi>
+ -->
+ <!-- G2 -->
+ <!--
+ <disk_prop dev_vendor="hitachi" dev_size="20480mb"/>
+ -->
+ <!-- G3 -->
+ <!--
+ <disk_keyword key="boot_disk"/>
+ -->
+ <!--
+ Uncomment this to force AI to find an existing Solaris
+ partition instead of creating a new one.
+ -->
+ <!--
+ <partition action="use_existing"/>
+ -->
+ <partition name="1" part_type="99">
+ <size start_sector="200" val="20480mb"/>
+ </partition>
+ <partition name="4" part_type="99">
+ <size start_sector="2000" val="20480mb"/>
+ </partition>
+ <slice name="0" is_root="true">
+ <size val="20480mb"/>
+ </slice>
+ <slice name="4">
+ <size val="20480mb"/>
+ </slice>
+ </disk>
+ </target_device>
+ </target>
+ <software name="ips">
+ <source>
+ <publisher name="solaris">
+ <origin name="http://pkg.oracle.com/solaris/release"/>
+ </publisher>
+ </source>
+ <!--
+ By default the latest build available, in the
+ specified IPS repository, is installed.
+ if another build is required, the build number has
+ to be appended to the 'entire' package in following
+ form:
+ <name="entire@0.5.11-0.build#"/>
+ -->
+ <software_data type="IPS">
+ <name>pkg:/entire</name>
+ <name>pkg:/babel_install</name>
+ </software_data>
+ <!--
+ babel_install and slim_install are group packages used to
+ define the default installation. They are removed here so
+ that they do not inhibit removal of other packages on the installed
+ system
+ -->
+ <software_data action="uninstall" type="IPS">
+ <name>pkg:/babel_install</name>
+ <name>pkg:/slim_install</name>
+ </software_data>
+ </software>
+ <add_drivers>
+ <!--
+ Driver Updates: This section is for adding driver packages to the
+ boot environment before the installation takes place. The
+ installer can then access all devices on the system. The
+ packages installed in the boot environment will also be installed
+ on the target.
+
+ A <search_all> entry performs a search for devices which are
+ missing their drivers. A repository publisher and location
+ may be specified, and that repository and its database will
+ be used. If no publisher and location is specified, the
+ configured repositories will be used.
+ (See pkg publisher command.) If <addall> is specified as
+ "true", then drivers the database says are third-party drivers
+ will be added like all others; otherwise third-party drivers
+ will not be added.
+
+ <search_all addall="true">
+ <source>
+ <publisher name="solaris">
+ <origin name="http://pkg.oracle.com/solaris/release"/>
+ </publisher>
+ </source>
+ </search_all>
+
+ <software> entries are user-provided specifications of packages
+ needed in order to perform the install. types are P5I, SVR4, DU.
+ A <software_data> action of "noinstall" inhibits adding to target.
+
+ P5I: A pkg(5) P5I file, full path is in the source/publisher/origin.
+ Path may be to a local file or an http or ftp specification.
+ <software>
+ <source>
+ <publisher>
+ <origin
+ name=
+ "http://pkg.oracle.com/solaris/release/p5i/0/driver/firewire.p5i"/>
+ </publisher>
+ </source>
+ <software_data type="P5I"/>
+ </software>
+
+ SVR4: An SVR4 package spec. The source/publisher/origin corresponds
+ to the directory containing the packages. The
+ software/software_data/name refers tp the package's top level
+ directory or the package's datastream file.
+
+ <software>
+ <source>
+ <publisher>
+ <origin name="/export/package_dir"/>
+ </publisher>
+ </source>
+ <software_data type="SVR4">
+ <name>my_disk_driver.d</name>
+ </software_data>
+ </software>
+
+ DU: An ITU (Install Time Update) or Driver Update image.
+ The source/publisher/origin refers to the path just above the
+ image's DU directory (if expanded) or the name of the .iso image.
+ All packages in the image will be added.
+
+ <software>
+ <source>
+ <publisher>
+ <origin name="/export/duimages/mydriver.iso"/>
+ </publisher>
+ </source>
+ <software_data type="DU"/>
+ </software>
+ -->
+ <search_all/>
+ </add_drivers>
+ </ai_instance>
+</auto_install>
View
44 templates/solaris-11-express-i386-experimental/auto_install/configuration.dtd
@@ -0,0 +1,44 @@
+<!--
+ CDDL HEADER START
+
+ The contents of this file are subject to the terms of the
+ Common Development and Distribution License (the "License").
+ You may not use this file except in compliance with the License.
+
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ or http://www.opensolaris.org/os/licensing.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+
+ When distributing Covered Code, include this CDDL HEADER in each
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ If applicable, add the following below this CDDL HEADER, with the
+ fields enclosed by brackets "[]" replaced with your own identifying
+ information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+
+ Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+
+-->
+
+<!ELEMENT configuration (validation?)>
+<!ATTLIST configuration source CDATA #REQUIRED>
+<!ATTLIST configuration dest CDATA #IMPLIED>
+
+<!--
+ Default to user configuration if type is not set.
+-->
+<!ATTLIST configuration type (network|sysconf|user) #IMPLIED>
+
+<!--
+ Configuration name should match the name of the checkpoint consuming
+ the configuration data.
+-->
+<!ATTLIST configuration name CDATA #REQUIRED>
+
+<!ELEMENT validation EMPTY>
+<!ATTLIST validation path CDATA #IMPLIED>
+<!ATTLIST validation args CDATA #IMPLIED>
+<!ATTLIST validation on_error CDATA "stop">
+
View
124 templates/solaris-11-express-i386-experimental/auto_install/default.xml
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ CDDL HEADER START
+
+ The contents of this file are subject to the terms of the
+ Common Development and Distribution License (the "License").
+ You may not use this file except in compliance with the License.
+
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ or http://www.opensolaris.org/os/licensing.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+
+ When distributing Covered Code, include this CDDL HEADER in each
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ If applicable, add the following below this CDDL HEADER, with the
+ fields enclosed by brackets "[]" replaced with your own identifying
+ information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+
+ Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+
+-->
+<!DOCTYPE auto_install SYSTEM "file:///usr/share/auto_install/ai.dtd">
+<auto_install>
+ <ai_instance name="default">
+ <software>
+ <source>
+ <publisher name="solaris">
+ <origin name="http://pkg.oracle.com/solaris/release"/>
+ </publisher>
+ </source>
+ <!--
+ By default the latest build available, in the specified IPS
+ repository, is installed. If another build is required, the
+ build number has to be appended to the 'entire' package in following
+ form:
+
+ <name>pkg:/entire@0.5.11-0.build#</name>
+ -->
+ <software_data action="install" type="IPS">
+ <name>pkg:/SUNWcsd</name>
+ <name>pkg:/SUNWcs</name>
+ <name>pkg:/babel_install</name>
+ <!--
+ The following packages are required by iSCSI and included
+ by default to make it easier for users to enable iSCSI if
+ desired. They can be deleted from this list if iSCSI isn't
+ used. See iscsiadm(1m) man page for more information.
+ support for iSCSI.
+ -->
+ </software_data>
+ <!--
+ babel_install and slim_install are group packages used to
+ define the default installation. They are removed here so
+ that they do not inhibit removal of other packages on the
+ installed system.
+ -->
+ <software_data action="uninstall" type="IPS">
+ <name>pkg:/babel_install</name>
+ <name>pkg:/slim_install</name>
+ </software_data>
+
+ </software>
+ <!--
+ Add missing driver packages to a booted install image so an
+ installation can complete. Add packages to target as well.
+ <search_all> searches and installs from configured repo.
+ -->
+ <add_drivers>
+ <search_all/>
+ </add_drivers>
+ <sc_embedded_manifest name="AI">
+ <!-- <?xml version='1.0'?>
+ <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
+ <service_bundle type="profile" name="system configuration">
+ <service name="system/install/config" version="1" type="service">
+ <instance name="default" enabled="true">
+ <property_group name="user_account" type="application">
+ <propval name="login" type="astring" value="vagrant"/>
+ <propval name="password" type="astring" value="$1$MPmczGP9$1SeNO4bw5YgiEJuo/ZkWq1"/>
+ <propval name="description" type="astring" value="default_user"/>
+ <propval name="shell" type="astring" value="/usr/bin/bash"/>
+ <propval name="uid" type='count' value='101'/>
+ <propval name="gid" type='count' value='10'/>
+ <propval name="type" type="astring" value="normal"/>
+ <propval name="roles" type="astring" value="root"/>
+ </property_group>
+
+ <property_group name="root_account" type="application">
+ <propval name="password" type="astring" value="$1$MPmczGP9$1SeNO4bw5YgiEJuo/ZkWq1"/>
+ <propval name="type" type="astring" value="role"/>
+ </property_group>
+
+ <property_group name="other_sc_params" type="application">
+ <propval name="timezone" type="astring" value="GMT"/>
+ <propval name="hostname" type="astring" value="solaris"/>
+ </property_group>
+ </instance>
+ </service>
+ <service name="system/console-login" version="1" type="service">
+ <property_group name="ttymon" type="application">
+ <propval name="terminal_type" type="astring" value="sun"/>
+ </property_group>
+ </service>
+
+ <service name='system/keymap' version='1' type='service'>
+ <instance name='default' enabled='true'>
+ <property_group name='keymap' type='system'>
+ <propval name='layout' type='astring' value='US-English'/>
+ </property_group>
+ </instance>
+ </service>
+
+ <service name="network/physical" version="1" type="service">
+ <instance name="nwam" enabled="true"/>
+ <instance name="default" enabled="false"/>
+ </service>
+ </service_bundle>
+ -->
+ </sc_embedded_manifest>
+ </ai_instance>
+</auto_install>
View
124 templates/solaris-11-express-i386-experimental/auto_install/default.xml.orig
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ CDDL HEADER START
+
+ The contents of this file are subject to the terms of the
+ Common Development and Distribution License (the "License").
+ You may not use this file except in compliance with the License.
+
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ or http://www.opensolaris.org/os/licensing.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+
+ When distributing Covered Code, include this CDDL HEADER in each
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ If applicable, add the following below this CDDL HEADER, with the
+ fields enclosed by brackets "[]" replaced with your own identifying
+ information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+
+ Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+
+-->
+<!DOCTYPE auto_install SYSTEM "file:///usr/share/auto_install/ai.dtd">
+<auto_install>
+ <ai_instance name="default">
+ <software>
+ <source>
+ <publisher name="solaris">
+ <origin name="http://pkg.oracle.com/solaris/release"/>
+ </publisher>
+ </source>
+ <!--
+ By default the latest build available, in the specified IPS
+ repository, is installed. If another build is required, the
+ build number has to be appended to the 'entire' package in following
+ form:
+
+ <name>pkg:/entire@0.5.11-0.build#</name>
+ -->
+ <software_data action="install" type="IPS">
+ <name>pkg:/entire</name>
+ <name>pkg:/babel_install</name>
+ <!--
+ The following packages are required by iSCSI and included
+ by default to make it easier for users to enable iSCSI if
+ desired. They can be deleted from this list if iSCSI isn't
+ used. See iscsiadm(1m) man page for more information.
+ support for iSCSI.
+ -->
+ <name>pkg:/network/iscsi/initiator</name>
+ <name>pkg:/network/iscsi/iser</name>
+ </software_data>
+ <!--
+ babel_install and slim_install are group packages used to
+ define the default installation. They are removed here so
+ that they do not inhibit removal of other packages on the
+ installed system.
+ -->
+ <software_data action="uninstall" type="IPS">
+ <name>pkg:/babel_install</name>
+ <name>pkg:/slim_install</name>
+ </software_data>
+ </software>
+ <!--
+ Add missing driver packages to a booted install image so an
+ installation can complete. Add packages to target as well.
+ <search_all> searches and installs from configured repo.
+ -->
+ <add_drivers>
+ <search_all/>
+ </add_drivers>
+ <sc_embedded_manifest name="AI">
+ <!-- <?xml version='1.0'?>
+ <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
+ <service_bundle type="profile" name="system configuration">
+ <service name="system/install/config" version="1" type="service">
+ <instance name="default" enabled="true">
+ <property_group name="user_account" type="application">
+ <propval name="login" type="astring" value="jack"/>
+ <propval name="password" type="astring" value="9Nd/cwBcNWFZg"/>
+ <propval name="description" type="astring" value="default_user"/>
+ <propval name="shell" type="astring" value="/usr/bin/bash"/>
+ <propval name="uid" type='count' value='101'/>
+ <propval name="gid" type='count' value='10'/>
+ <propval name="type" type="astring" value="normal"/>
+ <propval name="roles" type="astring" value="root"/>
+ </property_group>
+
+ <property_group name="root_account" type="application">
+ <propval name="password" type="astring" value="$5$dnRfcZse$Hx4aBQ161Uvn9ZxJFKMdRiy8tCf4gMT2s2rtkFba2y4"/>
+ <propval name="type" type="astring" value="role"/>
+ </property_group>
+
+ <property_group name="other_sc_params" type="application">
+ <propval name="timezone" type="astring" value="GMT"/>
+ <propval name="hostname" type="astring" value="solaris"/>
+ </property_group>
+ </instance>
+ </service>
+ <service name="system/console-login" version="1" type="service">
+ <property_group name="ttymon" type="application">
+ <propval name="terminal_type" type="astring" value="sun"/>
+ </property_group>
+ </service>
+
+ <service name='system/keymap' version='1' type='service'>
+ <instance name='default' enabled='true'>
+ <property_group name='keymap' type='system'>
+ <propval name='layout' type='astring' value='US-English'/>
+ </property_group>
+ </instance>
+ </service>
+
+ <service name="network/physical" version="1" type="service">
+ <instance name="nwam" enabled="true"/>
+ <instance name="default" enabled="false"/>
+ </service>
+ </service_bundle>
+ -->
+ </sc_embedded_manifest>
+ </ai_instance>
+</auto_install>
View
105 templates/solaris-11-express-i386-experimental/auto_install/sc_profiles/static_network.xml
@@ -0,0 +1,105 @@
+<!--
+CDDL HEADER START
+
+The contents of this file are subject to the terms of the
+Common Development and Distribution License (the "License").
+You may not use this file except in compliance with the License.
+
+You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+or http://www.opensolaris.org/os/licensing.
+See the License for the specific language governing permissions
+and limitations under the License.
+
+When distributing Covered Code, include this CDDL HEADER in each
+file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+If applicable, add the following below this CDDL HEADER, with the
+fields enclosed by brackets "[]" replaced with your own identifying
+information: Portions Copyright [yyyy] [name of copyright owner]
+
+CDDL HEADER END
+
+Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+-->
+
+<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
+<service_bundle type="profile" name="system configuration">
+ <service name="system/install/config" version="1" type="service">
+ <instance name="default" enabled="true">
+ <property_group name="user_account" type="application">
+ <propval name="login" type="astring" value="jack"/>
+ <propval name="password" type="astring" value="9Nd/cwBcNWFZg"/>
+ <propval name="description" type="astring" value="default_user"/>
+ <propval name="shell" type="astring" value="/usr/bin/bash"/>
+ <propval name="uid" type='count' value='101'/>
+ <propval name="gid" type='count' value='10'/>
+ <propval name="type" type="astring" value="normal"/>
+ <propval name="roles" type="astring" value="root"/>
+ </property_group>
+
+ <property_group name="root_account" type="application">
+ <propval name="password" type="astring" value="$5$VgppCOxA$ycFmYW4ObRRHhtsGEygDdexk5bugqgSiaSR9niNCouC"/>
+ <propval name="type" type="astring" value="role"/>
+ </property_group>
+
+ <property_group name="other_sc_params" type="application">
+ <propval name="timezone" type="astring" value="GMT"/>
+ <propval name="hostname" type="astring" value="solaris"/>
+ </property_group>
+ </instance>
+ </service>
+
+ <service name="system/console-login" version="1" type="service">
+ <property_group name="ttymon" type="application">
+ <propval name="terminal_type" type="astring" value="sun"/>
+ </property_group>
+ </service>
+
+ <service name='system/keymap' version='1' type='service'>
+ <instance name='default' enabled='true'>
+ <property_group name='keymap' type='system'>
+ <propval name='layout' type='astring' value='US-English'/>
+ </property_group>
+ </instance>
+ </service>
+
+ <service name="network/physical" version="1" type="service">
+ <instance name="nwam" enabled="false"/>
+ <instance name="default" enabled="true"/>
+ </service>
+
+ <service name='network/install' version='1' type='service'>
+ <instance name='default' enabled='true'>
+ <property_group name='install_ipv4_interface' type='application'>
+ <propval name='name' type='astring' value='net0/v4'/>
+ <propval name='address_type' type='astring' value='static'/>
+ <propval name='static_address' type='net_address_v4' value='x.x.x.x/n'/>
+ <propval name='default_route' type='net_address_v4' value='x.x.x.x'/>
+ </property_group>
+
+ <property_group name='install_ipv6_interface' type='application'>
+ <propval name='name' type='astring' value='net0/v6'/>
+ <propval name='address_type' type='astring' value='addrconf'/>
+ <propval name='stateless' type='astring' value='yes'/>
+ <propval name='stateful' type='astring' value='yes'/>
+ </property_group>
+ </instance>
+ </service>
+
+ <service name='network/dns/install' version='1' type='service'>
+ <instance name='default' enabled='true'>
+ <property_group name='install_props' type='application'>
+ <property name='nameserver' type='net_address'>
+ <net_address_list>
+ <value_node value='x.x.x.x'/>
+ </net_address_list>
+ </property>
+ <property name='search' type='astring'>
+ <astring_list>
+ <value_node value='example.com'/>
+ </astring_list>
+ </property>
+ </property_group>
+ </instance>
+ </service>
+</service_bundle>
+
View
105 templates/solaris-11-express-i386-experimental/auto_install/software.dtd
@@ -0,0 +1,105 @@
+<!--
+ CDDL HEADER START
+
+ The contents of this file are subject to the terms of the
+ Common Development and Distribution License (the "License").
+ You may not use this file except in compliance with the License.
+
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ or http://www.opensolaris.org/os/licensing.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+
+ When distributing Covered Code, include this CDDL HEADER in each
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ If applicable, add the following below this CDDL HEADER, with the
+ fields enclosed by brackets "[]" replaced with your own identifying
+ information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+
+ Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+
+-->
+
+<!ELEMENT software (destination?, source*, software_data*)>
+
+<!--
+ The software name is utilized to allow users to associate
+ a specific software instance with a specific checkpoint.
+ For example, we could have multiple transfer types during the
+ course of an installation process. If a software is
+ to be associated with a specific checkpoint the software inst
+ name must be utilized and must be the same as the associated
+ checkpoint. If no name provided the software elements
+ will be used in order based on the type provided.
+-->
+
+<!ATTLIST software name CDATA #IMPLIED>
+
+<!ELEMENT software_data (name*)>
+<!ATTLIST software_data action (install|uninstall|unpack|noinstall) "install">
+<!ATTLIST software_data type (IPS|SVR4|ARCHIVE|IMAGE|P5I|DU|P5P|FILE|DIR) "IPS">
+
+<!ELEMENT name (#PCDATA)>
+
+<!--
+ Destination element is not required. If specified there can only
+ be one destination per software element. If not specified,
+ the destination is assumed to be an ipkg image and will be
+ discovered automatically.
+-->
+
+<!ELEMENT destination (image|dir)>
+
+<!ELEMENT image (facet*, img_type?, property*)>
+<!ATTLIST image action (create|use_existing) "create">
+<!ATTLIST image index (true|false) "false">
+<!ATTLIST image ssl_key CDATA #IMPLIED>
+<!ATTLIST image ssl_cert CDATA #IMPLIED>
+<!ATTLIST image img_root CDATA #IMPLIED>
+
+<!ELEMENT img_type EMPTY>
+<!ATTLIST img_type completeness (full|partial) #REQUIRED>
+<!ATTLIST img_type zone (true|false) "false">
+
+<!--
+ A property on an image is set via pkg set-property <propname>.
+ So, for use in this schema an example would be:
+ <image>
+ <img_type completeness="partial" zone="true"/>
+ <property val="true">send-uuid</property>
+ <property val="false">flush-content-cache-on-success
+ </property>
+ </image>
+-->
+<!ELEMENT property (#PCDATA)>
+<!ATTLIST property val (true|false) #REQUIRED>
+
+<!--
+ A facet is an option that may be selected or not selected,
+ such as various locales, documentation, etc. This is per
+ image.
+-->
+
+<!ELEMENT facet (#PCDATA)>
+<!ATTLIST facet set (true|false) "true">
+
+<!ELEMENT source (publisher+|dir)>
+
+<!--
+ If name is not specified, and this is an ips install,
+ then publishers known by the specified repository will be added to
+ the image. Origin can be an uri, path to a file, archive, directory.
+-->
+<!ELEMENT publisher (origin+, mirror*)>
+<!ATTLIST publisher name CDATA #IMPLIED>
+
+<!ELEMENT origin EMPTY>
+<!ATTLIST origin name CDATA #REQUIRED>
+
+<!ELEMENT mirror EMPTY>
+<!ATTLIST mirror name CDATA #REQUIRED>
+
+<!ELEMENT dir EMPTY>
+<!ATTLIST dir path CDATA #REQUIRED>
View
196 templates/solaris-11-express-i386-experimental/auto_install/target.dtd
@@ -0,0 +1,196 @@
+<!--
+ CDDL HEADER START
+
+ The contents of this file are subject to the terms of the
+ Common Development and Distribution License (the "License").
+ You may not use this file except in compliance with the License.
+
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ or http://www.opensolaris.org/os/licensing.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+
+ When distributing Covered Code, include this CDDL HEADER in each
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ If applicable, add the following below this CDDL HEADER, with the
+ fields enclosed by brackets "[]" replaced with your own identifying
+ information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+
+ Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+
+-->
+
+<!ELEMENT target (target_device+)>
+
+<!--
+ A partition and slice element must be specified within a
+ containing element, such as a disk, zpool or vdev. There must
+ be one element, if disk or pool are specified, that is
+ tagged as the root device. If no target_devices are specified
+ the the application must choose the device based on its
+ specific criteria and assume this is the root device.
+-->
+
+<!ELEMENT target_device (disk|zpool+|swap|dump)>
+
+<!--
+ If a disk is specified at the top level, that is not contained
+ within a zpool specification, this disk will be assumed
+ to be the root device. If a disk target is specified
+ at the top level, and then a zpool with the is_root attribute
+ set this is an error. The user can specify a specific
+ slice within the disk to be used as the root slice. If
+ no slice specified then root slice will be 0.
+-->
+
+<!ELEMENT disk ((disk_name|disk_prop|disk_keyword|iscsi), partition*, slice*)>
+<!--
+ Disk name can be one of ctd, volid, devpath or devid name.
+ Default is "ctd".
+-->
+<!ELEMENT disk_name EMPTY>
+<!ATTLIST disk_name name CDATA #REQUIRED>
+<!ATTLIST disk_name name_type (ctd|volid|devpath|devid) "ctd">
+
+<!ELEMENT disk_prop EMPTY>
+<!ATTLIST disk_prop dev_type CDATA #IMPLIED>
+<!ATTLIST disk_prop dev_vendor CDATA #IMPLIED>
+<!ATTLIST disk_prop dev_size CDATA #IMPLIED>
+
+<!ELEMENT disk_keyword EMPTY>
+<!ATTLIST disk_keyword key (boot_disk) #REQUIRED>
+
+<!--
+ A vdev must start with a disk element. The slice and partition
+ elements use numerical names, such as 0 or 1. A disk must
+ be named for a vdev, using the disk element notation.
+-->
+
+<!ELEMENT vdev (disk+, partition*, slice*)>
+<!ATTLIST vdev redundancy (mirror|raidz|raidz1|raidz2|raidz3|none) "mirror">
+
+<!ELEMENT dataset (zvol|filesystem)>
+
+<!--
+ No size specification means we create the slice the whole size of
+ the disk. If multiple slices specified for one disk, with
+ no sizes, this is an error. The attribute is_root is only
+ valid when a slice is part of a disk definition, outside of
+ a zpool definition. The user can request to format the disk
+ with multiple slices but specify one that they want to
+ be included in the root pool.
+
+-->
+
+
+<!ELEMENT slice (size?)>
+<!ATTLIST slice action (create|delete|preserve) "create">
+<!ATTLIST slice name CDATA #REQUIRED>
+<!ATTLIST slice is_root (true|false) #IMPLIED>
+
+<!--
+ The use of the 'force' attribute on slice specifies that on
+ a 'create' of a slice that already exists we overwrite the
+ slice if force==true. Otherwise the application errors.
+-->
+
+<!ATTLIST slice force (true|false) "false">
+
+<!--
+ If partition size is not provided the partition will be the
+ remaining free size left on the disk.
+-->
+
+<!ELEMENT partition (slice*, size?)>
+<!ATTLIST partition action (create|delete|use_existing) "create">
+
+<!--
+ A partition name is a numeric value, e.g. 1, will be
+ interpreted as partition 1. If a name is not provided
+ the user must specify the use_existing action, otherwise
+ this will be an invalid specification.
+-->
+<!ATTLIST partition name CDATA #IMPLIED>
+<!ATTLIST partition part_type CDATA "191">
+
+<!--
+ Size must be suffixed with a size unit. i.e 100gb, 2secs, 2tb.
+-->
+<!ELEMENT size EMPTY>
+<!ATTLIST size val CDATA #REQUIRED>
+<!ATTLIST size start_sector CDATA #IMPLIED>
+
+
+<!ELEMENT options (#PCDATA)>
+
+<!--
+ Option elements allow any string type, and this string is parsable
+ character data, should the application require it.
+-->
+
+<!--
+ Filesystem options are for zfs filesystems. The format of these
+ is this: "-o property=value". Any editable ZFS filesystem property
+ can be set at creation time. Multiple -o options can be
+ specified. An error will occur if a propert is specified in
+ multiple -o options.
+-->
+
+<!ELEMENT filesystem (options?)>
+<!ATTLIST filesystem name CDATA #REQUIRED>
+<!ATTLIST filesystem action (create|delete|preserve) "create">
+<!ATTLIST filesystem mountpoint CDATA #IMPLIED>
+
+<!--
+ Redundancy needs to be part of the vdev grouping,
+ not a property on zpool itself. There can be multiple
+ vdev groupings within one pool configuration.
+-->
+
+<!ELEMENT zpool (vdev*, dataset*, pool_options?, dataset_options?)>
+<!ATTLIST zpool action (create|delete|preserve|use_existing) "create">
+<!ATTLIST zpool name CDATA #REQUIRED>
+<!ATTLIST zpool is_root (true|false) "false">
+
+<!--
+ The pool option string, which is also a parsable string,
+ can include both pool options and filesystem options.
+ For pool options the format is: "-o property=value". For
+ filesystem properties the format is: "-O file-system-property=value"
+ Both of these typs of properties can be set in the option string.
+ An example of combining these in the option string:
+
+"-o altroot=/a -o autoexpand=off -o delegation=off -O atime=on -O compression=lzbj"
+-->
+
+<!ELEMENT pool_options (options)>
+<!ELEMENT dataset_options (options)>
+
+
+<!ELEMENT zvol (options?, size) >
+<!ATTLIST zvol action (create|delete|preserve|use_existing) "create">
+<!ATTLIST zvol name CDATA #REQUIRED>
+
+<!--
+ ISCSI does not have an action attribute. We use iscsi devices but
+ we do not operate directly on them.
+-->
+<!ELEMENT iscsi (ip)>
+<!ATTLIST iscsi name CDATA #REQUIRED>
+<!ATTLIST iscsi source CDATA #IMPLIED>
+<!ATTLIST iscsi target_lun CDATA #IMPLIED>
+<!ATTLIST iscsi target_port CDATA #IMPLIED>
+
+<!ELEMENT ip (#PCDATA)>
+
+<!--
+ Swap and dump are optional with Solaris install.
+-->
+
+<!ELEMENT swap (zvol)>
+<!ATTLIST swap no_swap (true|false) "false">
+
+<!ELEMENT dump (zvol)>
+<!ATTLIST dump no_dump (true|false) "false">
View
121 templates/solaris-11-express-i386-experimental/default.xml
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ CDDL HEADER START
+
+ The contents of this file are subject to the terms of the
+ Common Development and Distribution License (the "License").
+ You may not use this file except in compliance with the License.
+
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ or http://www.opensolaris.org/os/licensing.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+
+ When distributing Covered Code, include this CDDL HEADER in each
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ If applicable, add the following below this CDDL HEADER, with the
+ fields enclosed by brackets "[]" replaced with your own identifying
+ information: Portions Copyright [yyyy] [name of copyright owner]
+
+ CDDL HEADER END
+
+ Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+
+-->
+<!DOCTYPE auto_install SYSTEM "file:///usr/share/auto_install/ai.dtd">
+<auto_install>
+ <ai_instance name="default">
+ <software>
+ <source>
+ <publisher name="solaris">
+ <origin name="http://pkg.oracle.com/solaris/release"/>
+ </publisher>
+ </source>
+ <!--
+ By default the latest build available, in the specified IPS
+ repository, is installed. If another build is required, the
+ build number has to be appended to the 'entire' package in following
+ form:
+
+ <name>pkg:/entire@0.5.11-0.build#</name>
+ -->
+ <software_data action="install" type="IPS">
+ <name>pkg:/server_install</name>
+ <!--
+ The following packages are required by iSCSI and included
+ by default to make it easier for users to enable iSCSI if
+ desired. They can be deleted from this list if iSCSI isn't
+ used. See iscsiadm(1m) man page for more information.
+ support for iSCSI.
+ -->
+ </software_data>
+ <!--
+ babel_install and slim_install are group packages used to
+ define the default installation. They are removed here so
+ that they do not inhibit removal of other packages on the
+ installed system.
+ -->
+ <software_data action="uninstall" type="IPS">
+ <name>pkg:/server_install</name>
+ </software_data>
+
+ </software>
+ <!--
+ Add missing driver packages to a booted install image so an
+ installation can complete. Add packages to target as well.
+ <search_all> searches and installs from configured repo.
+ -->
+ <add_drivers>
+ <search_all/>
+ </add_drivers>
+ <sc_embedded_manifest name="AI">
+ <!-- <?xml version='1.0'?>
+ <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
+ <service_bundle type="profile" name="system configuration">
+ <service name="system/install/config" version="1" type="service">
+ <instance name="default" enabled="true">
+ <property_group name="user_account" type="application">
+ <propval name="login" type="astring" value="vagrant"/>
+ <propval name="password" type="astring" value="$1$MPmczGP9$1SeNO4bw5YgiEJuo/ZkWq1"/>
+ <propval name="description" type="astring" value="default_user"/>
+ <propval name="shell" type="astring" value="/usr/bin/bash"/>
+ <propval name="uid" type='count' value='101'/>
+ <propval name="gid" type='count' value='10'/>
+ <propval name="type" type="astring" value="normal"/>
+ <propval name="roles" type="astring" value="root"/>
+ </property_group>
+
+ <property_group name="root_account" type="application">
+ <propval name="password" type="astring" value="$1$MPmczGP9$1SeNO4bw5YgiEJuo/ZkWq1"/>
+ <propval name="type" type="astring" value="role"/>
+ </property_group>
+
+ <property_group name="other_sc_params" type="application">
+ <propval name="timezone" type="astring" value="GMT"/>
+ <propval name="hostname" type="astring" value="solaris"/>
+ </property_group>
+ </instance>
+ </service>
+ <service name="system/console-login" version="1" type="service">
+ <property_group name="ttymon" type="application">
+ <propval name="terminal_type" type="astring" value="sun"/>
+ </property_group>
+ </service>
+
+ <service name='system/keymap' version='1' type='service'>
+ <instance name='default' enabled='true'>
+ <property_group name='keymap' type='system'>
+ <propval name='layout' type='astring' value='US-English'/>
+ </property_group>
+ </instance>
+ </service>
+
+ <service name="network/physical" version="1" type="service">
+ <instance name="nwam" enabled="true"/>
+ <instance name="default" enabled="false"/>
+ </service>
+ </service_bundle>
+ -->
+ </sc_embedded_manifest>
+ </ai_instance>
+</auto_install>
View
65 templates/solaris-11-express-i386-experimental/definition.rb
@@ -0,0 +1,65 @@
+Veewee::Session.declare({
+ :cpu_count => '1', :memory_size=> '768',
+ #Disk size needs to be 12Gig +
+ :disk_size => '15140', :disk_format => 'VDI', :hostiocache => 'off', :use_hw_virt_ext => 'on',
+ :os_type_id => 'OpenSolaris',
+ :iso_file => "sol-11-exp-201011-ai-x86.iso",
+ :iso_src => "",
+ :iso_md5 => "36527d4d49a645ef6f6d2677c8e0118c",
+ :iso_download_timeout => 1000,
+ :boot_wait => "10", :boot_cmd_sequence => [
+ 'e',
+ 'e',
+ '<Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace>',
+ '<Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace>',
+ 'false',
+ #',aimanifest=prompt',
+ #',aimanifest=http://%IP%:%PORT%/default.xml',
+ '<Enter>',
+ 'b',
+ '<Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait>',
+ '<Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait>',
+ '<Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait>',
+ '<Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait>',
+
+ # login as root
+ 'root<Enter><Wait>',
+ 'solaris<Enter><Wait>',
+
+ # Background check when install is complete, add vagrant to the sudo
+ 'while (true); do sleep 5; test -f /a/etc/sudoers && grep -v "vagrant" "/a/etc/sudoers" 2> /dev/null',
+ ' && echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /a/etc/sudoers && break ; done &<Enter>',
+
+ # Background check to see if install has finished and reboot
+ '<Enter>while (true); do grep "You may wish to reboot" "/tmp/install_log" 2> /dev/null',
+ ' && reboot; sleep 10; done &<Enter>',
+
+
+ # Wait for 5 seconds, so the webserver will be up
+ 'sleep 5; curl http://%IP%:%PORT%/default.xml -o default.xml;',
+ 'cp default.xml /tmp/ai_combined_manifest.xml;',
+
+ # Start the installer
+ 'svcadm enable svc:/application/auto-installer:default;',
+
+ # Wait for the installer to launch and display the logfile
+ 'sleep 3; tail -f /tmp/install_log<Enter>'
+
+ ],
+ :kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "default.xml",
+ :ssh_login_timeout => "100", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
+ :ssh_host_port => "7222", :ssh_guest_port => "22",
+ :sudo_cmd => "echo '%p'|sudo -S bash ./%f",
+ :shutdown_cmd => "/sbin/halt -h -p",
+ :postinstall_files => [ "postinstall.sh"], :postinstall_timeout => 10000
+})
+
+# Notes:
+# http://dlc.sun.com/osol/docs/content/dev/AIinstall/aimanifest.html
+# http://download.oracle.com/docs/cd/E19963-01/html/820-6566/media-ai.html#gklco
+# default.xml
+# /.cdrom/auto_install/default.xml
+# /usr/share/auto_install/default.xml
+
+#tail -f /tmp/install.log
+
View
40 templates/solaris-11-express-i386-experimental/ks.cfg
@@ -0,0 +1,40 @@
+# Kickstart file automatically generated by anaconda.
+
+install
+cdrom
+lang en_US.UTF-8
+keyboard us
+#xconfig --card "VMWare" --videoram 16384 --hsync 31.5-37.9 --vsync 50-70 --resolution 800x600 --depth 16
+network --onboot yes --device eth0 --bootproto dhcp --noipv6
+rootpw --iscrypted $6$n/NGsk5H2aiBMXL4$r/oPkJtB5rasvQHPo9AvIJBe6sNVlQbpZxvTRMN7.qZk/Sn9u2qZ0XgNxflUvK20y7OIWdr/vv7MED6gzkBiH0
+firewall --enabled --trust eth0 --ssh
+selinux --enforcing
+authconfig --enableshadow --passalgo=sha512 --enablefingerprint
+timezone --utc America/Los_Angeles
+bootloader --location=mbr --driveorder=sda --append="nomodeset rhgb quiet"
+# The following is the partition information you requested
+# Note that any partitions you deleted are not expressed
+# here so unless you clear all partitions first, this is
+# not guaranteed to work
+clearpart --all --drives=sda --initlabel
+part /boot --fstype=ext4 --size=500 --ondisk=sda
+part pv.2 --size=0 --grow --size=500
+volgroup vg_main --pesize=32768 pv.2
+logvol swap --fstype=swap --name=lv_swap --vgname=vg_main --size=528 --grow --maxsize=1056
+logvol / --fstype=ext4 --name=lv_root --vgname=vg_main --size=1024 --grow
+# We leave the repo commands out so that we install from the iso
+#repo --name="Fedora 14 - i386" --baseurl=http://mirrors.xmission.com/fedora/releases/14/Everything/i386/os/ --cost=1000
+#repo --name="Fedora 14 - i386 - Updates" --baseurl=http://mirror.pnl.gov/fedora/linux/updates/14/i386/ --cost=1000
+reboot
+
+%packages
+@core
+@online-docs
+%end
+
+%post
+/usr/sbin/groupadd vagrant
+/usr/sbin/useradd vagrant -g vagrant -G wheel
+echo "vagrant"|passwd --stdin vagrant
+echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
+%end
View
72 templates/solaris-11-express-i386-experimental/postinstall.sh
@@ -0,0 +1,72 @@
+# http://projects.puppetlabs.com/projects/1/wiki/Puppet_Solaris
+
+# Add the opencsw package site
+export PATH=/usr/bin/:/usr/sbin:$PATH
+
+yes|/usr/sbin/pkgadd -d http://mirror.opencsw.org/opencsw/pkgutil-`uname -p`.pkg all
+
+/opt/csw/bin/pkgutil -U
+
+# yes|/opt/csw/bin/pkgutil -i CSWruby
+# used SUNWspro
+# has entries in /opt/csw/lib/ruby/1.8/i386-solaris2.9/rbconfig.rb
+# luckily there is another one
+
+yes|/opt/csw/bin/pkgutil -i CSWruby18-gcc4
+yes|/opt/csw/bin/pkgutil -i CSWruby18-dev
+
+# prevents ":in `require': no such file to load -- mkmf (LoadError)"
+yes|/opt/csw/bin/pkgutil -i CSWrubygems
+
+# These are needed to get a compiler working
+# Mainly because chef depends on compiling some native gems
+export PATH=/opt/csw/bin/:$PATH
+export PATH=/opt/csw/gcc4/bin/:$PATH
+
+yes | /opt/csw/bin/pkgutil -i CSWgcc4core
+yes | /opt/csw/bin/pkgutil -i CSWgcc4g++
+yes | /opt/csw/bin/pkgutil -i CSWreadline
+yes | /opt/csw/bin/pkgutil -i CSWzlib
+yes | /opt/csw/bin/pkgutil -i CSWossldevel
+
+/opt/csw/bin/gem install puppet --no-ri --no-rdoc
+/opt/csw/bin/gem install chef --no-ri --no-rdoc
+
+#Installing vagrant keys
+mkdir /export/home/vagrant/.ssh
+chmod 700 /export/home/vagrant/.ssh
+cd /export/home/vagrant/.ssh
+/usr/bin/wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
+chown -R vagrant /export/home/vagrant/.ssh
+
+#Installing the virtualbox guest additions
+VBOX_VERSION=$(cat /export/home/vagrant/.vbox_version)
+cd /tmp
+/usr/bin/wget http://download.virtualbox.org/virtualbox/4.0.6/VirtualBox-4.0.6-71344-SunOS.tar.gz
+/usr/gnu/bin/tar -xzvf VirtualBox-4.0.6-71344-SunOS.tar.gz
+/usr/bin/pkgtrans VirtualBox-4.0.6-SunOS-r71344.pkg . all
+yes|/usr/sbin/pkgadd -d . SUNWvbox
+
+exit
+
+#Inspiration for ruby enterprise
+
+PATH=$PATH:/opt/csw/bin
+wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
+tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
+./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
+
+# http://www.darkaslight.com/blog/entry/38-Compiling-Ruby-Enterprise-Edition-on-Solaris-10
+* To install C compiler:
+* To install C++ compiler:
+* To install Zlib development headers:
+* To install OpenSSL development headers:
+* To install GNU Readline development headers:
+
+bash-3.00# wget http://rubyforge.org/frs/download.php/38084/ruby-enterprise-1.8.6-20080507.tar.gz
+bash-3.00# gtar xvf ruby-enterprise-1.8.6-20080507.tar.gz
+bash-3.00# cd ruby-enterprise-1.8.6-20080507/source
+bash-3.00# ./configure --with-openssl-dir=/opt/csw --with-readline-dir=/opt/csw \
+--with-iconv-dir=/opt/csw --prefix=/opt/rubyenterprise
+bash-3.00# make
+bash-3.00# make install
Please sign in to comment.
Something went wrong with that request. Please try again.