Permalink
Browse files

CENTOS 6.3: Make the 32bit basebox build

Rename the veewee user to vagrant.
Make the entire build work.
  • Loading branch information...
1 parent ddd61a4 commit 365eee96e72f36b6eb08be664e1c4da84f6199f1 @edgester edgester committed Dec 24, 2012
View
4 templates/CentOS-6.3-i386-minimal/definition.rb
@@ -26,8 +26,8 @@
:kickstart_timeout => 10000,
:kickstart_file => "ks.cfg",
:ssh_login_timeout => "10000",
- :ssh_user => "veewee",
- :ssh_password => "veewee",
+ :ssh_user => "vagrant",
+ :ssh_password => "vagrant",
:ssh_key => "",
:ssh_host_port => "7222",
:ssh_guest_port => "22",
View
29 templates/CentOS-6.3-i386-minimal/ks.cfg
@@ -53,11 +53,26 @@ bzip2
-zd1211-firmware.noarch
%post
-/usr/bin/yum -y install sudo
-/usr/sbin/groupadd veewee
-/usr/sbin/useradd veewee -g veewee -G wheel
-echo "veewee"|passwd --stdin veewee
-echo "veewee ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/veewee
-chmod 0440 /etc/sudoers.d/veewee
-%end
+date > /etc/vagrant_box_build_time
+
+/usr/bin/yum -y install acpid sudo wget bind-utils
+
+/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.d/vagrant
+chmod 0440 /etc/sudoers.d/vagrant
+
+mkdir -p /home/vagrant/.ssh
+wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
+chown -R vagrant /home/vagrant/.ssh
+chgrp -R vagrant /home/vagrant/.ssh
+chmod -R go= /home/vagrant/.ssh
+# Make ssh faster by not waiting on DNS
+echo "UseDNS no" >> /etc/ssh/sshd_config
+
+# show boot-time messages
+sed -i'' -e's/ rhgb quiet//' /boot/grub/grub.conf
+
+%end
View
6 templates/CentOS-6.3-i386-minimal/virtualbox.sh
@@ -1,8 +1,8 @@
# Installing the virtualbox guest additions
-VBOX_VERSION=$(cat /home/veewee/.vbox_version)
+VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
cd /tmp
-mount -o loop /home/veewee/VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
+mount -o loop /home/vagrant/VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
sh /mnt/VBoxLinuxAdditions.run
umount /mnt
-rm -rf /home/veewee/VBoxGuestAdditions_*.iso
+rm -rf /home/vagrant/VBoxGuestAdditions_*.iso

0 comments on commit 365eee9

Please sign in to comment.