I'm setting up an image factory in MDT and because our network is structured such that VM's won't receive a DHCP lease we have to apply NIC settings inside bootstrap.ini
. This is only so when we load a test environment in Hyper-V, the virtual machine can connect to our deployment share.
Unfortunately we can only seem to apply this in the bootstrap.ini
file not customsettings.ini
. I have tried to add a registry for VM's in the MDT database to apply NIC configuration but I believe the only way we can configure the VM to connect to the database in the first place (at least, the MDT deployment share) is if it gets the NIC config in bootstrap.ini
.
Though this works, it sets the default IP address to xxx.xxx.xxx.128
for all machines receiving a LiteTouch installation which is unideal (we have many more physical computers that this affects) as we have to manually reconfigure the NIC after installation.
So my question is this: how can I apply NIC settings in bootstrap.ini
to only affect VM's?
Thanks kindly.
Thanks @ElliotLabs for referring me to Michael Niehaus helpful guide.
I found that adding catch cases in
bootstrap.ini
works exactly as expected:Note that
Virtual Machine
is the model name for Hyper-V VMs. Also, in our organisation, VMs won't get DHCP, so it's important to disable it. Not sure if that is a global setting though.