[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Accessing Xen on remote machine


  • To: xendevel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: jd sw <jdsw2002@xxxxxxxxx>
  • Date: Sun, 25 Jun 2006 23:39:35 -0700 (PDT)
  • Delivery-date: Sun, 25 Jun 2006 23:40:03 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=QFKwwnK6wzS9ep6fQDBq3IAcKu9BducImjxygoBqX46H5NRmhDhYJ0kaavdYe3AaATHW3i/wtsaFtds7A6KZcG57Aipo+LQRgtq/4Qikm8zKdMO0VNL/dU39QS9S/djjSw97QfItX8IkxpWq5BWL2fbKXYAkTpQ6PxzdZ5OSYOM= ;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi
   What do I need to do to access Xen on a remote machine ? Currently my program is using the 'server' object from the XendClient.py.

   There seems to be http, unix, tcp-xmlrpc, unix-xmlrpc servers. When should each one of them be enabled/used. What port do they listen to ? Also, relocation server uses which protocol. I would really appreciate if someone can point me to some document/details.

Check out the details on what I tried below.

Thanks
/Jd
--------
#  test code
s = ServerProxy("http://192.168.0.103:8000/xend", None, None, 1, 1)
domain_list = s.xend.domains(0)
print domain_list

-----------
Output
--------connect: (192.168.0.103, 8000)
send: 'POST /xend HTTP/1.0\r\nHost: 192.168.0.103:8000\r\nUser-Agent: xmlrpclib.py/1.0.1 (by www.pythonware.com)\r\nContent-Type: text/xml\r\nContent-Length: 151\r\n\r\n'
send: "<?xml version='1.0'?>\n<methodCall>\n<methodName>xend.domains</methodName>\n<params>\n<param>\n<value><int>0</int></value>\n</param>\n</params>\n</methodCall>\n"
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-length: 4
header: Expires: -1
header: Content-type: text/plain
header: Pragma: no-cache
header: Cache-control: no-cache
body: 'POST'
Traceback (most recent call last):
  File "test.py", line 143, in ?
    main()
  File "test.py", line 88, in main
    domain_list = s.xend.domains(0)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.4/site-packages/xen/util/xmlrpclib2.py", line 83, in __request
    response = xmlrpclib.ServerProxy.__request(self, methodname, params)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.4/xmlrpclib.py", line 1147, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1284, in _parse_response
    p.close()
  File "/usr/lib/python2.4/xmlrpclib.py", line 530, in close
    self._parser.Parse("", 1) # end of data
xml.parsers.expat.ExpatError: syntax error: line 1, column 0







 


Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.