Actually this is even easier, you can just ``del vmxml.uuid`` and libvirt will generate one for you (and make sure it doesn't clash).