LoginSignup
10
8

More than 5 years have passed since last update.

Ubuntu18.04にVagrantをインストールする

Posted at

vagrantのインストール

> sudo apt-get install virtualbox
> sudo apt-get install virtualbox-ext-pack
> sudo apt-get install vagrant

ubuntuイメージの作成

> mkdir -p ~/Vagrant/ubuntu18
> cd Vagrant/ubuntu18
> vagrant init ubuntu/bionic64
  • ~/Vagrant下にイメージファイルを作成することにしました
  • 今回はVagrantファイルは特に編集せず

起動

> vagrant up --provider virtualbox
  • 初回はイメージのダウンロードに30分くらいかかった

作成したイメージへのアクセス

> vagrant ssh
  • id:vagrant, pass:vagrant
  • ssh時は自動で作った鍵を使ってアクセスする

停止

> vagrant halt

参考

10
8
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
10
8