【问题标题】:Libvirt Connect to XEN from WindowsLibvirt 从 Windows 连接到 XEN
【发布时间】:2015-03-20 08:53:50
【问题描述】:

我在 SLES12 上设置了 XEN 并创建了几个虚拟机。使用 virsh 我可以从 linux 连接到 libvirt,但不能从 Windows 连接。我正在尝试:

# connect xen://hostname
# connect xen://hostname/system
# connect xen+tcp://hostname
# connect xen+tcp://hostname/system

我收到以下错误消息:

# connect xen+tcp://hostname    'Unable to connect to server at 'hostname:16509': Unknown error 107'
# connect xen://hostname        'error: Cannot read CA certificate '/usr/i686-w64-mingw32/sys-root/mingw/etc/pki/CA/cacert.pem': No such file or directory'

上述其他命令产生相同的错误。我运行了netstat,但找不到端口号 16509。我假设当我从 linux 连接时,它使用不同的端口(?),因为这没有问题。唯一的区别是我从 linux 使用 ssh 连接:

 # connect xen+ssh://root@hostname

任何想法都会被应用

【问题讨论】:

    标签: virtualization xen libvirt


    【解决方案1】:

    很可能你的 libvirtd 没有监听 TCP 端口。运行 libvirtd 时必须有 –listen 选项。

    关注link

    另外你可能需要修改/etc/libvirt/libvirtd.conf

    listen_tls = 0 #it's enabled by default. To disable it, set it to be zero
    listen_tcp = 1
    tcp_port="16509"
    listen_addr="192.168.45.22"
    # tcp_auth = "sasl"
    auth_tcp = "none"
    # /usr/sbin/libvirtd –listen
    

    【讨论】:

    • 配置 libvirtd.conf 解决了这个问题。谢谢
    【解决方案2】:

    使用命令 libvirtd -d 它将创建 libvirtd 守护进程 然后使用 libvirtd --listen 让 libvirtd 监听 TCP 端口。

    【讨论】:

    • 运行 libvirtd -d 给了我以下警告 virGetHostname:654 : getaddrinfo failed for 'linux-xlys': Name or service not known 和错误消息:erorr: Unable to obtain pidfile. Check /var/log/messages or run without --deamon for more info
    猜你喜欢
    • 1970-01-01
    • 2011-10-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-12-23
    • 2018-12-28
    • 2011-01-14
    相关资源
    最近更新 更多