Vagrant 仮想マシンの状態を確認する

Vagrant 仮想マシンの状態を確認する



  • OS windows10 pro
  • Vagrant 2.3.1


仮想マシンの状態を確認するには、「 status 」コマンドを使用します。

> vagrant status


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


> vagrant global-status
id       name    provider   state    directory
3403bf1  default virtualbox running  C:/centos9
07ab5bc  default virtualbox running  C:/rocky9
73ff251  default virtualbox poweroff C:/ubuntu
The above shows information about all known Vagrant environments
on this machine. This data is cached and may not be completely
up-to-date (use "vagrant global-status --prune" to prune invalid
entries). To interact with any of the machines, you can go to that
directory and run Vagrant, or you can use the ID directly with
Vagrant commands from any directory. For example:
"vagrant destroy 1a2b3c4d"