microsoft / SDN

This repo includes PowerShell scripts and VMM service templates for setting up the Microsoft Software Defined Networking (SDN) Stack using Windows Server 2016
Other
485 stars 541 forks source link

Mapping NCSetup.cr to template package Failed #165

Open khsoong opened 6 years ago

khsoong commented 6 years ago

Using configuration from file [.\Fabricconfig.psd1] Getting VMM server connection with VMM server [SCVMM] Checking the Fabric Configuration Input Parameters WARNING: The product Key is blank. Specify the Product key by logging into the infrastructure VM while is it being configured Successfully authenticated with domain SDN VMNetwork Name : [NC_Management] Generating Self-Signed Certificate.. Generating the self signed certificate Trimmed VMName:[NC-NCVM01.sdn.local] Exporting the certificate Certificate Path : cert:\LocalMachine\My\828E1D623EE33E878A9644BB0D637289E527514A Trimmed VMName:[NC-NCVM01.sdn.local] Recieved VMName : [NC-NCVM01.sdn.local] VmName : [NC-NCVM01.sdn.local] Mapping VHD to template package Mapping NCSetup.cr to template package The deployment was not successful. Reason: Cannot convert 'System.Object[]' to the type 'Microsoft.SystemCenter.VirtualMachineManager.ClientObject' required by parameter 'TargetObject'. Specified method is not supported. Cleaning up the system to get in previous state...

khsoong commented 6 years ago

My second time running through vmmexpress. First time was successful but this time I got this error. Anyone encounter the same error? I am using the latest svmm ur4 and latest sdn-master download.

grcusanz commented 6 years ago

It looks like you might have more than one copy of NCSetup.cr in your library since 'Get-SCCustomResource -Name "NCSetup.cr"' is returning an array of objects. Its possible VMM SDN Express copied that folder to the library a second time. I would suggest removing all instances of NCSetup.cr from the library before running VMM SDN Express again.

khsoong commented 6 years ago

Greg, you are RIGHT and you are the MAN ! Can I check with you the best way to run VMMSDNExpress?

  1. Download SDN-Master to C: and run from C:\SDN-master\VMM\VMM SDN Express.
  2. Extract VMM from SDN-Master to C: and run from C:\VMM\VMM SDN Express. Thanks !