vbox 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +14 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +68 -0
- data/README.md +5 -0
- data/Rakefile +91 -0
- data/bin/vbox +73 -0
- data/lib/java/README.txt +5 -0
- data/lib/java/dir2floppy.jar +0 -0
- data/lib/java/dir2floppy.java +134 -0
- data/lib/vagrant_init.rb +6 -0
- data/lib/vbox.rb +2 -0
- data/lib/vbox/command.rb +82 -0
- data/lib/vbox/config.rb +5 -0
- data/lib/vbox/export.rb +65 -0
- data/lib/vbox/scancode.rb +208 -0
- data/lib/vbox/session.rb +893 -0
- data/lib/vbox/shell.rb +54 -0
- data/lib/vbox/ssh.rb +193 -0
- data/lib/vbox/transaction.rb +122 -0
- data/lib/vbox/utils.rb +26 -0
- data/lib/vbox/version.rb +3 -0
- data/lib/vbox/web.rb +48 -0
- data/templates/CentOS-5.7-i386-netboot/definition.rb +16 -0
- data/templates/CentOS-5.7-i386-netboot/ks.cfg +45 -0
- data/templates/CentOS-5.7-i386-netboot/postinstall.sh +53 -0
- data/templates/CentOS-5.7-x86_64-netboot/definition.rb +16 -0
- data/templates/CentOS-5.7-x86_64-netboot/ks.cfg +45 -0
- data/templates/CentOS-5.7-x86_64-netboot/postinstall.sh +60 -0
- data/templates/CentOS-6.0-i386-netboot/definition.rb +16 -0
- data/templates/CentOS-6.0-i386-netboot/ks.cfg +52 -0
- data/templates/CentOS-6.0-i386-netboot/postinstall.sh +30 -0
- data/templates/CentOS-6.0-i386/definition.rb +17 -0
- data/templates/CentOS-6.0-i386/ks.cfg +47 -0
- data/templates/CentOS-6.0-i386/postinstall.sh +48 -0
- data/templates/CentOS-6.0-x86_64-netboot/definition.rb +16 -0
- data/templates/CentOS-6.0-x86_64-netboot/ks.cfg +52 -0
- data/templates/CentOS-6.0-x86_64-netboot/postinstall.sh +30 -0
- data/templates/CentOS-6.0-x86_64/definition.rb +17 -0
- data/templates/CentOS-6.0-x86_64/ks.cfg +47 -0
- data/templates/CentOS-6.0-x86_64/postinstall.sh +48 -0
- data/templates/Debian-6.0.3-amd64-netboot/definition.rb +42 -0
- data/templates/Debian-6.0.3-amd64-netboot/postinstall.sh +80 -0
- data/templates/Debian-6.0.3-amd64-netboot/preseed.cfg +42 -0
- data/templates/Debian-6.0.3-i386-netboot/definition.rb +44 -0
- data/templates/Debian-6.0.3-i386-netboot/postinstall.sh +80 -0
- data/templates/Debian-6.0.3-i386-netboot/preseed.cfg +42 -0
- data/templates/Fedora-15-i386-netboot/definition.rb +17 -0
- data/templates/Fedora-15-i386-netboot/ks.cfg +82 -0
- data/templates/Fedora-15-i386-netboot/postinstall.sh +18 -0
- data/templates/Fedora-15-i386/definition.rb +17 -0
- data/templates/Fedora-15-i386/ks.cfg +64 -0
- data/templates/Fedora-15-i386/postinstall.sh +33 -0
- data/templates/Fedora-15-x86_64-netboot/definition.rb +29 -0
- data/templates/Fedora-15-x86_64-netboot/ks.cfg +64 -0
- data/templates/Fedora-15-x86_64-netboot/postinstall.sh +33 -0
- data/templates/Fedora-15-x86_64/definition.rb +17 -0
- data/templates/Fedora-15-x86_64/ks.cfg +64 -0
- data/templates/Fedora-15-x86_64/postinstall.sh +33 -0
- data/templates/Sysrescuecd-2.0.0-experimental/autorun0 +3 -0
- data/templates/Sysrescuecd-2.0.0-experimental/definition.rb +20 -0
- data/templates/archlinux-i386-netboot/aif.cfg +34 -0
- data/templates/archlinux-i386-netboot/definition.rb +29 -0
- data/templates/archlinux-i386-netboot/postinstall.sh +87 -0
- data/templates/archlinux-i386-netboot/postinstall2.sh +28 -0
- data/templates/archlinux-i386/aif.cfg +33 -0
- data/templates/archlinux-i386/definition.rb +29 -0
- data/templates/archlinux-i386/postinstall.sh +106 -0
- data/templates/archlinux-x86_64-netboot/aif.cfg +34 -0
- data/templates/archlinux-x86_64-netboot/definition.rb +29 -0
- data/templates/archlinux-x86_64-netboot/postinstall.sh +90 -0
- data/templates/archlinux-x86_64-netboot/postinstall2.sh +28 -0
- data/templates/archlinux-x86_64/aif.cfg +33 -0
- data/templates/archlinux-x86_64/definition.rb +29 -0
- data/templates/archlinux-x86_64/postinstall.sh +90 -0
- data/templates/archlinux-x86_64/postinstall2.sh +38 -0
- data/templates/freebsd-8.2-experimental/definition.rb +19 -0
- data/templates/freebsd-8.2-experimental/postinstall.sh +191 -0
- data/templates/freebsd-8.2-pcbsd-i386-netboot/definition.rb +35 -0
- data/templates/freebsd-8.2-pcbsd-i386-netboot/pcinstall.fbg.cfg +58 -0
- data/templates/freebsd-8.2-pcbsd-i386-netboot/postinstall.sh +93 -0
- data/templates/freebsd-8.2-pcbsd-i386/definition.rb +31 -0
- data/templates/freebsd-8.2-pcbsd-i386/pcinstall.fbg.cfg +57 -0
- data/templates/freebsd-8.2-pcbsd-i386/postinstall.sh +93 -0
- data/templates/gentoo-latest-i386-experimental/definition.rb +29 -0
- data/templates/gentoo-latest-i386-experimental/postinstall.sh +184 -0
- data/templates/openSUSE-11.4-DVD-i586/autoinst_de.xml +1284 -0
- data/templates/openSUSE-11.4-DVD-i586/autoinst_en.xml +1284 -0
- data/templates/openSUSE-11.4-DVD-i586/definition.rb +28 -0
- data/templates/openSUSE-11.4-DVD-i586/postinstall.sh +43 -0
- data/templates/openSUSE-11.4-DVD-x86_64/autoinst_de.xml +1459 -0
- data/templates/openSUSE-11.4-DVD-x86_64/autoinst_en.xml +1459 -0
- data/templates/openSUSE-11.4-DVD-x86_64/definition.rb +28 -0
- data/templates/openSUSE-11.4-DVD-x86_64/postinstall.sh +43 -0
- data/templates/openSUSE-11.4-NET-i586/autoinst_de.xml +1278 -0
- data/templates/openSUSE-11.4-NET-i586/autoinst_en.xml +1278 -0
- data/templates/openSUSE-11.4-NET-i586/definition.rb +28 -0
- data/templates/openSUSE-11.4-NET-i586/postinstall.sh +43 -0
- data/templates/openSUSE-11.4-NET-x86_64/autoinst_de.xml +1453 -0
- data/templates/openSUSE-11.4-NET-x86_64/autoinst_en.xml +1453 -0
- data/templates/openSUSE-11.4-NET-x86_64/definition.rb +28 -0
- data/templates/openSUSE-11.4-NET-x86_64/postinstall.sh +43 -0
- data/templates/solaris-11-express-i386/auto_install/ai.dtd +58 -0
- data/templates/solaris-11-express-i386/auto_install/ai_manifest.xml +241 -0
- data/templates/solaris-11-express-i386/auto_install/configuration.dtd +44 -0
- data/templates/solaris-11-express-i386/auto_install/default.xml +124 -0
- data/templates/solaris-11-express-i386/auto_install/default.xml.orig +124 -0
- data/templates/solaris-11-express-i386/auto_install/sc_profiles/static_network.xml +105 -0
- data/templates/solaris-11-express-i386/auto_install/software.dtd +105 -0
- data/templates/solaris-11-express-i386/auto_install/target.dtd +196 -0
- data/templates/solaris-11-express-i386/default.xml +121 -0
- data/templates/solaris-11-express-i386/definition.rb +65 -0
- data/templates/solaris-11-express-i386/postinstall.sh +98 -0
- data/templates/ubuntu-10.04.3-server-amd64/definition.rb +54 -0
- data/templates/ubuntu-10.04.3-server-amd64/postinstall.sh +90 -0
- data/templates/ubuntu-10.04.3-server-amd64/preseed.cfg +87 -0
- data/templates/ubuntu-10.04.3-server-i386/definition.rb +24 -0
- data/templates/ubuntu-10.04.3-server-i386/postinstall.sh +91 -0
- data/templates/ubuntu-10.04.3-server-i386/preseed.cfg +87 -0
- data/templates/ubuntu-11.10-server-amd64/definition.rb +35 -0
- data/templates/ubuntu-11.10-server-amd64/postinstall.sh +90 -0
- data/templates/ubuntu-11.10-server-amd64/preseed.cfg +87 -0
- data/templates/ubuntu-11.10-server-i386/definition.rb +35 -0
- data/templates/ubuntu-11.10-server-i386/postinstall.sh +90 -0
- data/templates/ubuntu-11.10-server-i386/preseed.cfg +87 -0
- data/validation/features/steps/ssh_steps.rb +169 -0
- data/validation/support/env.rb +1 -0
- data/validation/vagrant-private.key +27 -0
- data/validation/vagrant.feature +52 -0
- data/validation/vagrant.pub +1 -0
- data/vbox.gemspec +32 -0
- metadata +338 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Veewee::Session.declare({
|
|
2
|
+
:os_type_id => 'OpenSUSE_64', :cpu_count => '1', :memory_size=> '512',
|
|
3
|
+
:disk_size => '20480', :disk_format => 'VDI', :hostiocache => 'off',
|
|
4
|
+
:iso_file => "openSUSE-11.4-NET-x86_64.iso",
|
|
5
|
+
:iso_src => "http://download.opensuse.org/distribution/11.4/iso/openSUSE-11.4-NET-x86_64.iso",
|
|
6
|
+
#:iso_src => "http://ftp.belnet.be/mirror/ftp.opensuse.org/distribution/11.4/iso/openSUSE-11.4-NET-x86_64.iso",
|
|
7
|
+
:iso_md5 => "bb0dc0124d5d2e3292ec96717132b136",
|
|
8
|
+
:iso_download_timeout => "1000",
|
|
9
|
+
:boot_wait => "10", :boot_cmd_sequence => [
|
|
10
|
+
'<Esc><Enter>',
|
|
11
|
+
'linux netdevice=eth0 netsetup=dhcp',
|
|
12
|
+
' install=http://download.opensuse.org/distribution/11.4/repo/oss/ insecure=1',
|
|
13
|
+
' lang=en_US autoyast=http://%IP%:%PORT%/autoinst_en.xml',
|
|
14
|
+
# disable prev line and enable next line to install with german settings
|
|
15
|
+
#' lang=de_DE autoyast=http://%IP%:%PORT%/autoinst_de.xml',
|
|
16
|
+
' textmode=1',
|
|
17
|
+
'<Enter>'
|
|
18
|
+
],
|
|
19
|
+
:kickstart_port => "7122", :kickstart_timeout => "10000",
|
|
20
|
+
:kickstart_file => ["autoinst_en.xml", "autoinst_en.xml"],
|
|
21
|
+
# disable prev line and enable next line to install with german settings
|
|
22
|
+
#:kickstart_file => ["autoinst_de.xml", "autoinst_de.xml"],
|
|
23
|
+
:ssh_login_timeout => "10000", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
|
24
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
|
25
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
|
26
|
+
:shutdown_cmd => "shutdown -P now",
|
|
27
|
+
:postinstall_files => ["postinstall.sh"], :postinstall_timeout => "10000"
|
|
28
|
+
})
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#
|
|
2
|
+
# postinstall.sh
|
|
3
|
+
#
|
|
4
|
+
|
|
5
|
+
date > /etc/vagrant_box_build_time
|
|
6
|
+
|
|
7
|
+
# install vagrant key
|
|
8
|
+
echo -e "\ninstall vagrant key ..."
|
|
9
|
+
mkdir -m 0700 /home/vagrant/.ssh
|
|
10
|
+
cd /home/vagrant/.ssh
|
|
11
|
+
wget --no-check-certificate -O authorized_keys https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub
|
|
12
|
+
chmod 0600 /home/vagrant/.ssh/authorized_keys
|
|
13
|
+
chown -R vagrant.users /home/vagrant/.ssh
|
|
14
|
+
|
|
15
|
+
# update sudoers
|
|
16
|
+
echo -e "\nupdate sudoers ..."
|
|
17
|
+
echo -e "\n# added by veewee/postinstall.sh" >> /etc/sudoers
|
|
18
|
+
echo -e "vagrant ALL=(ALL) NOPASSWD: ALL\n" >> /etc/sudoers
|
|
19
|
+
|
|
20
|
+
# speed-up remote logins
|
|
21
|
+
echo -e "\nspeed-up remote logins ..."
|
|
22
|
+
echo -e "\n# added by veewee/postinstall.sh" >> /etc/ssh/sshd_config
|
|
23
|
+
echo -e "UseDNS no\n" >> /etc/ssh/sshd_config
|
|
24
|
+
|
|
25
|
+
# install chef and puppet
|
|
26
|
+
echo -e "\ninstall chef and puppet ..."
|
|
27
|
+
gem install chef --no-ri --no-rdoc
|
|
28
|
+
gem install puppet --no-ri --no-rdoc
|
|
29
|
+
|
|
30
|
+
# install the virtualbox guest additions
|
|
31
|
+
echo -e "\ninstall the virtualbox guest additions ..."
|
|
32
|
+
zypper --non-interactive remove `rpm -qa virtualbox-guest-*`
|
|
33
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
|
34
|
+
cd /tmp
|
|
35
|
+
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
|
36
|
+
#wget http://192.168.178.10/VBoxGuestAdditions_$VBOX_VERSION.iso
|
|
37
|
+
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
|
38
|
+
sh /mnt/VBoxLinuxAdditions.run
|
|
39
|
+
umount /mnt
|
|
40
|
+
rm -f VBoxGuestAdditions_$VBOX_VERSION.iso
|
|
41
|
+
|
|
42
|
+
echo -e "\nall done.\n"
|
|
43
|
+
exit
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
CDDL HEADER START
|
|
3
|
+
|
|
4
|
+
The contents of this file are subject to the terms of the
|
|
5
|
+
Common Development and Distribution License (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
|
|
8
|
+
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
9
|
+
or http://www.opensolaris.org/os/licensing.
|
|
10
|
+
See the License for the specific language governing permissions
|
|
11
|
+
and limitations under the License.
|
|
12
|
+
|
|
13
|
+
When distributing Covered Code, include this CDDL HEADER in each
|
|
14
|
+
file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
15
|
+
If applicable, add the following below this CDDL HEADER, with the
|
|
16
|
+
fields enclosed by brackets "[]" replaced with your own identifying
|
|
17
|
+
information: Portions Copyright [yyyy] [name of copyright owner]
|
|
18
|
+
|
|
19
|
+
CDDL HEADER END
|
|
20
|
+
|
|
21
|
+
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
|
|
22
|
+
|
|
23
|
+
-->
|
|
24
|
+
|
|
25
|
+
<!ELEMENT auto_install (ai_instance)>
|
|
26
|
+
|
|
27
|
+
<!ENTITY % target SYSTEM "target.dtd">
|
|
28
|
+
%target;
|
|
29
|
+
|
|
30
|
+
<!ENTITY % configuration SYSTEM "configuration.dtd">
|
|
31
|
+
%configuration;
|
|
32
|
+
|
|
33
|
+
<!ENTITY % software SYSTEM "software.dtd">
|
|
34
|
+
%software;
|
|
35
|
+
|
|
36
|
+
<!--
|
|
37
|
+
The source element, if specified, is for post installation changes
|
|
38
|
+
to the publisher for IPS. The first source element specified
|
|
39
|
+
will be considered the primary source, all additional sources
|
|
40
|
+
will be added as secondary sources.
|
|
41
|
+
-->
|
|
42
|
+
|
|
43
|
+
<!ELEMENT sc_manifest_file EMPTY>
|
|
44
|
+
<!ATTLIST sc_manifest_file name CDATA #REQUIRED>
|
|
45
|
+
<!ATTLIST sc_manifest_file URI CDATA #REQUIRED>
|
|
46
|
+
|
|
47
|
+
<!ELEMENT sc_embedded_manifest (#PCDATA)>
|
|
48
|
+
<!ATTLIST sc_embedded_manifest name CDATA #REQUIRED>
|
|
49
|
+
|
|
50
|
+
<!ELEMENT ai_instance (target*, software+, add_drivers?, (configuration*|sc_manifest_file|sc_embedded_manifest), source*)>
|
|
51
|
+
<!ATTLIST ai_instance name CDATA #REQUIRED>
|
|
52
|
+
<!ATTLIST ai_instance http_proxy CDATA #IMPLIED>
|
|
53
|
+
<!ATTLIST ai_instance auto_reboot (true|false) "false">
|
|
54
|
+
|
|
55
|
+
<!ELEMENT add_drivers (software*, search_all?)>
|
|
56
|
+
|
|
57
|
+
<!ELEMENT search_all (source?)>
|
|
58
|
+
<!ATTLIST search_all addall (true|false) "false">
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<!--
|
|
3
|
+
CDDL HEADER START
|
|
4
|
+
|
|
5
|
+
The contents of this file are subject to the terms of the
|
|
6
|
+
Common Development and Distribution License (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
|
|
9
|
+
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
10
|
+
or http://www.opensolaris.org/os/licensing.
|
|
11
|
+
See the License for the specific language governing permissions
|
|
12
|
+
and limitations under the License.
|
|
13
|
+
|
|
14
|
+
When distributing Covered Code, include this CDDL HEADER in each
|
|
15
|
+
file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
16
|
+
If applicable, add the following below this CDDL HEADER, with the
|
|
17
|
+
fields enclosed by brackets "[]" replaced with your own identifying
|
|
18
|
+
information: Portions Copyright [yyyy] [name of copyright owner]
|
|
19
|
+
|
|
20
|
+
CDDL HEADER END
|
|
21
|
+
|
|
22
|
+
Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
|
|
23
|
+
-->
|
|
24
|
+
<!--
|
|
25
|
+
===============================================================================
|
|
26
|
+
DTD sample manifest for Automatic Installer input manifest specification.
|
|
27
|
+
===============================================================================
|
|
28
|
+
-->
|
|
29
|
+
<!DOCTYPE auto_install SYSTEM "file:///usr/share/auto_install/ai.dtd">
|
|
30
|
+
<auto_install>
|
|
31
|
+
<!--
|
|
32
|
+
"auto_reboot" set to "true" may be an issue for x86 machines.
|
|
33
|
+
The boot order is not guaranteed and may cause unexpected
|
|
34
|
+
behavior. If auto_reboot is not desired, removing this
|
|
35
|
+
attribute, e.g. <ai_instance name="sample_ai_manfiest">
|
|
36
|
+
will work. "auto_reboot" is set to false by default.
|
|
37
|
+
-->
|
|
38
|
+
<ai_instance name="sample_ai_manifest" auto_reboot="true">
|
|
39
|
+
<!--
|
|
40
|
+
=======================================================================
|
|
41
|
+
<target/target_device> - selections for AI target Device specification
|
|
42
|
+
|
|
43
|
+
Disk criteria are divided into three mutually exclusive groups:
|
|
44
|
+
|
|
45
|
+
G1 - deterministic disk criteria
|
|
46
|
+
................................
|
|
47
|
+
* target_device/disk/iscsi parameters
|
|
48
|
+
* target_device/disk/disk_name, with name_type attribute:
|
|
49
|
+
one of ctd, volid, devpath or devid
|
|
50
|
+
|
|
51
|
+
G2 - non-deterministic disk criteria
|
|
52
|
+
..........................
|
|
53
|
+
* target_device/disk/disk_prop: Any of dev_type, dev_vendor or
|
|
54
|
+
dev_size
|
|
55
|
+
|
|
56
|
+
G3 - keyword disk criteria
|
|
57
|
+
...........................
|
|
58
|
+
* target_device/disk/disk_keyword: "boot_disk"
|
|
59
|
+
|
|
60
|
+
Schema ai.dtd enforces following policy:
|
|
61
|
+
|
|
62
|
+
* criteria in group G1 are mutually exclusive - only
|
|
63
|
+
one can be specified at a time
|
|
64
|
+
|
|
65
|
+
* groups G1, G2 and G3 are mutually exclusive - i.e.
|
|
66
|
+
if criteria from G1 is specified, no criteria
|
|
67
|
+
from G2 or G3 are allowed and vice versa
|
|
68
|
+
|
|
69
|
+
* multiple criteria from G2 can be specified
|
|
70
|
+
=======================================================================
|
|
71
|
+
-->
|
|
72
|
+
<target>
|
|
73
|
+
<target_device>
|
|
74
|
+
<disk>
|
|
75
|
+
<!-- G1 -->
|
|
76
|
+
<!--
|
|
77
|
+
c#t#d# device name like c0t0d0 or
|
|
78
|
+
MPXIO name like c0t2000002037CD9F72d0
|
|
79
|
+
-->
|
|
80
|
+
<disk_name name="c1t0d0" name_type="ctd"/>
|
|
81
|
+
<!-- volume name set for instance by means
|
|
82
|
+
of format(1M) command
|
|
83
|
+
-->
|
|
84
|
+
<!--
|
|
85
|
+
<disk_name name="ai-disk" name_type="volid"/>
|
|
86
|
+
-->
|
|
87
|
+
<!-- device id - e.g. can be obtained by means of
|
|
88
|
+
iostat(1M) -iEn
|
|
89
|
+
-->
|
|
90
|
+
<!--
|
|
91
|
+
<disk_name name="id1,cmdk@AST31000340NS=____________9QJ2LNYY" name_type="devid"/>
|
|
92
|
+
-->
|
|
93
|
+
<!-- device path under /devices directory, e.g.
|
|
94
|
+
/pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/sd@0,0
|
|
95
|
+
-->
|
|
96
|
+
<!--
|
|
97
|
+
<disk_name name="/pci@0/pci@9/pci@0/scsi@1/sd@0,0" name_type="devpath"/>
|
|
98
|
+
-->
|
|
99
|
+
<!--
|
|
100
|
+
ISCSI target device
|
|
101
|
+
|
|
102
|
+
<iscsi name="c0d2E0001010F68">
|
|
103
|
+
<ip>192.168.1.34</ip>
|
|
104
|
+
</iscsi>
|
|
105
|
+
-->
|
|
106
|
+
<!-- G2 -->
|
|
107
|
+
<!--
|
|
108
|
+
<disk_prop dev_vendor="hitachi" dev_size="20480mb"/>
|
|
109
|
+
-->
|
|
110
|
+
<!-- G3 -->
|
|
111
|
+
<!--
|
|
112
|
+
<disk_keyword key="boot_disk"/>
|
|
113
|
+
-->
|
|
114
|
+
<!--
|
|
115
|
+
Uncomment this to force AI to find an existing Solaris
|
|
116
|
+
partition instead of creating a new one.
|
|
117
|
+
-->
|
|
118
|
+
<!--
|
|
119
|
+
<partition action="use_existing"/>
|
|
120
|
+
-->
|
|
121
|
+
<partition name="1" part_type="99">
|
|
122
|
+
<size start_sector="200" val="20480mb"/>
|
|
123
|
+
</partition>
|
|
124
|
+
<partition name="4" part_type="99">
|
|
125
|
+
<size start_sector="2000" val="20480mb"/>
|
|
126
|
+
</partition>
|
|
127
|
+
<slice name="0" is_root="true">
|
|
128
|
+
<size val="20480mb"/>
|
|
129
|
+
</slice>
|
|
130
|
+
<slice name="4">
|
|
131
|
+
<size val="20480mb"/>
|
|
132
|
+
</slice>
|
|
133
|
+
</disk>
|
|
134
|
+
</target_device>
|
|
135
|
+
</target>
|
|
136
|
+
<software name="ips">
|
|
137
|
+
<source>
|
|
138
|
+
<publisher name="solaris">
|
|
139
|
+
<origin name="http://pkg.oracle.com/solaris/release"/>
|
|
140
|
+
</publisher>
|
|
141
|
+
</source>
|
|
142
|
+
<!--
|
|
143
|
+
By default the latest build available, in the
|
|
144
|
+
specified IPS repository, is installed.
|
|
145
|
+
if another build is required, the build number has
|
|
146
|
+
to be appended to the 'entire' package in following
|
|
147
|
+
form:
|
|
148
|
+
<name="entire@0.5.11-0.build#"/>
|
|
149
|
+
-->
|
|
150
|
+
<software_data type="IPS">
|
|
151
|
+
<name>pkg:/entire</name>
|
|
152
|
+
<name>pkg:/babel_install</name>
|
|
153
|
+
</software_data>
|
|
154
|
+
<!--
|
|
155
|
+
babel_install and slim_install are group packages used to
|
|
156
|
+
define the default installation. They are removed here so
|
|
157
|
+
that they do not inhibit removal of other packages on the installed
|
|
158
|
+
system
|
|
159
|
+
-->
|
|
160
|
+
<software_data action="uninstall" type="IPS">
|
|
161
|
+
<name>pkg:/babel_install</name>
|
|
162
|
+
<name>pkg:/slim_install</name>
|
|
163
|
+
</software_data>
|
|
164
|
+
</software>
|
|
165
|
+
<add_drivers>
|
|
166
|
+
<!--
|
|
167
|
+
Driver Updates: This section is for adding driver packages to the
|
|
168
|
+
boot environment before the installation takes place. The
|
|
169
|
+
installer can then access all devices on the system. The
|
|
170
|
+
packages installed in the boot environment will also be installed
|
|
171
|
+
on the target.
|
|
172
|
+
|
|
173
|
+
A <search_all> entry performs a search for devices which are
|
|
174
|
+
missing their drivers. A repository publisher and location
|
|
175
|
+
may be specified, and that repository and its database will
|
|
176
|
+
be used. If no publisher and location is specified, the
|
|
177
|
+
configured repositories will be used.
|
|
178
|
+
(See pkg publisher command.) If <addall> is specified as
|
|
179
|
+
"true", then drivers the database says are third-party drivers
|
|
180
|
+
will be added like all others; otherwise third-party drivers
|
|
181
|
+
will not be added.
|
|
182
|
+
|
|
183
|
+
<search_all addall="true">
|
|
184
|
+
<source>
|
|
185
|
+
<publisher name="solaris">
|
|
186
|
+
<origin name="http://pkg.oracle.com/solaris/release"/>
|
|
187
|
+
</publisher>
|
|
188
|
+
</source>
|
|
189
|
+
</search_all>
|
|
190
|
+
|
|
191
|
+
<software> entries are user-provided specifications of packages
|
|
192
|
+
needed in order to perform the install. types are P5I, SVR4, DU.
|
|
193
|
+
A <software_data> action of "noinstall" inhibits adding to target.
|
|
194
|
+
|
|
195
|
+
P5I: A pkg(5) P5I file, full path is in the source/publisher/origin.
|
|
196
|
+
Path may be to a local file or an http or ftp specification.
|
|
197
|
+
<software>
|
|
198
|
+
<source>
|
|
199
|
+
<publisher>
|
|
200
|
+
<origin
|
|
201
|
+
name=
|
|
202
|
+
"http://pkg.oracle.com/solaris/release/p5i/0/driver/firewire.p5i"/>
|
|
203
|
+
</publisher>
|
|
204
|
+
</source>
|
|
205
|
+
<software_data type="P5I"/>
|
|
206
|
+
</software>
|
|
207
|
+
|
|
208
|
+
SVR4: An SVR4 package spec. The source/publisher/origin corresponds
|
|
209
|
+
to the directory containing the packages. The
|
|
210
|
+
software/software_data/name refers tp the package's top level
|
|
211
|
+
directory or the package's datastream file.
|
|
212
|
+
|
|
213
|
+
<software>
|
|
214
|
+
<source>
|
|
215
|
+
<publisher>
|
|
216
|
+
<origin name="/export/package_dir"/>
|
|
217
|
+
</publisher>
|
|
218
|
+
</source>
|
|
219
|
+
<software_data type="SVR4">
|
|
220
|
+
<name>my_disk_driver.d</name>
|
|
221
|
+
</software_data>
|
|
222
|
+
</software>
|
|
223
|
+
|
|
224
|
+
DU: An ITU (Install Time Update) or Driver Update image.
|
|
225
|
+
The source/publisher/origin refers to the path just above the
|
|
226
|
+
image's DU directory (if expanded) or the name of the .iso image.
|
|
227
|
+
All packages in the image will be added.
|
|
228
|
+
|
|
229
|
+
<software>
|
|
230
|
+
<source>
|
|
231
|
+
<publisher>
|
|
232
|
+
<origin name="/export/duimages/mydriver.iso"/>
|
|
233
|
+
</publisher>
|
|
234
|
+
</source>
|
|
235
|
+
<software_data type="DU"/>
|
|
236
|
+
</software>
|
|
237
|
+
-->
|
|
238
|
+
<search_all/>
|
|
239
|
+
</add_drivers>
|
|
240
|
+
</ai_instance>
|
|
241
|
+
</auto_install>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
CDDL HEADER START
|
|
3
|
+
|
|
4
|
+
The contents of this file are subject to the terms of the
|
|
5
|
+
Common Development and Distribution License (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
|
|
8
|
+
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
9
|
+
or http://www.opensolaris.org/os/licensing.
|
|
10
|
+
See the License for the specific language governing permissions
|
|
11
|
+
and limitations under the License.
|
|
12
|
+
|
|
13
|
+
When distributing Covered Code, include this CDDL HEADER in each
|
|
14
|
+
file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
15
|
+
If applicable, add the following below this CDDL HEADER, with the
|
|
16
|
+
fields enclosed by brackets "[]" replaced with your own identifying
|
|
17
|
+
information: Portions Copyright [yyyy] [name of copyright owner]
|
|
18
|
+
|
|
19
|
+
CDDL HEADER END
|
|
20
|
+
|
|
21
|
+
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
|
|
22
|
+
|
|
23
|
+
-->
|
|
24
|
+
|
|
25
|
+
<!ELEMENT configuration (validation?)>
|
|
26
|
+
<!ATTLIST configuration source CDATA #REQUIRED>
|
|
27
|
+
<!ATTLIST configuration dest CDATA #IMPLIED>
|
|
28
|
+
|
|
29
|
+
<!--
|
|
30
|
+
Default to user configuration if type is not set.
|
|
31
|
+
-->
|
|
32
|
+
<!ATTLIST configuration type (network|sysconf|user) #IMPLIED>
|
|
33
|
+
|
|
34
|
+
<!--
|
|
35
|
+
Configuration name should match the name of the checkpoint consuming
|
|
36
|
+
the configuration data.
|
|
37
|
+
-->
|
|
38
|
+
<!ATTLIST configuration name CDATA #REQUIRED>
|
|
39
|
+
|
|
40
|
+
<!ELEMENT validation EMPTY>
|
|
41
|
+
<!ATTLIST validation path CDATA #IMPLIED>
|
|
42
|
+
<!ATTLIST validation args CDATA #IMPLIED>
|
|
43
|
+
<!ATTLIST validation on_error CDATA "stop">
|
|
44
|
+
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!--
|
|
3
|
+
CDDL HEADER START
|
|
4
|
+
|
|
5
|
+
The contents of this file are subject to the terms of the
|
|
6
|
+
Common Development and Distribution License (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
|
|
9
|
+
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
10
|
+
or http://www.opensolaris.org/os/licensing.
|
|
11
|
+
See the License for the specific language governing permissions
|
|
12
|
+
and limitations under the License.
|
|
13
|
+
|
|
14
|
+
When distributing Covered Code, include this CDDL HEADER in each
|
|
15
|
+
file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
16
|
+
If applicable, add the following below this CDDL HEADER, with the
|
|
17
|
+
fields enclosed by brackets "[]" replaced with your own identifying
|
|
18
|
+
information: Portions Copyright [yyyy] [name of copyright owner]
|
|
19
|
+
|
|
20
|
+
CDDL HEADER END
|
|
21
|
+
|
|
22
|
+
Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
|
|
23
|
+
|
|
24
|
+
-->
|
|
25
|
+
<!DOCTYPE auto_install SYSTEM "file:///usr/share/auto_install/ai.dtd">
|
|
26
|
+
<auto_install>
|
|
27
|
+
<ai_instance name="default">
|
|
28
|
+
<software>
|
|
29
|
+
<source>
|
|
30
|
+
<publisher name="solaris">
|
|
31
|
+
<origin name="http://pkg.oracle.com/solaris/release"/>
|
|
32
|
+
</publisher>
|
|
33
|
+
</source>
|
|
34
|
+
<!--
|
|
35
|
+
By default the latest build available, in the specified IPS
|
|
36
|
+
repository, is installed. If another build is required, the
|
|
37
|
+
build number has to be appended to the 'entire' package in following
|
|
38
|
+
form:
|
|
39
|
+
|
|
40
|
+
<name>pkg:/entire@0.5.11-0.build#</name>
|
|
41
|
+
-->
|
|
42
|
+
<software_data action="install" type="IPS">
|
|
43
|
+
<name>pkg:/SUNWcsd</name>
|
|
44
|
+
<name>pkg:/SUNWcs</name>
|
|
45
|
+
<name>pkg:/babel_install</name>
|
|
46
|
+
<!--
|
|
47
|
+
The following packages are required by iSCSI and included
|
|
48
|
+
by default to make it easier for users to enable iSCSI if
|
|
49
|
+
desired. They can be deleted from this list if iSCSI isn't
|
|
50
|
+
used. See iscsiadm(1m) man page for more information.
|
|
51
|
+
support for iSCSI.
|
|
52
|
+
-->
|
|
53
|
+
</software_data>
|
|
54
|
+
<!--
|
|
55
|
+
babel_install and slim_install are group packages used to
|
|
56
|
+
define the default installation. They are removed here so
|
|
57
|
+
that they do not inhibit removal of other packages on the
|
|
58
|
+
installed system.
|
|
59
|
+
-->
|
|
60
|
+
<software_data action="uninstall" type="IPS">
|
|
61
|
+
<name>pkg:/babel_install</name>
|
|
62
|
+
<name>pkg:/slim_install</name>
|
|
63
|
+
</software_data>
|
|
64
|
+
|
|
65
|
+
</software>
|
|
66
|
+
<!--
|
|
67
|
+
Add missing driver packages to a booted install image so an
|
|
68
|
+
installation can complete. Add packages to target as well.
|
|
69
|
+
<search_all> searches and installs from configured repo.
|
|
70
|
+
-->
|
|
71
|
+
<add_drivers>
|
|
72
|
+
<search_all/>
|
|
73
|
+
</add_drivers>
|
|
74
|
+
<sc_embedded_manifest name="AI">
|
|
75
|
+
<!-- <?xml version='1.0'?>
|
|
76
|
+
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
|
|
77
|
+
<service_bundle type="profile" name="system configuration">
|
|
78
|
+
<service name="system/install/config" version="1" type="service">
|
|
79
|
+
<instance name="default" enabled="true">
|
|
80
|
+
<property_group name="user_account" type="application">
|
|
81
|
+
<propval name="login" type="astring" value="vagrant"/>
|
|
82
|
+
<propval name="password" type="astring" value="$1$MPmczGP9$1SeNO4bw5YgiEJuo/ZkWq1"/>
|
|
83
|
+
<propval name="description" type="astring" value="default_user"/>
|
|
84
|
+
<propval name="shell" type="astring" value="/usr/bin/bash"/>
|
|
85
|
+
<propval name="uid" type='count' value='101'/>
|
|
86
|
+
<propval name="gid" type='count' value='10'/>
|
|
87
|
+
<propval name="type" type="astring" value="normal"/>
|
|
88
|
+
<propval name="roles" type="astring" value="root"/>
|
|
89
|
+
</property_group>
|
|
90
|
+
|
|
91
|
+
<property_group name="root_account" type="application">
|
|
92
|
+
<propval name="password" type="astring" value="$1$MPmczGP9$1SeNO4bw5YgiEJuo/ZkWq1"/>
|
|
93
|
+
<propval name="type" type="astring" value="role"/>
|
|
94
|
+
</property_group>
|
|
95
|
+
|
|
96
|
+
<property_group name="other_sc_params" type="application">
|
|
97
|
+
<propval name="timezone" type="astring" value="GMT"/>
|
|
98
|
+
<propval name="hostname" type="astring" value="solaris"/>
|
|
99
|
+
</property_group>
|
|
100
|
+
</instance>
|
|
101
|
+
</service>
|
|
102
|
+
<service name="system/console-login" version="1" type="service">
|
|
103
|
+
<property_group name="ttymon" type="application">
|
|
104
|
+
<propval name="terminal_type" type="astring" value="sun"/>
|
|
105
|
+
</property_group>
|
|
106
|
+
</service>
|
|
107
|
+
|
|
108
|
+
<service name='system/keymap' version='1' type='service'>
|
|
109
|
+
<instance name='default' enabled='true'>
|
|
110
|
+
<property_group name='keymap' type='system'>
|
|
111
|
+
<propval name='layout' type='astring' value='US-English'/>
|
|
112
|
+
</property_group>
|
|
113
|
+
</instance>
|
|
114
|
+
</service>
|
|
115
|
+
|
|
116
|
+
<service name="network/physical" version="1" type="service">
|
|
117
|
+
<instance name="nwam" enabled="true"/>
|
|
118
|
+
<instance name="default" enabled="false"/>
|
|
119
|
+
</service>
|
|
120
|
+
</service_bundle>
|
|
121
|
+
-->
|
|
122
|
+
</sc_embedded_manifest>
|
|
123
|
+
</ai_instance>
|
|
124
|
+
</auto_install>
|