veewee 0.1.22 → 0.1.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/.gitignore +1 -0
  2. data/Gemfile.lock +1 -1
  3. data/lib/java/README.txt +5 -0
  4. data/lib/java/dir2floppy.jar +0 -0
  5. data/lib/java/dir2floppy.java +137 -0
  6. data/lib/veewee/session.rb +57 -10
  7. data/lib/veewee/version.rb +1 -1
  8. data/lib/veewee/web.rb +1 -1
  9. data/templates/CentOS-4.8-i386/definition.rb +2 -1
  10. data/templates/CentOS-4.8-i386/postinstall.sh +1 -1
  11. data/templates/{CentOS-5.5-i386-netboot → CentOS-5.6-i386-netboot}/definition.rb +4 -4
  12. data/templates/{CentOS-5.5-i386-netboot → CentOS-5.6-i386-netboot}/ks.cfg +0 -0
  13. data/templates/{CentOS-5.5-i386-netboot → CentOS-5.6-i386-netboot}/postinstall.sh +1 -1
  14. data/templates/{CentOS-5.5-i386 → CentOS-5.6-i386}/definition.rb +4 -2
  15. data/templates/{CentOS-5.5-i386 → CentOS-5.6-i386}/ks.cfg +0 -0
  16. data/templates/{CentOS-5.5-i386 → CentOS-5.6-i386}/postinstall.sh +1 -1
  17. data/templates/Debian-6.0.1a-amd64-netboot/postinstall.sh +1 -1
  18. data/templates/Fedora-14-amd64-netboot/definition.rb +1 -1
  19. data/templates/Fedora-14-amd64-netboot/postinstall.sh +1 -1
  20. data/templates/Fedora-14-amd64/definition.rb +1 -1
  21. data/templates/Fedora-14-amd64/postinstall.sh +1 -1
  22. data/templates/Fedora-14-i386-netboot/definition.rb +1 -1
  23. data/templates/Fedora-14-i386-netboot/postinstall.sh +1 -1
  24. data/templates/Fedora-14-i386/definition.rb +1 -1
  25. data/templates/Fedora-14-i386/postinstall.sh +1 -1
  26. data/templates/gentoo-latest-i386-experimental/definition.rb +29 -0
  27. data/templates/gentoo-latest-i386-experimental/postinstall.sh +182 -0
  28. data/templates/opensuse-11.4-i386-experimental/README +11 -0
  29. data/templates/opensuse-11.4-i386-experimental/autoinst.xml +1269 -0
  30. data/templates/opensuse-11.4-i386-experimental/autoinst.xml.generated +1269 -0
  31. data/templates/opensuse-11.4-i386-experimental/autoinst.xml.tweaked +1269 -0
  32. data/templates/opensuse-11.4-i386-experimental/definition.rb +31 -0
  33. data/templates/opensuse-11.4-i386-experimental/postinstall.sh +89 -0
  34. data/templates/solaris-11-express-i386/postinstall.sh +5 -5
  35. data/templates/ubuntu-10.04.2-server-amd64/postinstall.sh +44 -15
  36. data/templates/ubuntu-10.04.2-server-i386/postinstall.sh +46 -16
  37. data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +46 -16
  38. data/templates/ubuntu-10.10-server-amd64/postinstall.sh +45 -15
  39. data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +45 -15
  40. data/templates/ubuntu-10.10-server-i386/postinstall.sh +45 -15
  41. data/templates/ubuntu-11.04-server-amd64/definition.rb +24 -0
  42. data/templates/ubuntu-11.04-server-amd64/postinstall.sh +73 -0
  43. data/templates/ubuntu-11.04-server-amd64/preseed.cfg +87 -0
  44. data/templates/ubuntu-11.04-server-i386/definition.rb +24 -0
  45. data/templates/ubuntu-11.04-server-i386/postinstall.sh +73 -0
  46. data/templates/ubuntu-11.04-server-i386/preseed.cfg +87 -0
  47. data/templates/windows-2008R2-amd64-experimental/Autounattend.xml +132 -0
  48. data/templates/windows-2008R2-amd64-experimental/README.md +33 -0
  49. data/templates/windows-2008R2-amd64-experimental/cygwin-setup.exe +0 -0
  50. data/templates/windows-2008R2-amd64-experimental/cygwin-sshd.bat +38 -0
  51. data/templates/windows-2008R2-amd64-experimental/definition.rb +17 -0
  52. data/templates/windows-2008R2-amd64-experimental/install-winrm.bat +6 -0
  53. data/templates/windows-2008R2-amd64-experimental/note-virtualbox-additions.txt +23 -0
  54. data/templates/windows-2008R2-amd64-experimental/postinstall.sh +48 -0
  55. data/templates/windows-2008R2-amd64-experimental/setup.exe +0 -0
  56. data/templates/windows-2008R2-amd64-experimental/winrm.rb +8 -0
  57. metadata +37 -15
  58. data/templates/ubuntu-10.04.2-server-i386/postinstall2.sh +0 -9
  59. data/templates/ubuntu-10.10-server-amd64-netboot/postinstall2.sh +0 -9
  60. data/templates/ubuntu-10.10-server-amd64/postinstall2.sh +0 -9
  61. data/templates/ubuntu-10.10-server-i386-netboot/postinstall2.sh +0 -9
  62. data/templates/ubuntu-10.10-server-i386/postinstall2.sh +0 -9
data/.gitignore CHANGED
@@ -7,3 +7,4 @@ boxes/*
7
7
  pkg/*
8
8
  *.box
9
9
  .vagrant
10
+ virtualfloppy.vfd
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- veewee (0.1.22)
4
+ veewee (0.1.23)
5
5
  cucumber (= 0.8.5)
6
6
  highline (~> 1.6.1)
7
7
  net-ssh (~> 2.1.0)
@@ -0,0 +1,5 @@
1
+ $ java -jar dir2floppy.jar
2
+ Usage: java -jar dir2floppy.jar <sourcedir> <floppyfile>
3
+
4
+ This uses the http://code.google.com/p/fat32-lib library
5
+ http://code.google.com/p/fat32-lib/wiki/Tutorial
Binary file
@@ -0,0 +1,137 @@
1
+ package be.jedi.dir2floppy;
2
+
3
+ import java.io.File;
4
+ import java.io.FileInputStream;
5
+ import java.io.IOException;
6
+ import java.nio.ByteBuffer;
7
+ import java.nio.channels.FileChannel;
8
+
9
+ import de.waldheinz.fs.FileSystem;
10
+ import de.waldheinz.fs.FsDirectoryEntry;
11
+ import de.waldheinz.fs.FsFile;
12
+ import de.waldheinz.fs.fat.SuperFloppyFormatter;
13
+ import de.waldheinz.fs.util.FileDisk;
14
+
15
+ /**
16
+ * Hello world!
17
+ *
18
+ */
19
+ public class Dir2Floppy
20
+ {
21
+ public static void main( String[] args )
22
+ {
23
+ if (args.length < 2) {
24
+ System.out.println("Usage: java -jar dir2floppy.jar <sourcedir> <floppyfile>");
25
+ System.exit(-1);
26
+ }
27
+
28
+ FileDisk device = null;
29
+
30
+ //Create the floppy
31
+ try {
32
+ device = FileDisk.create(new File(args[1]),(long)1440 * 1024);
33
+ } catch (IOException e) {
34
+ // TODO Auto-generated catch block
35
+ e.printStackTrace();
36
+ System.exit(-1);
37
+ }
38
+
39
+ //Format the floppy
40
+ FileSystem fs=null;
41
+ try {
42
+ fs = SuperFloppyFormatter.get(device).format();
43
+
44
+ } catch (IOException e) {
45
+ // TODO Auto-generated catch block
46
+ e.printStackTrace();
47
+ System.exit(-1);
48
+
49
+ }
50
+
51
+ //Iterate of directories
52
+ File dir = new File(args[0]);
53
+
54
+ String[] children = dir.list();
55
+ if (children == null) {
56
+ // Either dir does not exist or is not a directory
57
+ System.out.println("Error. does the directory exist?");
58
+ System.exit(-1);
59
+ } else {
60
+ for (int i=0; i<children.length; i++) {
61
+ // Get filename of file or directory
62
+ File aFile=new File(dir.getAbsolutePath()+System.getProperty("file.separator")+children[i]);
63
+
64
+ try {
65
+ // Create the entry on the floppy
66
+ FsDirectoryEntry floppyEntry = fs.getRoot().addFile(children[i]);
67
+ //floppyEntry.setName(children[i]);
68
+ System.out.print("- Processing file: "+children[i]+" ");
69
+
70
+ FsFile floppyfile = floppyEntry.getFile();
71
+
72
+ // Copy the file over
73
+ if (aFile.isFile()) {
74
+ FileInputStream fis= new FileInputStream(aFile);
75
+
76
+ FileChannel fci = fis.getChannel();
77
+ ByteBuffer buffer = ByteBuffer.allocate(1024);
78
+
79
+ long counter=0;
80
+ int len;
81
+
82
+ // http://www.kodejava.org/examples/49.html
83
+ // Here we start to read the source file and write it
84
+ // to the destination file. We repeat this process
85
+ // until the read method of input stream channel return
86
+ // nothing (-1).
87
+ while(true)
88
+ {
89
+ // read a block of data and put it in the buffer
90
+ int read = fci.read(buffer);
91
+
92
+ // did we reach the end of the channel? if yes
93
+ // jump out the while-loop
94
+ if (read == -1)
95
+ break;
96
+
97
+ // flip the buffer
98
+ buffer.flip();
99
+
100
+ // write to the destination channel
101
+ System.out.print(".");
102
+ floppyfile.write(counter*1024, buffer);
103
+ counter++;
104
+
105
+
106
+ // clear the buffer and user it for the next read
107
+ // process
108
+ buffer.clear();
109
+ }
110
+ System.out.println();
111
+
112
+ floppyfile.flush();
113
+
114
+ fis.close();
115
+ }
116
+ } catch (IOException e) {
117
+ // TODO Auto-generated catch block
118
+ e.printStackTrace();
119
+
120
+ }
121
+
122
+ }
123
+ }
124
+
125
+
126
+ try {
127
+ fs.close();
128
+ } catch (IOException e) {
129
+ // TODO Auto-generated catch block
130
+ e.printStackTrace();
131
+ }
132
+
133
+ System.out.println( "Done" );
134
+ }
135
+
136
+ }
137
+
@@ -31,11 +31,11 @@ module Veewee
31
31
  def self.declare(options)
32
32
  defaults={
33
33
  :cpu_count => '1', :memory_size=> '256',
34
- :disk_size => '10240', :disk_format => 'VDI', :hostiocache => 'off' , :use_hw_virt_ext => 'on', :use_pae => 'off',
34
+ :disk_size => '10240', :disk_format => 'VDI', :hostiocache => 'off' ,
35
35
  :os_type_id => 'Ubuntu',
36
36
  :iso_file => "ubuntu-10.10-server-i386.iso", :iso_src => "", :iso_md5 => "", :iso_download_timeout => 1000,
37
37
  :boot_wait => "10", :boot_cmd_sequence => [ "boot"],
38
- :kickstart_port => "7122", :kickstart_ip => self.local_ip, :kickstart_timeout => 10000,:kickstart_file => "preseed.cfg",
38
+ :kickstart_port => "7122", :kickstart_ip => self.local_ip, :kickstart_timeout => 10000,
39
39
  :ssh_login_timeout => "100",:ssh_user => "vagrant", :ssh_password => "vagrant",:ssh_key => "",
40
40
  :ssh_host_port => "2222", :ssh_guest_port => "22",
41
41
  :sudo_cmd => "echo '%p'|sudo -S sh '%f'",
@@ -300,10 +300,19 @@ module Veewee
300
300
  else
301
301
  puts "Starting a webserver on port #{@definition[:kickstart_port]}"
302
302
  #:kickstart_port => "7122", :kickstart_ip => self.local_ip, :kickstart_timeout => 1000,:kickstart_file => "preseed.cfg",
303
- Veewee::Web.wait_for_request(kickstartfile,{:port => @definition[:kickstart_port],
303
+ if kickstartfile.is_a? String
304
+ Veewee::Web.wait_for_request(kickstartfile,{:port => @definition[:kickstart_port],
304
305
  :host => @definition[:kickstart_ip], :timeout => @definition[:kickstart_timeout],
305
306
  :web_dir => File.join(@definition_dir,boxname)})
306
-
307
+ end
308
+ if kickstartfile.is_a? Array
309
+ kickstartfiles=kickstartfile
310
+ kickstartfiles.each do |kickfile|
311
+ Veewee::Web.wait_for_request(kickfile,{:port => @definition[:kickstart_port],
312
+ :host => @definition[:kickstart_ip], :timeout => @definition[:kickstart_timeout],
313
+ :web_dir => File.join(@definition_dir,boxname)})
314
+ end
315
+ end
307
316
  end
308
317
 
309
318
 
@@ -341,11 +350,11 @@ module Veewee
341
350
  exit
342
351
  end
343
352
  command=@definition[:sudo_cmd]
344
- command.gsub!(/%p/,"#{@definition[:ssh_password]}")
345
- command.gsub!(/%u/,"#{@definition[:ssh_user]}")
346
- command.gsub!(/%f/,"#{postinstall_file}")
347
-
348
- Veewee::Ssh.execute("localhost","#{command}",ssh_options)
353
+ newcommand=command.gsub(/%p/,"#{@definition[:ssh_password]}")
354
+ newcommand.gsub!(/%u/,"#{@definition[:ssh_user]}")
355
+ newcommand.gsub!(/%f/,"#{postinstall_file}")
356
+ puts "***#{newcommand}"
357
+ Veewee::Ssh.execute("localhost","#{newcommand}",ssh_options)
349
358
  end
350
359
 
351
360
  end
@@ -508,8 +517,46 @@ module Veewee
508
517
  Veewee::Shell.execute("#{command}")
509
518
 
510
519
  # Modify the vm to enable or disable hw virtualization extensions
511
- command="#{@vboxcmd} modifyvm #{boxname} --hwvirtex #{@definition[:use_hw_virt_ext]} --pae #{@definition[:use_pae]}"
520
+ vm_flags=%w{pagefusion acpi ioapic pae hpet hwvirtex hwvirtexcl nestedpaging largepages vtxvpid synthxcpu rtcuseutc}
521
+
522
+ vm_flags.each do |vm_flag|
523
+ unless @definition[vm_flag.to_sym].nil?
524
+ puts "Setting VM Flag #{vm_flag} to #{@definition[vm_flag.to_sym]}"
525
+ command="#{@vboxcmd} modi fyvm #{boxname} --#{vm_flag.to_s} #{@definition[vm_flag.to_sym]}"
526
+ Veewee::Shell.execute("#{command}")
527
+ end
528
+ end
512
529
 
530
+ # Todo Check for java
531
+ # Todo check output of commands
532
+
533
+ # Check for floppy
534
+ unless @definition[:floppy_files].nil?
535
+ require 'tmpdir'
536
+ temp_dir=Dir.tmpdir
537
+ @definition[:floppy_files].each do |filename|
538
+ full_filename=full_filename=File.join(@definition_dir,boxname,filename)
539
+ FileUtils.cp("#{full_filename}","#{temp_dir}")
540
+ end
541
+ javacode_dir=File.expand_path(File.join(__FILE__,'..','..','java'))
542
+ floppy_file=File.join(@definition_dir,boxname,"virtualfloppy.vfd")
543
+ command="java -jar #{javacode_dir}/dir2floppy.jar '#{temp_dir}' '#{floppy_file}'"
544
+ puts "#{command}"
545
+ Veewee::Shell.execute("#{command}")
546
+
547
+ # Create floppy controller
548
+ command="#{@vboxcmd} storagectl '#{boxname}' --name 'Floppy Controller' --add floppy"
549
+ puts "#{command}"
550
+ Veewee::Shell.execute("#{command}")
551
+
552
+ # Attach floppy to machine (the vfd extension is crucial to detect msdos type floppy)
553
+ command="#{@vboxcmd} storageattach '#{boxname}' --storagectl 'Floppy Controller' --port 0 --device 0 --type fdd --medium '#{floppy_file}'"
554
+ puts "#{command}"
555
+ Veewee::Shell.execute("#{command}")
556
+
557
+ end
558
+
559
+
513
560
  #Exec and system stop the execution here
514
561
  Veewee::Shell.execute("#{command}")
515
562
 
@@ -1,3 +1,3 @@
1
1
  module Veewee
2
- VERSION = "0.1.22"
2
+ VERSION = "0.1.23"
3
3
  end
@@ -45,4 +45,4 @@ module Veewee
45
45
  end
46
46
 
47
47
  end
48
- end
48
+ end
@@ -1,8 +1,9 @@
1
1
  Veewee::Session.declare({
2
2
  :cpu_count => '1', :memory_size=> '384',
3
- :disk_size => '10140', :disk_format => 'VDI',:hostiocache => 'off',
3
+ :disk_size => '10140', :disk_format => 'VDI',:hostiocache => 'off',:ioapic => 'on', :pae => 'on',
4
4
  :os_type_id => 'RedHat',
5
5
  :iso_file => "CentOS-4.8-i386-bin-DVD.iso", :iso_src => "", :iso_md5 => "", :iso_download_timeout => 1000,
6
+ :iso_download_instructions => "This iso is no more available, for instructions see http://isoredirect.centos.org/centos/4/isos/i386/"
6
7
  :boot_wait => "10", :boot_cmd_sequence => [ 'linux text ks=http://%IP%:%PORT%/ks.cfg<Enter>' ],
7
8
  :kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
8
9
  :ssh_login_timeout => "100", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
@@ -16,7 +16,7 @@ yum -y clean all
16
16
  wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
17
17
  tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
18
18
  ./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
19
- echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
19
+ echo 'PATH=$PATH:/opt/ruby/bin'> /etc/profile.d/rubyenterprise.sh
20
20
  rm -rf ./ruby-enterprise-1.8.7-2010.02/
21
21
  rm ruby-enterprise-1.8.7-2010.02.tar.gz
22
22
 
@@ -1,10 +1,10 @@
1
1
  Veewee::Session.declare({
2
2
  :cpu_count => '1', :memory_size=> '384',
3
- :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
3
+ :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :ioapic => 'on', :pae => 'on',
4
4
  :os_type_id => 'RedHat',
5
- :iso_file => "CentOS-5.5-i386-netinstall.iso",
6
- :iso_src => "http://mirror.bytemark.co.uk/centos/5.5/isos/i386/CentOS-5.5-i386-netinstall.iso",
7
- :iso_md5 => "0172883a3039772165db073693debae5",
5
+ :iso_file => "CentOS-5.6-i386-netinstall.iso",
6
+ :iso_src => "http://mirror.bytemark.co.uk/centos/5.6/isos/i386/CentOS-5.6-i386-netinstall.iso",
7
+ :iso_md5 => "a710105f7f9fe3516f08f6f8514ed2b0",
8
8
  :iso_download_timeout => 1000,
9
9
  :boot_wait => "10", :boot_cmd_sequence => [ 'linux text ks=http://%IP%:%PORT%/ks.cfg<Enter>' ],
10
10
  :kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
@@ -17,7 +17,7 @@ yum -y clean all
17
17
  wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
18
18
  tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
19
19
  ./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
20
- echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
20
+ echo 'PATH=$PATH:/opt/ruby/bin'> /etc/profile.d/rubyenterprise.sh
21
21
  rm -rf ./ruby-enterprise-1.8.7-2010.02/
22
22
  rm ruby-enterprise-1.8.7-2010.02.tar.gz
23
23
 
@@ -1,8 +1,10 @@
1
1
  Veewee::Session.declare({
2
2
  :cpu_count => '1', :memory_size=> '384',
3
- :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
3
+ :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :ioapic => 'on', :pae => 'on',
4
4
  :os_type_id => 'RedHat',
5
- :iso_file => "CentOS-5.5-i386-bin-DVD.iso", :iso_src => "", :iso_md5 => "75c92246479df172de41b14c9b966344", :iso_download_timeout => 1000,
5
+ :iso_file => "CentOS-5.5-i386-bin-DVD.iso", :iso_src => "", :iso_md5 => "181142a5845586579d5d4d96e43a4827", :iso_download_timeout => 1000,
6
+ :iso_download_instructions => "We can not download the ISO , you need to download it yourself and put it in the iso directory\n"+
7
+ "- URL: http://isoredirect.centos.org/centos/5/isos/i386/ ",
6
8
  :boot_wait => "10", :boot_cmd_sequence => [
7
9
  'linux text ks=http://%IP%:%PORT%/ks.cfg<Enter>'
8
10
  ],
@@ -16,7 +16,7 @@ yum -y clean all
16
16
  wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
17
17
  tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
18
18
  ./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
19
- echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
19
+ echo 'PATH=$PATH:/opt/ruby/bin'> /etc/profile.d/rubyenterprise.sh
20
20
  rm -rf ./ruby-enterprise-1.8.7-2010.02/
21
21
  rm ruby-enterprise-1.8.7-2010.02.tar.gz
22
22
 
@@ -14,7 +14,7 @@ sed -i -e 's/%sudo ALL=(ALL) ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers
14
14
  wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
15
15
  tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
16
16
  ./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
17
- echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
17
+ echo 'PATH=$PATH:/opt/ruby/bin'> /etc/profile.d/rubyenterprise.sh
18
18
  rm -rf ./ruby-enterprise-1.8.7-2010.02/
19
19
  rm ruby-enterprise-1.8.7-2010.02.tar.gz
20
20
 
@@ -1,6 +1,6 @@
1
1
  Veewee::Session.declare({
2
2
  :cpu_count => '1', :memory_size=> '384',
3
- :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :use_hw_virt_ext => 'on',
3
+ :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :hwvirtext => 'on',
4
4
  :os_type_id => 'Fedora',
5
5
  :iso_file => "Fedora-14-x86_64-netinst.iso",
6
6
  :iso_src => "http://mirror.uoregon.edu/fedora/linux/releases/14/Fedora/x86_64/iso/Fedora-14-x86_64-netinst.iso",
@@ -19,7 +19,7 @@ yum -y clean all
19
19
  wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
20
20
  tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
21
21
  ./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
22
- echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
22
+ echo 'PATH=$PATH:/opt/ruby/bin'> /etc/profile.d/rubyenterprise.sh
23
23
  rm -rf ./ruby-enterprise-1.8.7-2010.02/
24
24
  rm ruby-enterprise-1.8.7-2010.02.tar.gz
25
25
 
@@ -1,6 +1,6 @@
1
1
  Veewee::Session.declare({
2
2
  :cpu_count => '1', :memory_size=> '384',
3
- :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :use_hw_virt_ext => 'on',
3
+ :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :hwvirtext => 'on',
4
4
  :os_type_id => 'Fedora',
5
5
  :iso_file => "Fedora-14-x86_64-DVD.iso",
6
6
  :iso_src => "http://mirror.uoregon.edu/fedora/linux/releases/14/Fedora/x86_64/iso/Fedora-14-x86_64-DVD.iso",
@@ -19,7 +19,7 @@ yum -y clean all
19
19
  wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
20
20
  tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
21
21
  ./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
22
- echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
22
+ echo 'PATH=$PATH:/opt/ruby/bin'> /etc/profile.d/rubyenterprise.sh
23
23
  rm -rf ./ruby-enterprise-1.8.7-2010.02/
24
24
  rm ruby-enterprise-1.8.7-2010.02.tar.gz
25
25
 
@@ -1,6 +1,6 @@
1
1
  Veewee::Session.declare({
2
2
  :cpu_count => '1', :memory_size=> '384',
3
- :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :use_hw_virt_ext => 'on',
3
+ :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :hwvirtext => 'on',
4
4
  :os_type_id => 'Fedora',
5
5
  :iso_file => "Fedora-14-i386-netinst.iso",
6
6
  :iso_src => "http://www.gtlib.gatech.edu/pub/fedora.redhat/linux//releases/14/Fedora/i386/iso/Fedora-14-i386-netinst.iso",
@@ -19,7 +19,7 @@ yum -y clean all
19
19
  wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
20
20
  tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
21
21
  ./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
22
- echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
22
+ echo 'PATH=$PATH:/opt/ruby/bin'> /etc/profile.d/rubyenterprise.sh
23
23
  rm -rf ./ruby-enterprise-1.8.7-2010.02/
24
24
  rm ruby-enterprise-1.8.7-2010.02.tar.gz
25
25
 
@@ -1,6 +1,6 @@
1
1
  Veewee::Session.declare({
2
2
  :cpu_count => '1', :memory_size=> '384',
3
- :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :use_hw_virt_ext => 'on',
3
+ :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :hwvirtext => 'on',
4
4
  :os_type_id => 'Fedora',
5
5
  :iso_file => "Fedora-14-i386-DVD.iso",
6
6
  :iso_src => "http://mirror.uoregon.edu/fedora/linux/releases/14/Fedora/i386/iso/Fedora-14-i386-DVD.iso",
@@ -19,7 +19,7 @@ yum -y clean all
19
19
  wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
20
20
  tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
21
21
  ./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
22
- echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
22
+ echo 'PATH=$PATH:/opt/ruby/bin'> /etc/profile.d/rubyenterprise.sh
23
23
  rm -rf ./ruby-enterprise-1.8.7-2010.02/
24
24
  rm ruby-enterprise-1.8.7-2010.02.tar.gz
25
25
 
@@ -0,0 +1,29 @@
1
+ Veewee::Session.declare( {
2
+ :cpu_count => '1', :memory_size=> '768',
3
+ :disk_size => '10140', :disk_format => 'VDI',:hostiocache => 'off',
4
+ :os_type_id => 'Gentoo',
5
+ :iso_file => "install-x86-minimal-20110426.iso",
6
+ :iso_src => "http://distfiles.gentoo.org/releases/x86/autobuilds/current-iso/install-x86-minimal-20110426.iso",
7
+ :iso_md5 => "548646b9d1042a162f769bc280149417",
8
+ :iso_download_timeout => "1000",
9
+ :boot_wait => "120",:boot_cmd_sequence => [
10
+ 'net-setup eth0<Enter>',
11
+ '<Wait><Enter>',
12
+ '2<Enter>',
13
+ '1<Enter>',
14
+ '<Wait><Wait>ifconfig -a <Enter>',
15
+ #'sleep 5 ;curl http://%IP%:%PORT%/stages.sh -o stages.sh &&',
16
+ #'bash stages.sh &<Enter>',
17
+ 'passwd<Enter><Wait><Wait>',
18
+ 'vagrant<Enter><Wait>',
19
+ 'vagrant<Enter><Wait>',
20
+ '/etc/init.d/sshd start<Enter>'
21
+ ],
22
+ :kickstart_port => "7122", :kickstart_timeout => "10000",:kickstart_file => "",
23
+ :ssh_login_timeout => "10000",:ssh_user => "root", :ssh_password => "vagrant",:ssh_key => "",
24
+ :ssh_host_port => "7222", :ssh_guest_port => "22",
25
+ :sudo_cmd => "cat '%f'|su -",
26
+ :shutdown_cmd => "shutdown -p now",
27
+ :postinstall_files => [ "post_install.sh"],:postinstall_timeout => "10000"
28
+ }
29
+ )