使用其他第三方提供者虚拟化

如果您要使用 Xen、KVM 或 VMware 以外的第三方虚拟化提供者,可以将 JSON 配置文件导入到 SUSE Multi-Linux Manager 中。

同样,如果您安装的 VMware 不提供直接访问 API 的功能,基于文件的 VHM 可以为您提供基本的管理功能。

This option is for importing files that have been created with the virtual-host-gatherer tool. It is not designed for manually created files.

过程:导出和导入 JSON 文件
  1. Export the JSON configuration file by running virtual-host-gatherer on the VM network.

  2. 将产生的文件保存到 SUSE Multi-Linux Manager 服务器可访问的位置。

  3. 在 SUSE Multi-Linux Manager Web UI 中,导航到系统  虚拟主机管理器

  4. Click Create and select File-based.

  5. In the Add a file-based Virtual Host Manager section, use these parameters:

    • In the Label field, type a custom name for your VHM.

    • In the Url field, type the path to your exported JSON configuration file.

  6. 单击 创建 保存更改并创建 VHM。

  7. On the Virtual Host Managers page, select the new VHM.

  8. On the Properties page, click Refresh Data to inventory the new VHM.

Listing 1. 例如:导出的 JSON 配置文件:
{
    "examplevhost": {
        "10.11.12.13": {
            "cpuArch": "x86_64",
            "cpuDescription": "AMD Opteron(tm) 处理器 4386",
            "cpuMhz": 3092.212727,
            "cpuVendor": "amd",
            "hostIdentifier": "'vim.HostSystem:host-182'",
            "name": "11.11.12.13",
            "os": "VMware ESXi",
            "osVersion": "5.5.0",
            "ramMb": 65512,
            "totalCpuCores": 16,
            "totalCpuSockets": 2,
            "totalCpuThreads": 16,
            "type": "vmware",
            "vms": {
                "vCenter": "564d6d90-459c-2256-8f39-3cb2bd24b7b0"
            }
        },
        "10.11.12.14": {
            "cpuArch": "x86_64",
            "cpuDescription": "AMD Opteron(tm) 处理器 4386",
            "cpuMhz": 3092.212639,
            "cpuVendor": "amd",
            "hostIdentifier": "'vim.HostSystem:host-183'",
            "name": "10.11.12.14",
            "os": "VMware ESXi",
            "osVersion": "5.5.0",
            "ramMb": 65512,
            "totalCpuCores": 16,
            "totalCpuSockets": 2,
            "totalCpuThreads": 16,
            "type": "vmware",
            "vms": {
                "49737e0a-c9e6-4ceb-aef8-6a9452f67cb5": "4230c60f-3f98-2a65-f7c3-600b26b79c22",
                "5a2e4e63-a957-426b-bfa8-4169302e4fdb": "42307b15-1618-0595-01f2-427ffcddd88e",
                "NSX-gateway": "4230d43e-aafe-38ba-5a9e-3cb67c03a16a",
                "NSX-l3gateway": "4230b00f-0b21-0e9d-dfde-6c7b06909d5f",
                "NSX-service": "4230e924-b714-198b-348b-25de01482fd9"
            }
        }
    }
}

For more information, see the man page on your SUSE Multi-Linux Manager server for virtual-host-gatherer:

man virtual-host-gatherer

该软件包的 README 文件提供有关超级管理程序类型的背景信息及其他信息:

/usr/share/doc/packages/virtual-host-gatherer/README.md

手册页和 README 文件还包含示例配置文件。