veewee 0.3.6 → 0.3.7

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.
Files changed (96) hide show
  1. data/README.md +1 -1
  2. data/Rakefile +23 -23
  3. data/bin/veewee +1 -1
  4. data/doc/kvm.md +58 -9
  5. data/doc/providers.md +2 -2
  6. data/doc/vagrant.md +1 -1
  7. data/lib/vagrant_init.rb +0 -1
  8. data/lib/veewee/cli.rb +1 -1
  9. data/lib/veewee/command.rb +2 -2
  10. data/lib/veewee/command/fusion.rb +2 -2
  11. data/lib/veewee/command/kvm.rb +1 -1
  12. data/lib/veewee/command/parallels.rb +2 -2
  13. data/lib/veewee/command/vagrant/define.rb +1 -1
  14. data/lib/veewee/command/vagrant/undefine.rb +1 -1
  15. data/lib/veewee/command/vbox.rb +2 -2
  16. data/lib/veewee/config.rb +8 -10
  17. data/lib/veewee/definition.rb +41 -41
  18. data/lib/veewee/definitions.rb +27 -30
  19. data/lib/veewee/environment.rb +16 -16
  20. data/lib/veewee/error.rb +18 -15
  21. data/lib/veewee/provider/core/box/build.rb +1 -1
  22. data/lib/veewee/provider/kvm/box.rb +1 -6
  23. data/lib/veewee/provider/kvm/box/validate_kvm.rb +1 -1
  24. data/lib/veewee/provider/kvm/provider.rb +19 -32
  25. data/lib/veewee/provider/virtualbox/box/helper/create.rb +5 -1
  26. data/lib/veewee/providers.rb +22 -21
  27. data/lib/veewee/template.rb +9 -9
  28. data/lib/veewee/templates.rb +14 -15
  29. data/lib/veewee/ui.rb +7 -7
  30. data/lib/veewee/version.rb +1 -1
  31. data/templates/CentOS-6.3-i386-minimal/base.sh +1 -1
  32. data/templates/CentOS-6.3-i386-minimal/definition.rb +13 -4
  33. data/templates/CentOS-6.3-i386-minimal/ks.cfg +50 -14
  34. data/templates/CentOS-6.3-i386-minimal/virtualbox.sh +3 -3
  35. data/templates/CentOS-6.3-x86_64-minimal/base.sh +1 -1
  36. data/templates/CentOS-6.3-x86_64-netboot/base.sh +14 -0
  37. data/templates/CentOS-6.3-x86_64-netboot/chef.sh +3 -0
  38. data/templates/CentOS-6.3-x86_64-netboot/cleanup.sh +5 -0
  39. data/templates/CentOS-6.3-x86_64-netboot/definition.rb +40 -0
  40. data/templates/CentOS-6.3-x86_64-netboot/ks.cfg +41 -0
  41. data/templates/CentOS-6.3-x86_64-netboot/puppet.sh +12 -0
  42. data/templates/CentOS-6.3-x86_64-netboot/ruby.sh +3 -0
  43. data/templates/CentOS-6.3-x86_64-netboot/vagrant.sh +18 -0
  44. data/templates/CentOS-6.3-x86_64-netboot/virtualbox.sh +8 -0
  45. data/templates/{Debian-7.0-b2-i386-netboot → CentOS-6.3-x86_64-netboot}/zerodisk.sh +0 -0
  46. data/templates/{Debian-7.0-b2-i386-netboot → Debian-7.0-b4-amd64-netboot}/base.sh +2 -3
  47. data/templates/{Debian-7.0-b2-i386-netboot → Debian-7.0-b4-amd64-netboot}/chef.sh +0 -0
  48. data/templates/{Debian-7.0-b2-i386-netboot → Debian-7.0-b4-amd64-netboot}/cleanup-virtualbox.sh +0 -0
  49. data/templates/{Debian-7.0-b2-i386-netboot → Debian-7.0-b4-amd64-netboot}/cleanup.sh +0 -0
  50. data/templates/{Debian-7.0-b3-amd64-netboot → Debian-7.0-b4-amd64-netboot}/definition.rb +3 -3
  51. data/templates/{Debian-7.0-b3-amd64-netboot → Debian-7.0-b4-amd64-netboot}/preseed.cfg +0 -0
  52. data/templates/{Debian-7.0-b2-i386-netboot → Debian-7.0-b4-amd64-netboot}/puppet.sh +0 -0
  53. data/templates/{Debian-7.0-b2-i386-netboot → Debian-7.0-b4-amd64-netboot}/ruby.sh +0 -0
  54. data/templates/{Debian-7.0-b2-i386-netboot → Debian-7.0-b4-amd64-netboot}/vagrant.sh +0 -0
  55. data/templates/{Debian-7.0-b2-i386-netboot → Debian-7.0-b4-amd64-netboot}/virtualbox.sh +0 -0
  56. data/templates/{Debian-7.0-b3-amd64-netboot → Debian-7.0-b4-amd64-netboot}/zerodisk.sh +0 -0
  57. data/templates/{Debian-7.0-b3-amd64-netboot → Debian-7.0-b4-i386-netboot}/base.sh +2 -3
  58. data/templates/{Debian-7.0-b3-amd64-netboot → Debian-7.0-b4-i386-netboot}/chef.sh +0 -0
  59. data/templates/{Debian-7.0-b3-amd64-netboot → Debian-7.0-b4-i386-netboot}/cleanup-virtualbox.sh +0 -0
  60. data/templates/{Debian-7.0-b3-amd64-netboot → Debian-7.0-b4-i386-netboot}/cleanup.sh +0 -0
  61. data/templates/{Debian-7.0-b2-i386-netboot → Debian-7.0-b4-i386-netboot}/definition.rb +3 -3
  62. data/templates/{Debian-7.0-b2-i386-netboot → Debian-7.0-b4-i386-netboot}/preseed.cfg +0 -0
  63. data/templates/{Debian-7.0-b3-amd64-netboot → Debian-7.0-b4-i386-netboot}/puppet.sh +0 -0
  64. data/templates/{Debian-7.0-b3-amd64-netboot → Debian-7.0-b4-i386-netboot}/ruby.sh +0 -0
  65. data/templates/{Debian-7.0-b3-amd64-netboot → Debian-7.0-b4-i386-netboot}/vagrant.sh +0 -0
  66. data/templates/{Debian-7.0-b3-amd64-netboot → Debian-7.0-b4-i386-netboot}/virtualbox.sh +0 -0
  67. data/templates/Debian-7.0-b4-i386-netboot/zerodisk.sh +3 -0
  68. data/templates/Fedora-18-i386/definition.rb +6 -6
  69. data/templates/Fedora-18-i386/postinstall.sh +3 -1
  70. data/templates/Fedora-18-x86_64/definition.rb +5 -5
  71. data/templates/Fedora-18-x86_64/postinstall.sh +6 -1
  72. data/templates/ubuntu-12.04.1-server-amd64-packages/postinstall.sh +4 -5
  73. data/templates/ubuntu-12.04.1-server-amd64/postinstall.sh +4 -5
  74. data/templates/ubuntu-8.04.4-server-amd64/postinstall.sh +6 -6
  75. data/templates/ubuntu-8.04.4-server-i386/postinstall.sh +6 -6
  76. data/templates/windows-8-amd64/Autounattend.xml +140 -0
  77. data/templates/windows-8-amd64/README.md +134 -0
  78. data/templates/windows-8-amd64/cygwin-setup.exe +0 -0
  79. data/templates/windows-8-amd64/definition.rb +101 -0
  80. data/templates/windows-8-amd64/install-cygwin-sshd.bat +38 -0
  81. data/templates/windows-8-amd64/install-winrm.bat +11 -0
  82. data/templates/windows-8-amd64/oracle-cert.cer +0 -0
  83. data/templates/windows-8-amd64/postinstall.sh +122 -0
  84. data/templates/windows-8-amd64/winrm.rb +8 -0
  85. data/templates/windows-8-i386/Autounattend.xml +140 -0
  86. data/templates/windows-8-i386/README.md +134 -0
  87. data/templates/windows-8-i386/cygwin-setup.exe +0 -0
  88. data/templates/windows-8-i386/definition.rb +101 -0
  89. data/templates/windows-8-i386/install-cygwin-sshd.bat +38 -0
  90. data/templates/windows-8-i386/install-winrm.bat +11 -0
  91. data/templates/windows-8-i386/oracle-cert.cer +0 -0
  92. data/templates/windows-8-i386/postinstall.sh +122 -0
  93. data/templates/windows-8-i386/winrm.rb +8 -0
  94. data/test/build_realtest.rb +4 -4
  95. data/veewee.gemspec +8 -9
  96. metadata +55 -27
@@ -0,0 +1,8 @@
1
+ # Installing the virtualbox guest additions
2
+ VBOX_VERSION=$(cat /home/veewee/.vbox_version)
3
+ cd /tmp
4
+ mount -o loop /home/veewee/VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
5
+ sh /mnt/VBoxLinuxAdditions.run
6
+ umount /mnt
7
+ rm -rf /home/veewee/VBoxGuestAdditions_*.iso
8
+
@@ -1,13 +1,12 @@
1
1
  # Update the box
2
2
  apt-get -y update
3
3
  apt-get -y install linux-headers-$(uname -r) build-essential
4
- apt-get -y install zlib1g-dev libssl-dev libreadline5-dev
4
+ apt-get -y install zlib1g-dev libssl-dev libreadline-gplv2-dev
5
5
  apt-get -y install curl unzip
6
6
  apt-get clean
7
7
 
8
8
  # Set up sudo
9
- cp /etc/sudoers /etc/sudoers.orig
10
- sed -i -e 's/%sudo\s+ALL=(ALL:ALL) ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers
9
+ echo 'vagrant ALL=NOPASSWD:ALL' > /etc/sudoers.d/vagrant
11
10
 
12
11
  # Tweak sshd to prevent DNS resolution (speed up logins)
13
12
  echo 'UseDNS no' >> /etc/ssh/sshd_config
@@ -5,9 +5,9 @@ Veewee::Definition.declare({
5
5
  :memory_size=> '256',
6
6
  :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
7
7
  :os_type_id => 'Debian',
8
- :iso_file => "debian-wheezy-DI-b3-amd64-netinst.iso",
9
- :iso_src => "http://cdimage.debian.org/cdimage/wheezy_di_beta3/amd64/iso-cd/debian-wheezy-DI-b3-amd64-netinst.iso",
10
- :iso_md5 => "e9f2479c43a623dd8b9c0bc95d8460ce",
8
+ :iso_file => "debian-wheezy-DI-b4-amd64-netinst.iso",
9
+ :iso_src => "http://cdimage.debian.org/cdimage/wheezy_di_beta4/amd64/iso-cd/debian-wheezy-DI-b4-amd64-netinst.iso",
10
+ :iso_md5 => "9fcd2bb541f9b6b32f2a17116d606bed",
11
11
  :iso_download_timeout => "1000",
12
12
  :boot_wait => "10", :boot_cmd_sequence => [
13
13
  '<Esc>',
@@ -1,13 +1,12 @@
1
1
  # Update the box
2
2
  apt-get -y update
3
3
  apt-get -y install linux-headers-$(uname -r) build-essential
4
- apt-get -y install zlib1g-dev libssl-dev libreadline5-dev
4
+ apt-get -y install zlib1g-dev libssl-dev libreadline-gplv2-dev
5
5
  apt-get -y install curl unzip
6
6
  apt-get clean
7
7
 
8
8
  # Set up sudo
9
- cp /etc/sudoers /etc/sudoers.orig
10
- sed -i -e 's/%sudo[ \t]*ALL=(ALL:ALL) ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers
9
+ echo 'vagrant ALL=NOPASSWD:ALL' > /etc/sudoers.d/vagrant
11
10
 
12
11
  # Tweak sshd to prevent DNS resolution (speed up logins)
13
12
  echo 'UseDNS no' >> /etc/ssh/sshd_config
@@ -5,9 +5,9 @@ Veewee::Definition.declare({
5
5
  :memory_size=> '256',
6
6
  :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
7
7
  :os_type_id => 'Debian',
8
- :iso_file => "debian-wheezy-DI-b2-i386-netinst.iso",
9
- :iso_src => "http://cdimage.debian.org/cdimage/wheezy_di_beta2/i386/iso-cd/debian-wheezy-DI-b2-i386-netinst.iso",
10
- :iso_md5 => "a2be1f5efd0fd64c3036ae894f4eed0e",
8
+ :iso_file => "debian-wheezy-DI-b4-i386-netinst.iso",
9
+ :iso_src => "http://cdimage.debian.org/cdimage/wheezy_di_beta4/i386/iso-cd/debian-wheezy-DI-b4-i386-netinst.iso",
10
+ :iso_md5 => "34d0ae973715c7a31646281c70839809",
11
11
  :iso_download_timeout => "1000",
12
12
  :boot_wait => "10", :boot_cmd_sequence => [
13
13
  '<Esc>',
@@ -0,0 +1,3 @@
1
+ # Zero out the free space to save space in the final image:
2
+ dd if=/dev/zero of=/EMPTY bs=1M
3
+ rm -f /EMPTY
@@ -1,11 +1,11 @@
1
1
  Veewee::Session.declare({
2
- # Minimum RAM requirement for installation is 768MB.
3
- :cpu_count => '1', :memory_size=> '768',
2
+ # Minimum RAM requirement for installation is 512MB.
3
+ :cpu_count => '1', :memory_size=> '512',
4
4
  :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :hwvirtext => 'on',
5
5
  :os_type_id => 'Fedora',
6
- :iso_file => "Fedora-18-Beta-TC9-i386-DVD.iso",
7
- :iso_src => "http://dl.fedoraproject.org/pub/alt/stage/18-Beta-TC9/Fedora/i386/iso/Fedora-18-Beta-TC9-i386-DVD.iso",
8
- :iso_md5 => "a673a3c4fa6fd731a7caeef75e3ca729",
6
+ :iso_file => "Fedora-18-Beta-i386-DVD.iso",
7
+ :iso_src => "http://download.fedoraproject.org/pub/fedora/linux/releases/test/18-Beta/Fedora/i386/iso/Fedora-18-Beta-i386-DVD.iso",
8
+ :iso_md5 => "fe79303aec5231df82ebe4a30e0dc83c",
9
9
  :iso_download_timeout => 1000,
10
10
  :boot_wait => "10", :boot_cmd_sequence => [ '<Tab> linux text biosdevname=0 ks=http://%IP%:%PORT%/ks.cfg<Enter><Enter>' ],
11
11
  :kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
@@ -13,5 +13,5 @@ Veewee::Session.declare({
13
13
  :ssh_host_port => "7222", :ssh_guest_port => "22",
14
14
  :sudo_cmd => "echo '%p'|sudo -S sh '%f'",
15
15
  :shutdown_cmd => "/sbin/halt -h -p",
16
- :postinstall_files => [ "postinstall.sh"], :postinstall_timeout => 10000
16
+ :postinstall_files => [ "postinstall.sh" ], :postinstall_timeout => 10000
17
17
  })
@@ -4,13 +4,14 @@ date > /etc/vagrant_box_build_time
4
4
 
5
5
  VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
6
6
 
7
- yum -y update
7
+ yum -y update --exclude kernel*
8
8
 
9
9
  yum -y install \
10
10
  ruby \
11
11
  ruby-devel \
12
12
  puppet \
13
13
  rubygems \
14
+ rubygem-bunny \
14
15
  rubygem-erubis \
15
16
  rubygem-highline \
16
17
  rubygem-json \
@@ -18,6 +19,7 @@ yum -y install \
18
19
  rubygem-net-ssh \
19
20
  rubygem-polyglot \
20
21
  rubygem-rest-client \
22
+ rubygem-systemu \
21
23
  rubygem-treetop \
22
24
  rubygem-uuidtools \
23
25
  wget \
@@ -1,11 +1,11 @@
1
1
  Veewee::Session.declare({
2
- # Minimum RAM requirement for installation is 768MB.
3
- :cpu_count => '1', :memory_size=> '768',
2
+ # Minimum RAM requirement for installation is 512MB.
3
+ :cpu_count => '1', :memory_size=> '512',
4
4
  :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :hwvirtext => 'on',
5
5
  :os_type_id => 'Fedora_64',
6
- :iso_file => "Fedora-18-Beta-TC9-x86_64-DVD.iso",
7
- :iso_src => "http://dl.fedoraproject.org/pub/alt/stage/18-Beta-TC9/Fedora/x86_64/iso/Fedora-18-Beta-TC9-x86_64-DVD.iso",
8
- :iso_md5 => "4bc92931769a3cff344d706385cfaf77",
6
+ :iso_file => "Fedora-18-Beta-x86_64-DVD.iso",
7
+ :iso_src => "http://download.fedoraproject.org/pub/fedora/linux/releases/test/18-Beta/Fedora/x86_64/iso/Fedora-18-Beta-x86_64-DVD.iso",
8
+ :iso_md5 => "82b755826e205da0973404be937991a1",
9
9
  :iso_download_timeout => 1000,
10
10
  :boot_wait => "10", :boot_cmd_sequence => [ '<Tab> linux text biosdevname=0 ks=http://%IP%:%PORT%/ks.cfg<Enter><Enter>' ],
11
11
  :kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
@@ -4,13 +4,17 @@ date > /etc/vagrant_box_build_time
4
4
 
5
5
  VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
6
6
 
7
- yum -y update
7
+ # Must exclude kernel for now. Otherwise, kernel gets upgraded before reboot,
8
+ # but VirtualBox tools get compiled against the old kernel, so the fresh
9
+ # image will refuse to start under Vagrant.
10
+ yum -y update --exclude kernel*
8
11
 
9
12
  yum -y install \
10
13
  ruby \
11
14
  ruby-devel \
12
15
  puppet \
13
16
  rubygems \
17
+ rubygem-bunny \
14
18
  rubygem-erubis \
15
19
  rubygem-highline \
16
20
  rubygem-json \
@@ -18,6 +22,7 @@ yum -y install \
18
22
  rubygem-net-ssh \
19
23
  rubygem-polyglot \
20
24
  rubygem-rest-client \
25
+ rubygem-systemu \
21
26
  rubygem-treetop \
22
27
  rubygem-uuidtools \
23
28
  wget \
@@ -21,13 +21,12 @@ sh /mnt/VBoxLinuxAdditions.run
21
21
  umount /mnt
22
22
 
23
23
  rm VBoxGuestAdditions_$VBOX_VERSION.iso
24
+ rm /home/vagrant/VBoxGuestAdditions_$VBOX_VERSION.iso
24
25
 
25
- # Setup sudo to allow no-password sudo for "admin"
26
- groupadd -r admin
27
- usermod -a -G admin vagrant
26
+ # Setup sudo to allow no-password sudo for "sudo"
27
+ usermod -a -G sudo vagrant
28
28
  cp /etc/sudoers /etc/sudoers.orig
29
- sed -i -e '/Defaults\s\+env_reset/a Defaults\texempt_group=admin' /etc/sudoers
30
- sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
29
+ sed -i -e 's/%sudo ALL=(ALL:ALL) ALL/%sudo ALL=(ALL:ALL) NOPASSWD: ALL/' /etc/sudoers
31
30
 
32
31
  # Add puppet user and group
33
32
  adduser --system --group --home /var/lib/puppet puppet
@@ -22,13 +22,12 @@ sh /mnt/VBoxLinuxAdditions.run
22
22
  umount /mnt
23
23
 
24
24
  rm VBoxGuestAdditions_$VBOX_VERSION.iso
25
+ rm /home/vagrant/VBoxGuestAdditions_$VBOX_VERSION.iso
25
26
 
26
- # Setup sudo to allow no-password sudo for "admin"
27
- groupadd -r admin
28
- usermod -a -G admin vagrant
27
+ # Setup sudo to allow no-password sudo for "sudo"
28
+ usermod -a -G sudo vagrant
29
29
  cp /etc/sudoers /etc/sudoers.orig
30
- sed -i -e '/Defaults\s\+env_reset/a Defaults\texempt_group=admin' /etc/sudoers
31
- sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
30
+ sed -i -e 's/%sudo ALL=(ALL:ALL) ALL/%sudo ALL=(ALL:ALL) NOPASSWD:ALL/' /etc/sudoers
32
31
 
33
32
  # Add puppet user and group
34
33
  adduser --system --group --home /var/lib/puppet puppet
@@ -2,6 +2,12 @@
2
2
 
3
3
  date > /etc/vagrant_box_build_time
4
4
 
5
+ #Updating the box
6
+ apt-get -y update
7
+ apt-get -y install linux-headers-$(uname -r) build-essential
8
+ apt-get -y install zlib1g-dev libssl-dev libreadline5-dev nfs-common
9
+ apt-get clean
10
+
5
11
  #Installing the virtualbox guest additions
6
12
  apt-get -y install dkms
7
13
  VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
@@ -13,12 +19,6 @@ umount /mnt
13
19
 
14
20
  rm VBoxGuestAdditions_$VBOX_VERSION.iso
15
21
 
16
- #Updating the box
17
- apt-get -y update
18
- apt-get -y install linux-headers-$(uname -r) build-essential
19
- apt-get -y install zlib1g-dev libssl-dev libreadline5-dev nfs-common
20
- apt-get clean
21
-
22
22
  #Setting up sudo
23
23
  cp /etc/sudoers /etc/sudoers.orig
24
24
  sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
@@ -2,6 +2,12 @@
2
2
 
3
3
  date > /etc/vagrant_box_build_time
4
4
 
5
+ #Updating the box
6
+ apt-get -y update
7
+ apt-get -y install linux-headers-$(uname -r) build-essential
8
+ apt-get -y install zlib1g-dev libssl-dev libreadline5-dev nfs-common
9
+ apt-get clean
10
+
5
11
  #Installing the virtualbox guest additions
6
12
  apt-get -y install dkms
7
13
  VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
@@ -13,12 +19,6 @@ umount /mnt
13
19
 
14
20
  rm VBoxGuestAdditions_$VBOX_VERSION.iso
15
21
 
16
- #Updating the box
17
- apt-get -y update
18
- apt-get -y install linux-headers-$(uname -r) build-essential
19
- apt-get -y install zlib1g-dev libssl-dev libreadline5-dev nfs-common
20
- apt-get clean
21
-
22
22
  #Setting up sudo
23
23
  cp /etc/sudoers /etc/sudoers.orig
24
24
  sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
@@ -0,0 +1,140 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <unattend xmlns="urn:schemas-microsoft-com:unattend">
3
+ <servicing></servicing>
4
+ <settings pass="windowsPE">
5
+ <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
6
+ <DiskConfiguration>
7
+ <Disk wcm:action="add">
8
+ <CreatePartitions>
9
+ <CreatePartition wcm:action="add">
10
+ <Order>1</Order>
11
+ <Type>Primary</Type>
12
+ <Extend>true</Extend>
13
+ </CreatePartition>
14
+ </CreatePartitions>
15
+ <ModifyPartitions>
16
+ <ModifyPartition wcm:action="add">
17
+ <Extend>false</Extend>
18
+ <Format>NTFS</Format>
19
+ <Letter>C</Letter>
20
+ <Order>1</Order>
21
+ <PartitionID>1</PartitionID>
22
+ <Label>Windows 2008</Label>
23
+ </ModifyPartition>
24
+ </ModifyPartitions>
25
+ <DiskID>0</DiskID>
26
+ <WillWipeDisk>true</WillWipeDisk>
27
+ </Disk>
28
+ <WillShowUI>OnError</WillShowUI>
29
+ </DiskConfiguration>
30
+ <UserData>
31
+ <AcceptEula>true</AcceptEula>
32
+ <FullName>Vagrant Fullname</FullName>
33
+ <Organization>Vagrant Inc</Organization>
34
+ <ProductKey>
35
+ <WillShowUI>Always</WillShowUI>
36
+ </ProductKey>
37
+ </UserData>
38
+ <ImageInstall>
39
+ <OSImage>
40
+ <InstallTo>
41
+ <DiskID>0</DiskID>
42
+ <PartitionID>1</PartitionID>
43
+ </InstallTo>
44
+ <WillShowUI>OnError</WillShowUI>
45
+ <InstallToAvailablePartition>false</InstallToAvailablePartition>
46
+ <InstallFrom>
47
+ <MetaData wcm:action="add">
48
+ <Key>/IMAGE/NAME</Key>
49
+ <Value>Windows Longhorn SERVERSTANDARD</Value>
50
+ </MetaData>
51
+ </InstallFrom>
52
+ </OSImage>
53
+ </ImageInstall>
54
+ </component>
55
+ <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
56
+ <SetupUILanguage>
57
+ <UILanguage>en-US</UILanguage>
58
+ </SetupUILanguage>
59
+ <InputLocale>en-US</InputLocale>
60
+ <SystemLocale>en-US</SystemLocale>
61
+ <UILanguage>en-US</UILanguage>
62
+ <UILanguageFallback>en-US</UILanguageFallback>
63
+ <UserLocale>en-US</UserLocale>
64
+ </component>
65
+ </settings>
66
+ <settings pass="oobeSystem">
67
+ <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
68
+ <UserAccounts>
69
+ <AdministratorPassword>
70
+ <Value>dgBhAGcAcgBhAG4AdABBAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAFAAYQBzAHMAdwBvAHIAZAA=</Value>
71
+ <PlainText>false</PlainText>
72
+ </AdministratorPassword>
73
+ <LocalAccounts>
74
+ <LocalAccount wcm:action="add">
75
+ <Password>
76
+ <Value>dgBhAGcAcgBhAG4AdABQAGEAcwBzAHcAbwByAGQA</Value>
77
+ <PlainText>false</PlainText>
78
+ </Password>
79
+ <Description>Vagrant User</Description>
80
+ <DisplayName>vagrant</DisplayName>
81
+ <Group>administrators</Group>
82
+ <Name>vagrant</Name>
83
+ </LocalAccount>
84
+ </LocalAccounts>
85
+ </UserAccounts>
86
+ <OOBE>
87
+ <HideEULAPage>true</HideEULAPage>
88
+ <NetworkLocation>Home</NetworkLocation>
89
+ <ProtectYourPC>3</ProtectYourPC>
90
+ </OOBE>
91
+ <AutoLogon>
92
+ <Password>
93
+ <Value>dgBhAGcAcgBhAG4AdABQAGEAcwBzAHcAbwByAGQA</Value>
94
+ <PlainText>false</PlainText>
95
+ </Password>
96
+ <Username>administrator</Username>
97
+ <Enabled>true</Enabled>
98
+ </AutoLogon>
99
+ <FirstLogonCommands>
100
+ <SynchronousCommand wcm:action="add">
101
+ <CommandLine>cmd.exe /c a:install-winrm.bat</CommandLine>
102
+ <Description>Install Win RM</Description>
103
+ <Order>1</Order>
104
+ </SynchronousCommand>
105
+ <!-- <SynchronousCommand wcm:action="add"> -->
106
+ <!-- <CommandLine>cmd.exe /c a:install-chefclient.bat</CommandLine> -->
107
+ <!-- <Description>Install Chef Client</Description> -->
108
+ <!-- <Order>2</Order> -->
109
+ <!-- </SynchronousCommand> -->
110
+ <SynchronousCommand wcm:action="add">
111
+ <CommandLine>cmd.exe /c a:install-cygwin-sshd.bat</CommandLine>
112
+ <Description>Install Cygwin SSHD</Description>
113
+ <Order>2</Order>
114
+ </SynchronousCommand>
115
+ </FirstLogonCommands>
116
+ <ShowWindowsLive>false</ShowWindowsLive>
117
+ </component>
118
+ </settings>
119
+ <settings pass="specialize">
120
+ <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
121
+ <OEMInformation>
122
+ <HelpCustomized>false</HelpCustomized>
123
+ </OEMInformation>
124
+ <!-- Rename computer here. -->
125
+ <ComputerName>vagrant-2008R2</ComputerName>
126
+ <TimeZone>New Zealand Standard Time</TimeZone>
127
+ <RegisteredOwner></RegisteredOwner>
128
+ </component>
129
+ <component name="Microsoft-Windows-OutOfBoxExperience" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
130
+ <DoNotOpenInitialConfigurationTasksAtLogon>true</DoNotOpenInitialConfigurationTasksAtLogon>
131
+ </component>
132
+ <component name="Microsoft-Windows-ServerManager-SvrMgrNc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
133
+ <DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon>
134
+ </component>
135
+ <component name="Microsoft-Windows-Security-Licensing-SLC-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
136
+ <SkipAutoActivation>true</SkipAutoActivation>
137
+ </component>
138
+ </settings>
139
+ <cpi:offlineImage cpi:source="catalog:d:/sources/install_windows longhorn serverstandard.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
140
+ </unattend>