Question

Change vm nic mass VM

  • 30 January 2021
  • 2 replies
  • 74 views

Hello community,

 

I want to update the network card, nic, from a network A to switch it to network B.
I need to perform the manipulation on about 50 VMs.

I know that for one vm we do with vm.nic_update VM_NAME MAC_ADDRESS network=NETWORK


Do you have any tips for performing this kind of operation? Script?
If anyone has an idea?

 

Kindly,

Ludovic


2 replies

Userlevel 1
Badge +4

Hello Ludovic,

Thank you for asking this question. Before answering can you tell me if all of your VM’s have the same name initials? or are they having different names.

 

Regards,
Chaitrali

 

Hello Chaitrali,

The VMs have a different name.

However, there is an identical base, the first 3 string: "PLI" or 3 "DLI" for example.

 

Regards,

Ludovic

Reply