|
|
发表于 2020-5-26 10:19:43
|
显示全部楼层
本帖最后由 marile 于 2020-5-26 10:27 编辑
https://help.ubuntu.com/community/KVM/Managing
里面提到了:
To get a new mac address to paste into your xml file, use this command:
MACADDR="52:54:$(dd if=/dev/urandom count=1 2>/dev/null | md5sum | sed 's/^\(..\)\(..\)\(..\)\(..\).*$/\1:\2:\3:\4/')"; echo $MACADDR
To get a new uuid for your xml file, use: uuidgen
https://superuser.com/questions/218340/how-to-generate-a-valid-random-mac-address-with-bash-shell
这里有一些别的办法 |
|