How to change MAC address on Ubuntu KVM virtual machine

If you’ve tried changing the MAC address on a recent Ubuntu VM running under KVM/QEMU, you may have noticed that changing the address in the VM configuration on the host yields no result in the guest machine. Also, a change done using either Virtualmin’s configuration or the command line on the guest doesn’t survive a reboot.