動作環境 †
- OS X 10.11 El Capitan
- VirtualBox 5.1.26 r117224 (Qt5.6.2)
- Vagrant 1.9.7
仮想マシン作成・起動 †
$ vagrant box add amzn-linux-2017.03 https://atlas.hashicorp.com/mvbcoding/boxes/awslinux/versions/2017.03.0.20170401/providers/virtualbox.box
$ vagrant box list
$ mkdir amzn-linux-2017.03
$ cd amzn-linux-2017.03
$ vagrant init amzn-linux-2017.03
# config.vm.box = "amzn-linux-2017.03"
config.vm.box = "mvbcoding/awslinux"
config.vm.box_version = "2017.03.0.20170401"
config.vm.network "private_network", ip: "192.168.33.10"
$ vagrant up
$ vagrant ssh
__| __|_ )
_| ( / Amazon Linux AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-ami/2017.03-release-notes/
27 package(s) needed for security, out of 36 available
Run "sudo yum update" to apply all updates.
[vagrant@localhost ~]$
OS 初期設定 †
$ sudo yum -y update
$ cp /usr/share/zoneinfo/Japan ./
$ mv Japan localtime
$ sudo mv ./localtime /etc/localtime
- history コマンド日時表示設定 (HISTTIMEFORMAT 設定追記)
$ sudo vi ~/.bashrc
--------------------
export HISTTIMEFORMAT='%F %T '
--------------------
$ source ~/.bashrc
$ history
- selinux, iptables 状態確認 ※ Amazon Linux ではデフォルトで selinux, iptables は無効
$ getenforce
Disabled
$ sudo /etc/init.d/iptables status
iptables: ファイアウォールが稼働していません。
$ yum repolist enabled
リポジトリー ID リポジトリー名
amzn-main/2017.03 amzn-main-Base
amzn-updates/2017.03 amzn-updates-Base
$ yum repolist disabled
リポジトリー ID リポジトリー名
amzn-main-debuginfo/2017.03 amzn-main-debuginfo
amzn-main-source/2017.03 amzn-main-source
amzn-nosrc/2017.03 amzn-nosrc-Base
amzn-preview/2017.03 amzn-preview-Base
amzn-preview-debuginfo/2017.03 amzn-preview-debuginfo
amzn-preview-source/2017.03 amzn-preview-source
amzn-updates-debuginfo/2017.03 amzn-updates-debuginfo
amzn-updates-source/2017.03 amzn-updates-source
epel/x86_64 Extra Packages for Enterprise Linux 6 - x86_64
epel-debuginfo/x86_64 Extra Packages for Enterprise Linux 6 - x86_64 - Debug
epel-source/x86_64 Extra Packages for Enterprise Linux 6 - x86_64 - Source
epel-testing/x86_64 Extra Packages for Enterprise Linux 6 - Testing - x86_64
epel-testing-debuginfo/x86_64 Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Debug
epel-testing-source/x86_64 Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Source