Skip to content

Commit

Permalink
CENTOS 6.3: Make the 32bit basebox build
Browse files Browse the repository at this point in the history
Rename the veewee user to vagrant.
Make the entire build work.
  • Loading branch information
edgester committed Dec 24, 2012
1 parent ddd61a4 commit 365eee9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 12 deletions.
4 changes: 2 additions & 2 deletions templates/CentOS-6.3-i386-minimal/definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
29 changes: 22 additions & 7 deletions templates/CentOS-6.3-i386-minimal/ks.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions templates/CentOS-6.3-i386-minimal/virtualbox.sh
Original file line number Diff line number Diff line change
@@ -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.