why machine id is different after reboot #1378
-
Hello, I've observed that the machine ID to which the pyarmor group license was previously tied has changed after a reboot. And this will make the license on this machine invalid. After 19 reboots, the ID I registered appears. PS: I'm aware that unlimited docker can operate under a group license, but all docker must run on a host machine; regrettably, in this case, the host machine is unable to maintain a fixed ID. 为了避免误解,我用中文再说一遍: 我重启了19次,才获得到和原来一样的ID。 PS:我知道集团版可以运行不限制数量的docker,但是docker依赖于已经注册的pyarmor,但是不幸的是,这台总是变来变去ID的机器就是运行docker的主机。 attached is the script to get machine id cd /tmp
pyarmor reg -g 88
cat .pyarmor/group/pyarmor-group-device.88 attached is the ID that appeared on that machine:
|
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 11 replies
-
你使用的 Pyarmor 的版本呢? |
Beta Was this translation helpful? Give feedback.
-
I am using 8.2.9
|
Beta Was this translation helpful? Give feedback.
-
这台机器是物理机,虚拟机,还是云服务器?如果是虚拟机的话,是什么虚拟机(VirtualBox?Qemu?...) |
Beta Was this translation helpful? Give feedback.
-
有没有任意一个网络接口 MAC address 的地址不是 12 位的?例如 只有 10位 |
Beta Was this translation helpful? Give feedback.
-
所有接口的 mac addr 重启后都没有变化吗?尤其这个 |
Beta Was this translation helpful? Give feedback.
-
我也是遇到类似的问题,因为注意到几次machine id会变化,所以提了这个#1373 我虚拟机用的是proxmox
最开始注册机器生成machine id的时候pyarmor是8.2.0; |
Beta Was this translation helpful? Give feedback.
-
目前来说所有的 MAC address 都会有影响的,machine id 就是 8.2.9 的算法改变了一次,但是以前的 machine id 在新版本里面是兼容的。 不同操作系统的 machine id 算法不一样,但是基本都需要 hostname, 所有接口的 MAC address,以及 硬盘信息。 |
Beta Was this translation helpful? Give feedback.
-
@jondy 所有mac地址,包括bridge和veth吧?是否意味着:我在宿主机上新启动或者删掉一些docker container,也会导致host机器上的mac地址有所变化,从而导致machine id变化? |
Beta Was this translation helpful? Give feedback.
-
8.3.dev1 已经发布,集团版许可证使用新的 machine id 算法 |
Beta Was this translation helpful? Give feedback.
如果网络配置增加/减少/修改 Mac Address,machine id 会发生变化的。
8.3.0 里面可能会考虑 集团版许可证使用单独的算法,排除 bridge 等的影响。