Project

General

Profile

Feature #24598

Randomize default VM NIC Mac Address to avoid conflicts

Added by Jimmy Chen over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
Marcelo Araujo
Category:
Middleware
Target version:
Estimated time:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

Description

It appears the default NIC device for created VM has MAC address of 00:a0:98:43:a0:50, which causes routing conflicts if you have more than 1 FreeNAS device hosting VMs on your network if you do not realize this. The MAC address should be randomized on creation of any VM.

Associated revisions

Revision 519ebbda (diff)
Added by Marcelo Araujo over 1 year ago

feat(vm): Randomize default VM NIC Mac Address to avoid conflicts in case you have more than one FreeNAS in the same subnet.

Ticket: #24598

Revision 547db0c2 (diff)
Added by Dru Lavigne about 1 year ago

Indicate default is random.
Ticket: #24598

History

#1 Updated by Jimmy Chen over 1 year ago

  • File debug-nas-20170617215727.txz added

#2 Updated by Marcelo Araujo over 1 year ago

  • Status changed from Unscreened to Screened

#3 Updated by Marcelo Araujo over 1 year ago

  • Status changed from Screened to Resolved
  • Target version set to 11.1

#4 Updated by Dru Lavigne over 1 year ago

  • File deleted (debug-nas-20170617215727.txz)

#5 Updated by Dru Lavigne over 1 year ago

  • Private changed from Yes to No

#6 Updated by Dru Lavigne over 1 year ago

  • Subject changed from Need to way to randomize and change VM NIC MAC address to Randomize default VM NIC Mac Address to avoid conflicts

#7 Updated by Dru Lavigne about 1 year ago

  • Target version changed from 11.1 to 11.1-BETA1

#8 Updated by Nick Wolff about 1 year ago

Hello Marcelo,

Is it expected that the vm Mac Address is different on every boot? Should this be generated randomly on the creation of the network device and saved in the config so it is persistent. It's currently breaking vm's getting the same ip addresses from dhcp will also break static dhcp assignments

Thanks,

Nick

#9 Updated by Marcelo Araujo about 1 year ago

Nick Wolff wrote:

Hello Marcelo,

Is it expected that the vm Mac Address is different on every boot? Should this be generated randomly on the creation of the network device and saved in the config so it is persistent. It's currently breaking vm's getting the same ip addresses from dhcp will also break static dhcp assignments

Yes, if the MAC ADDRESS are not set on the UI, that should be the correct behavior. It was made in that way, because I got reports from users with 2 or more FreeNAS in the same network having mac collision.

For the DHCP case, you can set a static MAC on each NIC of a vm guest.

Best,

Thanks,

Nick

#10 Updated by Nick Wolff about 1 year ago

  • QA Status Test Passes FreeNAS added
  • QA Status deleted (Not Tested)

#11 Updated by Joe Maloney about 1 year ago

  • Needs QA changed from Yes to No

Also available in: Atom PDF