[GXemul-devel] MAC address for emulated hosts
Status: Alpha
Brought to you by:
gavare
From: Jan-Benedict G. <jb...@lu...> - 2023-03-25 19:39:51
|
Hi! I just tried to find a way to configure specific MAC addresses for an emulated machine. Couldn't find something in the docs and a quick look at the sources seems to indicate that, for all emulated NICs, net_generate_unique_mac() is called to calculate a MAC address. It seems that for two "VMs" run as separate processes, the same MAC would be used? That would not be working well with TAP devices. And the generated MAC addresses don't work too well for setting up an external DHCP server. (Some background: I'd like to setup quite a herd of emulated hosts, based on Qemu, SIMH and gxemul. They'll usually use an overlay to a static base disk image and the operating systems on the individual emulated machines will just be different wrt. their MAC address, thus get different IP addresses. That however implies that I can actually _supply_ a MAC address.) @Anders: Do you already have private patches to allow for configurable MAC addresses? Or maybe I'd cook up something? Thanks, Jan-Benedict -- |