Mass Machine_id Duplication

如果您使用 SUSE Manager 来管理虚拟机,您可能发现创建 VM 的克隆版本会很有用。克隆版本是使用主磁盘(与现有磁盘完全相同的副本)的 VM。

虽然克隆 VM 可以节省大量时间,但磁盘上复制的标识信息有时会导致问题。

If you try to register two machine where one is the clone of the other, you probably want SUSE Manager to register them as two separate clients. However, if the machine ID in both the original client and the clone is the same, SUSE Manager registers both clients as one system, and the data is overwritten one the second machine is registered.

This can be resolved by changing the machine ID of the clone, so that SUSE Manager recognizes them as two different clients. For more information and instructions on how to change machine ID, see 对注册克隆的客户端时出现的问题进行查错.

However, in some situations, it is neither feasible nor practical to change the machine ID on all systems, as this could disrupt other applications that depend on the existing machine IDs. In those cases, a option is available where a fake machine ID is generated to be used in the context of SUSE Manager.

Procedure: Generating machine ID for SUSE Manager at registration time
  1. Create a Bootstrap script (skip this step if you already have it) For more information, see 使用引导脚本注册客户端.

  2. Open the file and change the parameter:

    GENERATE_OWN_MACHINEID=1
  3. Start using your bootstrap strict, and machine ID will not collide anymore.