Anyone know how to change to static MAC?

May 5, 2009 at 7:26 PM

I'm using the library to create a batch of VM's, but I want each VM to have a Static MAC.  Anyone know how to script that in Powershell?

Thanks!

Coordinator
May 9, 2009 at 10:55 AM

add-vmNic already takes a -mac parameter :-)  Just specify that.  

 

 

 

 

May 11, 2009 at 5:33 PM

I don't want to manage the MAC address generation, I just don't want the MAC address to change later on.  I'm turning the VM on, waiting 10 seconds, and turning it off again so Hyper-V can create manage MAC address generation.  I just want to change the MAC address from Dynamic to Static.

Coordinator
Jun 7, 2009 at 8:49 AM

It won't change. A dynamic address is assigned at first boot and then remains the same for the life of the vm.