Search code examples
virtualizationxenlibvirt

Libvirt Connect to XEN from Windows


I have setup XEN on SLES12 and created few virtual machines. Using virsh I am able to connect to libvirt from linux but not from windows. I was trying:

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

I have recieved following error messages:

# 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'

Other commands stated above produce same errors. I runned netstat and I cannot find port number 16509. I assume that when I connect from linux it uses different port(?) as there is no problem with that. the only difference is that from linux I use ssh connection:

 # connect xen+ssh://root@hostname

Any ideas will be appriciated


Solution

  • It’s likely that your libvirtd is not listening to the TCP port. You must have –listen option while running the libvirtd.

    Check following link

    Additionally you may need to modify /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