0
0

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 1 year has passed since last update.

Vagrant環境の引き継ぎ

Posted at

旧PC⇒新PCにVagrant開発環境をVM毎引き継ぐ。

 開発環境移行時に、Vagrantで立ち上げてPCをどうしても新PCに引き継ぎたくなった場合の方法。(本当は新たにVagrantで作り直した方がいいが、どうしてもとなった場合)

◎方法

  1. VMを作成。
vagrant up
  1. 立ち上げに成功したらでシャットダウン。
vagrant halt
  1. VirtualBoxを起動し、ストレージの参照先を変更する。

  2. VMを立ち上げ。
    →うまくSSHで繋がらないが立ち上げには成功している(はず)。

vagrant up
  1. VMをシャットダウン。
vagrant halt
  1. 認証だけ失敗しているようなので、
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...

旧PCから.vagrant内のprivate_idをコピーしてきて、新PCのvagrant内のprivate_keyを書き換える。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?