Version 1 (modified by rock, 16 years ago) (diff) |
---|
Xen 於 OpenNEbual 的配置
1. 前提
- 已安裝 Xen 和 Xen Kernel
- /etc/init.d/xend 可以正常執行
- oneadmin 使用者可以執行 Xen 相關的指令
$ sudo vim /etc/sudoers %xen ALL=(ALL) NOPASSWD: /usr/sbin/xm * %xen ALL=(ALL) NOPASSWD: /usr/sbin/xentop * $ sudo /opt/drb/sbin/drbl-cp-host /etc/sudoers /etc/sudoers
2. Xen Driver 的檔案
- 主要有以下4個:
- $ONE_LOCATION/lib/mads/one_vmm_xen : Shell script wrapper to the driver itself. Sets the environment and other bootstrap tasks.
- $ONE_LOCATION/lib/mads/one_vmm_xen.rb : The actual XEN driver.
- $ONE_LOCATION/etc/vmm_xen/vmm_xenrc : environment setup and bootstrap instructions
- $ONE_LOCATION/etc/vmm_xen/vmm_xen.conf : set here default values for XEN domain definitions.
3.Xen Driver 的配置
- 告訴 ONE ,使用的 Hypervisior 是 Xen
$ sudo vim $ONE_LOCATION/etc/oned.conf IM_MAD = [ name = "im_xen", executable = "one_im_ssh", arguments = "im_xen/im_xen.conf", default = "im_xen/im_xen.conf" ] VM_MAD = [ name = "vmm_xen", executable = "one_vmm_xen", default = "vmm_xen/vmm_xen.conf", type = "xen" ]
- 上面設定檔的 IM 是 Information Manager,VM 是 Virtualization Managers