向virsh添加xen域

2024-06-17 11:54:52 发布

您现在位置:Python中文网/ 问答频道 /正文

基本问题:

我有这样的任务:我需要用Xen的diamond collector收集度量。收集器使用libvirt python库,只是找不到任何用于输出信息的xen域。这是因为libvirt从virsh获取信息,而virsh找不到xen域。在

我所做的:我将xencfg转换成virshxml,因为命令'virshdomxml from native xen xm/path/to/xm or-xl.config文件'和定义的域。在

现在:

way@xen4-dom0:/etc/libvirt/domains$ sudo virsh list --all
Id    Name                           State
----------------------------------------------------
-     gitlab                         shut off
-     stage-pg-master                shut off
-     stage-rzd-tnved                shut off
-     stage-web-transport            shut off

Xen公司:

^{pr2}$

但当我试图启动域名时,却发现了以下错误:

libxenlight failed to create new domain 'gitlab'

libx log说:

domain with name "gitlab" already exists.

如何解决这个问题? 非常感谢。在


Tags: to度量domaingitlabstagelibvirt收集器xm