Vagrant

512mb ram, disable usb & audio

forward host 2222 to guest 22

select Etc/GMT

root password: vagrant

/etc/sysconfig/network-scripts/ifcfg-eth0

> onboot=”yes”

# ifup eth0

# yum update

# reboot

# groupadd -g 107 vagrant

# useradd -g 107 -u 107 vagrant

# passwd vagrant (set to vagrant)

# echo 'Defaults env_keep += SSH_AUTH_SOCK

%vagrant ALL=NOPASSWD: ALL

Defaults:vagrant !requiretty' > /etc/sudoers.d/vagrant

# chmod 0440 /etc/sudoers.d/vagrant

/etc/selinux/config

> SELINUX=disabled

su - vagrant

$ mkdir /home/vagrant/.ssh

$ chmod 700 !$

$ cd !$

$ wget --no-check-certificate https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub -O authorized_keys

$ chmod 600 /home/vagrant/.ssh/authorized_keys

# yum install -y dkms gcc kernel-devel kernel-headers make perl wget

Select install guest additions...

# mount -r /dev/cdrom /media

# /media/VBoxLinuxAdditions.run

window system / xorg failure is okay

# yum remove -y gcc kernel-devel kernel-headers make perl

# yum clean all

# mkdir /vagrant && chmod 777 !$

# dd if=/dev/zero of=/EMPTY bs=1M

# rm /EMPTY

# reboot

vagrant package --output centos64.box --base vagrant-centos64

vagrant box add centos64 centos64.box