ananace / fog-hyperv

Hyper-V provider for fog
MIT License
8 stars 1 forks source link

Add VLAN support for network adapters #16

Open ananace opened 6 years ago

ananace commented 6 years ago

https://docs.microsoft.com/en-us/powershell/module/hyper-v/set-vmnetworkadaptervlan

Might need to look into doing object passthrough for this, as network adapter names are not unique.

selund commented 6 years ago

Would it be possible to add the option to set all interfaces in one vlan? This would at least make it possible to install vm's without having to do manual configuration. For us that would mean that we have a system to deploy new vm's without manual intervention. Vlan and interface configuration after initial install will be done by other means regardless for our part.

ananace commented 6 years ago

Oh right, VLAN can be set on a VM level as well as per NIC. That might both make things easier and more troublesome at the same time.

I guess I'll try to throw in a quick patch to allow setting a machine level VLAN for now, and it can be refined down to a more proper state later on.