This repository contains the source code of interacting a XenServer Hypervisor over its XML-RPC API.
Example: Communicate over RabbitMQ
# Set Environment Variables
cd .../xen-api
export XEN_SERVER_ADDR='192.168.0.123'
export XEN_SERVER_PORT=443
export XEN_SERVER_USER='root'
export XEN_SERVER_PASS='foo-change-me'
# Play the API on Interactive Ruby Script Environment
irb --noprompt
require './xenapi.rb'
# Login
xenapi = XenApi.new(ENV['XEN_SERVER_ADDR'], ENV['XEN_SERVER_PORT'], ENV['XEN_SERVER_USER'], ENV['XEN_SERVER_PASS'])
# logout
xenapi.logout

Content type
Image
Digest
Size
272.2 MB
Last updated
over 9 years ago
docker pull nowherecloud/xen-api