Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install-Lab doesn't detect duplicates when parsing the labconfig.xml #339

Open
DennisL68 opened this issue Oct 31, 2019 · 2 comments
Open
Labels
bug The issue is a bug.

Comments

@DennisL68
Copy link

DennisL68 commented Oct 31, 2019

•PowerShell 5.1
•PowerShell Console as Administrator
•Windows 10 b18362
•LabBuilder v1.0.4.84

As LabBuilder goes ahead with duplicates, it will stop later on with the error:

Set-VMSecurity : The Operation failed.
'SRV SRV' The SecuritySettingData property cannot be modified because the virtual machine is running.
At C:\Program Files\WindowsPowerShell\Modules\LabBuilder\1.0.4.84\LabBuilder.psm1:8700 char:21
+                     Set-VMSecurity `
+                     ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Set-VMSecurity], VirtualizationException
    + FullyQualifiedErrorId : InvalidState,Microsoft.HyperV.PowerShell.Commands.SetVMSecurity
@PlagueHO PlagueHO added the bug The issue is a bug. label Nov 9, 2019
@PlagueHO
Copy link
Owner

PlagueHO commented Nov 9, 2019

Hi @DennisL68 - thanks for raising this. To confirm, you mean if there are more than one nodes with the same name this occurs? I might be able to prevent this in the XML schema that is used to validate the Lab configuration XML.

@DennisL68
Copy link
Author

Yes, that’s it.

If I for some reason forget to clean up a duplicate VM entry in the lab confíg, that is the behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants