| 1 | = Xen 於 OpenNEbual 的配置 = |
| 2 | == 1. 前提 == |
| 3 | * 已安裝 Xen 和 Xen Kernel |
| 4 | * /etc/init.d/xend 可以正常執行 |
| 5 | * oneadmin 使用者可以執行 Xen 相關的指令 |
| 6 | {{{ |
| 7 | $ sudo vim /etc/sudoers |
| 8 | %xen ALL=(ALL) NOPASSWD: /usr/sbin/xm * |
| 9 | %xen ALL=(ALL) NOPASSWD: /usr/sbin/xentop * |
| 10 | |
| 11 | $ sudo /opt/drb/sbin/drbl-cp-host /etc/sudoers /etc/sudoers |
| 12 | }}} |
| 13 | |
| 14 | [[BR]] |
| 15 | == 2. Xen Driver 的檔案 == |
| 16 | * 主要有以下4個: |
| 17 | * $ONE_LOCATION/lib/mads/one_vmm_xen : Shell script wrapper to the driver itself. Sets the environment and other bootstrap tasks. |
| 18 | * $ONE_LOCATION/lib/mads/one_vmm_xen.rb : The actual XEN driver. |
| 19 | * $ONE_LOCATION/etc/vmm_xen/vmm_xenrc : environment setup and bootstrap instructions |
| 20 | * $ONE_LOCATION/etc/vmm_xen/vmm_xen.conf : set here default values for XEN domain definitions. |
| 21 | |
| 22 | [[BR]] |
| 23 | == 3.Xen Driver 的配置 == |
| 24 | * 告訴 ONE ,使用的 Hypervisior 是 Xen |
| 25 | {{{ |
| 26 | $ sudo vim $ONE_LOCATION/etc/oned.conf |
| 27 | IM_MAD = [ |
| 28 | name = "im_xen", |
| 29 | executable = "one_im_ssh", |
| 30 | arguments = "im_xen/im_xen.conf", |
| 31 | default = "im_xen/im_xen.conf" ] |
| 32 | |
| 33 | VM_MAD = [ |
| 34 | name = "vmm_xen", |
| 35 | executable = "one_vmm_xen", |
| 36 | default = "vmm_xen/vmm_xen.conf", |
| 37 | type = "xen" ] |
| 38 | |
| 39 | }}} |
| 40 | * 上面設定檔的 IM 是 Information Manager,VM 是 Virtualization Managers |
| 41 | |