Vagrant 仮想マシンを再起動する

Vagrantで、仮想マシンを再起動する手順を記述してます。再起動は「vagrant reload」で可能です。仮想化ソフトウェアは「VisualBox」を使用しています。
環境
- OS windows10 pro
- Vagrant 2.3.1
仮想マシンを再起動
仮想マシンを再起動するには、「 reload 」コマンドを使用します。
> vagrant reload
==> default: Attempting graceful shutdown of VM...
==> default: Checking if box 'boxomatic/centos-stream-9' version '20220921.0.1' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
起動していない「VM」に対して実行すると「起動」します。
> vagrant reload
==> default: Checking if box 'boxomatic/centos-stream-9' version '20220921.0.1' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => C:/Users/testuser/cent9
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run
-
前の記事
javascript エラー「Uncaught TypeError: xxxxx.has is not a function」の解決方法 2022.10.27
-
次の記事
Google カレンダー 予定の詳細を開くショートカットキー 2022.10.27
コメントを書く