vagrant upを実行すると下記のエラーが出ました。
A Vagrant environment or target machine is required to run this
command. Run `vagrant init` to create a new Vagrant environment. Or,
get an ID of a target machine from `vagrant global-status` to run
this command on. A final option is to change to a directory with a
Vagrantfile and to try again.
調べてみると、VagrantとVirtualBoxとの紐付けが削除されているとの事。
下記のサイト
Vagrantの仮想マシンとの紐付けの直し方 - ウチのメモ
を参考に、
VirtualBoxのUUID
と
C:\Vagrant\.vagrant\machines\default\virtualbox\id
を見てみましたが、
しっかり紐付けされていました。
では、なぜ、上記のようなエラーが出たのか。
実は、vagrant upを実行するディレクトリを間違えていたことが判明。
正しいディレクトリで実行したら、うまく起動しました。
単純なケアレスミスですが、
そのおかげで、vagrantとVirtualBoxとの紐付けの直し方を知ることができたので、
個人的には良しとします。