virtual box, vagrantをダウンロード&インストールします。
# ディレクトリ作成
$ mkdir awslinux
$ cd awslinux
# vagrant init
$ vagrant init mvbcoding/awslinux
$ ls
Vagrantfile
vagrantfileのポートフォワーディングのコメントアウト削除
# Create a private network, which allows host-only access to the machine # using a specific IP. config.vm.network "private_network", ip: "192.168.33.10"
# 少し時間がかかります
$ vagrant up
$ vagrant status
Current machine states:
default running (virtualbox)
The VM is running. To stop this VM, you can run `vagrant halt` to
shut it down forcefully, or you can run `vagrant suspend` to simply
suspend the virtual machine. In either case, to restart it again,
simply run `vagrant up`.
# ssh接続
mac:awslinux mac$ vagrant ssh
__| __|_ )
_| ( / Amazon Linux AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-ami/2017.03-release-notes/
29 package(s) needed for security, out of 38 available
Run “sudo yum update” to apply all updates.
Amazon Linux version 2018.03 is available.
[vagrant@localhost ~]$
きゃー