YOUNG-JIN.OH
웃어라. 온 세상이 너와 함께 웃을 것이다.
울어라. 너 혼자만 울게 될 것이다.

Vagrant, Install CoreOS

참고 사이트:

VirtualBox, Install CoreOS 에서 번거로웠던 작업이 Vagrant를 이용하면 얼마나 편리한지 알아보도록 합니다. 우선 coreos에서 제공하는 Vagrant의 기본 설정 내용을 git으로 받습니다.

$ git clone https://github.com/coreos/coreos-vagrant
Cloning into ‘coreos-vagrant’…
remote: Enumerating objects: 484, done.
remote: Total 484 (delta 0), reused 0 (delta 0), pack-reused 484
Receiving objects: 100% (484/484), 129.41 KiB | 324.00 KiB/s, done.
Resolving deltas: 100% (215/215), done.

만들어진 디렉토리에 들어가면 여러가지 설정파일이 확인되는데 별다른 수정없이 바로 vagrant up 명령어를 입력해 봅니다.

$ cd coreos-vagrant

# 가상머신 기동
$ vagrant up
Bringing machine ‘core-01’ up with ‘virtualbox’ provider…
==> core-01: Importing base box ‘coreos-alpha’…
==> core-01: Configuring Ignition Config Drive
==> core-01: Matching MAC address for NAT networking…
==> core-01: Checking if box ‘coreos-alpha’ version ‘2037.0.0’ is up to date…
==> core-01: Setting the name of the VM: coreos-vagrant_core-01_1549771148239_79593
==> core-01: Clearing any previously set network interfaces…
==> core-01: Preparing network interfaces based on configuration…
core-01: Adapter 1: nat
core-01: Adapter 2: hostonly
==> core-01: Forwarding ports…
core-01: 22 (guest) => 2222 (host) (adapter 1)
==> core-01: Running ‘pre-boot’ VM customizations…
==> core-01: Booting VM…
==> core-01: Waiting for machine to boot. This may take a few minutes…
core-01: SSH address: 127.0.0.1:2222
core-01: SSH username: core
core-01: SSH auth method: private key
==> core-01: Machine booted and ready!
==> core-01: Setting hostname…
==> core-01: Configuring and enabling network interfaces…

vagrant up 명령어 하나로 CoreOS가 설치가 완료되고 실행되었습니다.

coreos-vagrant_core01_xxx 가 생성되어 실행 중으로 표시됩니다.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.