erea

vagrant 본문

devops/docker

vagrant

erea 2016. 9. 30. 17:54

yum -y update


cd /etc/yum.repos.d

wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo


vim 

fedora -> rhel


rpm -Uvh http://epel.mirror.net.in/epel/7/x86_64/e/epel-release-7-8.noarch.rpm


 yum install gcc make patch  dkms qt libgomp

# yum install kernel-headers kernel-devel fontforge binutils glibc-headers glibc-devel


버츄어박스 이용하기 위해 커널 디렉토리를 따로 설정해준다

export KERN_DIR=/usr/src/kernels/3.10.0-327.36.1.el7.x86_64

                                  /usr/src/kernels/3.10.0-327.36.1.el7.x86_64/


 yum install VirtualBox-5.0


service vboxdrv start



wget https://releases.hashicorp.com/vagrant/1.8.6/vagrant_1.8.6_x86_64.rpm





vagrant box add centos/7


vagrant box list


vagrant init centos/7


vagrant up --provider=centos/7



o install the headers and kernel for the correct version. After this you may have to reinstall virtualbox and/or use


modprobe vboxdrv




vagrant status



 VBoxManage list vms



VBoxManage list runningvms


 VBoxHeadless -s  vm_default_1475251902495_79311


The machine 'vm_default_1475251902495_79311' is already locked for a session

'devops > docker' 카테고리의 다른 글

docker registry native basic auth  (0) 2018.07.16
centos7 service script 사용  (0) 2018.07.01
centos7 docker systemctl 권한 얻기  (0) 2018.07.01
docker 환경구축  (0) 2017.12.14
docker 설치시 hyper-v 오류시  (0) 2017.12.14
Comments