Symptoms

Provider has deployed a new Hyper-V hardware node. New VM was created successfully, but the task still fails:

Last execution output   Execution of configuration script for instance with id 12109 of service with id ddc_membership_vm of instance with id 7118 of application with id 156 failed - returned value: -1 output: '' errors: 'Failed to create VM: Property 'PreventIPSpoofing' cannot be found on this object; make sure it exist
s and is settable.
At C:\Program Files (x86)\SWsoft\PEM\APS\instances\7118\scripts\createVM.ps1:12
7 char:19
+ $Msvm_SwitchPort. <<<< PreventIPSpoofing=$true
+ CategoryInfo : InvalidOperation: (:) [], ParentContainsErrorRec
ordException
+ FullyQualifiedErrorId : PropertyAssignmentException

Cause

PreventIPSpoofing is a new feature, that was implemented in "Hyper-V R2 SP1" version. There are the following technical requirements for it:

  • Windows Server 2008 R2 Service Pack 1
  • Windows Hyper-V Server 2008 R2 SP1

If task fails with "Property 'PreventIPSpoofing' cannot be found on this object", then either requirements are not met, or template, used to create a VM, is a 2008 R2 standard without SP1.

Resolution

Make sure that one of the following:

  • Windows Server 2008 R2 Service Pack 1
  • Windows Hyper-V Server 2008 R2 SP1

are installed on the Hyper-V hardware node, and that template, used to create a VM, is a based on 2008 R2 SP1.

Internal content