You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Verison of PowerShell:
$PSVersionTable.PSVersion
Major Minor Build Revision
----- ----- ----- --------
5 1 17763 1007
PowerShell host:
Console
Operating system:
Get-CimInstance Win32_OperatingSystem | Select-Object Caption, Version, ServicePackMajorVersion, OSArchitecture, WindowsDirectory
Caption : Microsoft Windows Server 2019 Standard
Version : 10.0.17763
ServicePackMajorVersion : 0
OSArchitecture : 64-bit
WindowsDirectory : C:\Windows
Version of LabBuilder:
PS C:\Windows\system32> Get-Module -Name LabBuilder -ListAvailable
Directory: C:\Program Files\WindowsPowerShell\Modules
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 1.0.5.105 LabBuilder {Get-LabResourceModule, Initialize-LabResourceModule, Get-...
I'm stomped, but IP configuration is never applied to my VM's. I'm probably just messing the syntax up, but I can't find any working examples that sets the IP :/
The config below (along with the templates etc.) creates and starts a VM without any errors, but the IP isn't set...
OK, found the reason in schema\labbuilderconfig-schema.xsd
This optional attribute configures this Virtual Adapter to use a static IPv4 address.
If this attribute is defined then the IPv4 subnetmask attribute should also be defined.
This property of the Virtual Adapter is configured using Desired State Configuration.
Hi @DennisL68 - that is correct. The block is used to create part of a DSC configuration that is applied to the node when it is first booted.
The Networking configuration is "injected" into the general DSC configuration that is applied to the node.
But you're right - if DSC is not used at all (and disabled) then the node won't get a custom IP configuration. Your use case is completely valid, I just didn't consider that as I actually created this project around DSC.
You could apply a completely empty DSC config to the node - which LabBuilder will then inject the Networking config into for you and apply it. Would that work for you?
I don't know yet. My lab is about DSC itself, to replicate a production scenario.
As long as the DSC config is only injected and not uphold, I would assume that I could just disable the setup DSC and then replace it with my own DSC solution?
If that doesn't work I reckon I'll go with DHCP and do the static IP settings using my own DSC setup instead (although that would break the DHCP production scenario).
I assume the setupcomplete="Scripts\SetupScompleteDebug.cmd" is injected in the VHDX template disk file and not in the VHDX VM disk file?
I'm stomped, but IP configuration is never applied to my VM's. I'm probably just messing the syntax up, but I can't find any working examples that sets the IP :/
The config below (along with the templates etc.) creates and starts a VM without any errors, but the IP isn't set...
The text was updated successfully, but these errors were encountered: