如何在命令行上列出 XCP-NG 中的 VM

为了在命令行上列出 VM,使用 SSH 登录到 XCP-NG 并运行此命令:

xe-vm-list.sh
xe vm-list

示例输出:

xe-vm-list-output.txt
[16:51 virt01-xcpng ~]# xe vm-list
uuid ( RO)           : 56dc99f2-c617-f7a9-5712-a4c9df54229a
     name-label ( RW): VM 1
    power-state ( RO): running


uuid ( RO)           : 268d56ab-9672-0f45-69ae-efbc88380b21
     name-label ( RW): VM2
    power-state ( RO): running


uuid ( RO)           : 9b1a771f-fb84-8108-8e01-6dac0f957b19
     name-label ( RW): My VM 3
    power-state ( RO): running

Check out similar posts by category: Virtualization