Change the serial number of a VM:
VBoxManage setextradata "VM name" VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial string:serialnumber