1 / 8

Xen Management API

Xen Management API. Rafael dos Santos Alves. Visão geral. Gerenciamento de sistemas Xen Baseado em chamadas XML-RPC Implementações Python C Java Perl Daemon xend espera por chamadas XML-RPC e executa operações administrativas Executa as mesmas operações que a ferrmamenta xm.

roxy
Download Presentation

Xen Management API

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Xen Management API Rafael dos Santos Alves

  2. Visão geral Gerenciamento de sistemas Xen Baseado em chamadas XML-RPC Implementações Python C Java Perl Daemon xend espera por chamadas XML-RPC e executa operações administrativas Executa as mesmas operações que a ferrmamenta xm

  3. Ciclo de vida das VMs

  4. Classes

  5. Configuração Arquivo /et c/xen/xend-config.sxp (xen-api-server ((9363 none '^localhost$ gta\\.ufrj\\.br$') (unix)))

  6. Exemplo from xen.xm.XenAPI import Session session = Session('http://itaipava:9363/') session.login_with_password(' ', ' ') for vm_uuid in session.xenapi.VM.get_all(): if "xenvm1.gta.ufrj.br" == session.xenapi.VM.get_name_label(vm_uuid): vm = vm_uuid session.xenapi.VM.migrate(vm,'floresta',True,{})

  7. Exemplo 2 Python session = session.login_with_password("user", "passwd“) XML <?xml version=‘1.0’?> <methodCall> <methodName>session.login_with_password</methodName> <params> <param> <value><string>user</string></value> </param> <param> <value><string>passwd</string></value> </param> </params> </methodCall>

  8. Concorrente Libvirt Suporte Xen, QEMU, KVM Linux, LXC Linux, OpenVZ, User Mode Linux e VirtualBox Configuração Arquivo /et c/xen/xend-config.sxp (xend-unix-server yes) Exemplo import libvirt conn = libvirt.open('xen:///') vm = conn.lookupByName('winxp') dconn = libvirt.open('xen+ssh://floresta/') vm.migrate(dconn,1,None,None,0)

More Related