- create new VM “F20”
- VMDK, virtio_net, Host I/O cache
- minimum install
- BTRFS
- root pass = vagrant
- yum install kernel-devel gcc tar bzip2 perl ruby ruby-devel rubygems
- yum clean all
- install guest additions
- Devices – Insert Guest Additions CD image…
- mount /dev/cdrom /mnt
- cd /mnt
- ./VBoxLinuxAdditions.run
- umount, eject
- gem install chef –no-rdoc –no-ri
- systemctl disable firewalld.service
- vi /etc/selinux/config
- useradd -G wheel vagrant
- passwd vagrant (-> vagrant)
- visudo
- %wheel ALL=(ALL) NOPASSWD: ALL
- # Defaults requiretty
- Defaults env_keep += “SSH_AUTH_SOCK PATH”
- # Defaults securepath
- su – vagrant
- echo ‘export PATH=$PATH:/usr/sbin:/sbin’ >> .bashrc
- mkdir .ssh
- chmod 755 .ssh
- curl -O https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub
- mv vagrant.pub > .ssh/authorized_keys
- chmod 644 .ssh/authorized_keys
- sudo poweroff
- vagrant package –base F20 –output F20.box
- vagrant box add –name fedora20 F20.box