4
预订和侦听事件 ...................................................................................................................................... 25
语言绑定 ........................................................................................................................................................ 26
C ........................................................................................................................................................... 26
C# ......................................................................................................................................................... 26
Python ................................................................................................................................................... 27
命令行界面 (CLI) .................................................................................................................................... 27
完整的应用程序示例 ....................................................................................................................................... 28
使用 XenMotion 同时迁移 VM ................................................................................................................. 28
通过 XE CLI 克隆 VM ............................................................................................................................ 30
5. 使用 HTTP 与 XenServer 交互 ........................................................................................................................... 33
VM 导入和导出 .............................................................................................................................................. 33
获取 XenServer 性能统计信息 ........................................................................................................................ 33
6. XenServer API 扩展 ........................................................................................................................................... 35
VM 控制台转发 .............................................................................................................................................. 35
通过 API 检索 VNC 控制台 .................................................................................................................... 35
禁用 Linux VM 的 VNC 转发 .................................................................................................................. 36
半虚拟化 Linux 安装 ....................................................................................................................................... 37
Red Hat Enterprise Linux 4.1/4.4 ............................................................................................................ 37
Red Hat Enterprise Linux 4.5/5.0 ............................................................................................................ 37
SUSE Enterprise Linux 10 SP1 .............................................................................................................. 37
CentOS 4.5/5.0 ...................................................................................................................................... 37
向 VM 添加 Xenstore 条目 ............................................................................................................................. 38
安全功能增强 ................................................................................................................................................. 38
网络接口的高级设置 ....................................................................................................................................... 38
ethtool 设置 ........................................................................................................................................... 39
杂项设置 ................................................................................................................................................ 40
SR 名称的国际化 ........................................................................................................................................... 40
从 XenCenter 隐藏对象 .................................................................................................................................. 40
7. XenCenter API 扩展 ........................................................................................................................................... 41
池 .................................................................................................................................................................. 41
主机 .............................................................................................................................................................. 41
VM ................................................................................................................................................................ 42
SR ............................................................................................................................................................... 43
VDI ............................................................................................................................................................... 43
VBD .............................................................................................................................................................. 44
网络 .............................................................................................................................................................. 44
VM_guest_metrics .......................................................................................................................................... 44
任务 .............................................................................................................................................................. 44