Persistent MAC address in ubuntu image

I’m afraid it is in the C code by design. But yes, you can circumvent that, like done here with the original development environment.