批量计算机标识重复问题

如果您使用 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 对注册克隆的客户端时出现的问题进行查错.

然而,在部分场景下,更改所有系统的计算机标识既不可行也不现实,因为这可能会影响依赖现有计算机标识运行的其他应用程序。针对这类情况,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. 启用此引导脚本后,计算机标识将不再发生冲突。