1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Vagrant

1
Posted at

自分用になります
CyberduckによるVagrant(仮想マシン)の立ち上げ

ホームディレクトリに移動
$ cd

今後複数の仮想マシンを作ることを想定して、それらをまとめるフォルダ(MyVagrant)を作る
$ mkdir MyVagrant

MyVagrantに移動する
$ cd MyVagrant

仮想マシンを作るフォルダを作る(MyCentOS)
$ mkdir MyCentOS

MyCentOSに移動する
$ cd MyCentOS

仮想マシン設定用のVagrantfileを作る
$ vagrant init bento/centos-6.8

Vagrantfileを編集して仮想マシンのIPアドレスを192.168.33.10にする
$ sed -i '' -e 's/# config.vm.network "private_network", ip: "192.168.33.10"/config.vm.network "private_network", ip: "192.168.33.10"/' Vagrantfile

仮想マシンを起動する(少し時間かかります)
$ vagrant up

仮想マシンの状態を確認する
$ vagrant status

サーバーログイン(記載が変わればok)
$ vagrant ssh

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?