1
1

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 5 years have passed since last update.

【Hyper-V】 一度削除した仮想スイッチを再作成時にエラーになるときの対処法

Last updated at Posted at 2016-04-07

ブログからの転載

一旦 New-VMSwitch で作成した仮想スイッチを Remove-VMSwitch で削除し、もう一度作ろうとしたら次のエラーが出て作れなくて困りました

PS> New-VMSwitch "NAPT" -SwitchType NAT -NatSubnetAddress "10.0.1.0/24"
New-VMSwitch : 仮想イーサネット スイッチの接続の追加中にエラーが発生しました。
発生場所 行:1 文字:1
+ New-VMSwitch "NAPT" -SwitchType NAT -NatSubnetAddress "10.0.1.0/24"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [New-VMSwitch]、VirtualizationException
    + FullyQualifiedErrorId : InvalidState,Microsoft.HyperV.PowerShell.Commands.NewVMSwitch

これは仮想スイッチに振られていた固定 IP が残っていたためのようで、それを削除したら再作成が可能になりましたので、 【Hyper-V】 仮想スイッチ(NAPT)を作成・削除する にまとめました。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?