VMware Communities
俄而饿饿
Contributor
Contributor
Jump to solution

network card MAC bug for cloned ESXi VM

Hi, I cloned a ESXi VM(named origin VM A, newer VM B).

When I boot VM B,  I capture DHCP using wireshark. I found that VM B's DHCP packets's source mac is not changed( which belongs to VM A.)

Here is the mac of VM B:

_0-1656064252877.png

But in wireshark, dhcp's source mac is this:

_1-1656064287132.png

My workstation version is 16.2.3.

ESXi VM version is 7.0.2-17867351

Labels (3)
0 Kudos
1 Solution

Accepted Solutions
scott28tt
VMware Employee
VMware Employee
Jump to solution

VMkernel interfaces in ESXi have a MAC address, cloning an ESXi VM won't change that configuration inside ESXi.

This isn't a Workstation-specific issue, it's about ESXi.

I think this article might help you: https://kb.vmware.com/s/article/1031111

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog

View solution in original post

0 Kudos
7 Replies
scott28tt
VMware Employee
VMware Employee
Jump to solution

How did you do the clone? Have you checked the MAC address in the new VMX file?

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
俄而饿饿
Contributor
Contributor
Jump to solution

I tried link clone and full clone. Both have the same problem. 

It doesn't work even I changed vmx's MAC.

I tried to disable vmkernel in VM ESXi and enable it. Then MAC for this ESXi VM is correct now.

0 Kudos
scott28tt
VMware Employee
VMware Employee
Jump to solution

I'm confused as to what this has to do with VMware Workstation and also ESXi.

Are you running ESXi in VMs nested on Workstation?

And cloning an instance of ESXi running in a VM to create another instance of ESXi running in a VM?

Are you aware of how ESXi networking works, with the VMkernel network interfaces essentially working like NICs? (ie. with their own MAC addresses created by the ESXi software)

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
俄而饿饿
Contributor
Contributor
Jump to solution

Thanks for your reply.

Yes, VM A and VM B are VM running on Workstation with operation system ESXi.

I capture packets in NAT network of workstation using wireshark. And MAC 00:xxxxxx:b2 is the new MAC generated by workstation automatically. But in wireshark, the packet comes from 00:xxxxx:b2 has MAC 00:xxx:4C. MAC 00:xx:4C should belongs to VM A! 

And this weird network works well except VM A and VM B can't connect to each other.

You can reproduce this by following steps:

1. create a ESXi VM on vmware workstation.

2. clone this VM.

3. boot new VM, check this VM network card's MAC.

4. restart new VM's network manager to let it do DHCP operation, and use wireshark to capture DHCP packets.

you will see MAC is weird.

Tags (1)
0 Kudos
continuum
Immortal
Immortal
Jump to solution

Sorry for this stupid question ... but when you dont like the mac address of a VM why dont you change it yourself ?

 

 


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
俄而饿饿
Contributor
Contributor
Jump to solution

Sorry for my poor English, May let you misunderstand, The problem is not what MAC it has. The problem is "a cloned ESXi VM will send packet with origin VM's MAC, even I changed its MAC through UI configuration or editing vmx file or adding new net card.". And its network seems work well, I can connect it by ssh. However, it can't connect to origin VM because they have the same MAC. 

This looks really weird, two VM have same MAC, but we can connect to each VM well.

I solved this by deactivate  ESXi's network card and restart its network manager, then active its net card and restart again. 

0 Kudos
scott28tt
VMware Employee
VMware Employee
Jump to solution

VMkernel interfaces in ESXi have a MAC address, cloning an ESXi VM won't change that configuration inside ESXi.

This isn't a Workstation-specific issue, it's about ESXi.

I think this article might help you: https://kb.vmware.com/s/article/1031111

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos